diff options
author | Johnson Shi <Johnson.Shi@microsoft.com> | 2020-09-24 09:46:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 10:46:19 -0600 |
commit | 43164902dc97cc0c51ca1b200fa09c9303a4beee (patch) | |
tree | a01f3a059bfba99ead8dd0bdbd76f5898e1b32e9 /cloudinit/sources/DataSourceOpenStack.py | |
parent | 53465092a590fb72447ffc0f6b7b53e6609430f4 (diff) | |
download | vyos-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