Xenial Azure: Make generation of network config from IMDS hotplug scripts configurable opt-in
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
High
|
Chad Smith | ||
cloud-init (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
By default, Xenial needs to rely on existing cloud image hotplug scripts and only generate fallback network config (dhcp on eth0) by default. If consumers want to generate dynamic network from Azure's IMDS service, thus removing cloud image hotplug scripts, then a datasource configuration option is surfaced.
[Test Case]
1. Deploy stock Xenial cloud image
2. upgrade cloud-init -proposed
3. Run cloud-init clean --reboot --logs
4. Confirm that network is not sourced from IMDS content and hotplug scripts still exist
5. Add datasource configuration setting Azure: apply_network_
6. Run cloud-init clean --reboot --logs
7. Confirm that network is sourced from IMDS and hotplug scripts are removed.
[Regression Potential]
[Other Info]
Upstream commit at
https:/
=== End SRU Template ===
=== Original Description ===
cloud-init v. 18.4-0ubuntu1~
On Xenial Azure, Ubuntu cloud images have udev scripts to handle network hotplug. Azure datasource has the ability to read full network config from their IMDS service and render hotplugged devices as well as remove the cloud-image default scripts.
Make the cloud-init hotplug behavior configurable and default it to off in Xenial.
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Approve
-
Diff: 292 lines (+264/-0)4 files modifieddebian/changelog (+11/-0)
debian/patches/azure-apply-network-config-false.patch (+23/-0)
debian/patches/cpick-1d5e9aef-azure-Add-apply_network_config-option-to-disable (+228/-0)
debian/patches/series (+2/-0)
- Server Team CI bot: Approve (continuous-integration)
- cloud-init Commiters: Pending requested
-
Diff: 206 lines (+107/-6)3 files modifiedcloudinit/sources/DataSourceAzure.py (+9/-2)
doc/rtd/topics/datasources/azure.rst (+46/-0)
tests/unittests/test_datasource/test_azure.py (+52/-4)
tags: | added: regression-proposed-xenial |
description: | updated |
Changed in cloud-init: | |
importance: | Undecided → High |
assignee: | nobody → Chad Smith (chad.smith) |
status: | New → In Progress |
description: | updated |
This bug is fixed with commit 1d5e9aef to cloud-init on branch master. /git.launchpad. net/cloud- init/commit/ ?id=1d5e9aef
To view that commit see the following URL:
https:/