summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceOpenStack.py
diff options
context:
space:
mode:
authorJohnson Shi <Johnson.Shi@microsoft.com>2020-09-24 09:46:19 -0700
committerGitHub <noreply@github.com>2020-09-24 10:46:19 -0600
commit43164902dc97cc0c51ca1b200fa09c9303a4beee (patch)
treea01f3a059bfba99ead8dd0bdbd76f5898e1b32e9 /cloudinit/sources/DataSourceOpenStack.py
parent53465092a590fb72447ffc0f6b7b53e6609430f4 (diff)
downloadvyos-cloud-init-43164902dc97cc0c51ca1b200fa09c9303a4beee.tar.gz
vyos-cloud-init-43164902dc97cc0c51ca1b200fa09c9303a4beee.zip
Azure parse_network_config uses fallback cfg when generate IMDS network cfg fails (#549)
Azure datasource's `parse_network_config` throws a fatal uncaught exception when an exception is raised during generation of network config from IMDS metadata. This happens when IMDS metadata is invalid/corrupted (such as when it is missing network or interface metadata). This causes the rest of provisioning to fail. This changes `parse_network_config` to be a non-fatal implementation. Additionally, when generating network config from IMDS metadata fails, fall back on generating fallback network config (`_generate_network_config_from_fallback_config`). This also changes fallback network config generation (`_generate_network_config_from_fallback_config`) to blacklist an additional driver: `mlx5_core`.
Diffstat (limited to 'cloudinit/sources/DataSourceOpenStack.py')
0 files changed, 0 insertions, 0 deletions