cloud-init on azure with dual stack needs to add route-metric for dhcp6 also
Bug #1850308 reported by
Dan Streetman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
High
|
Chad Smith |
Bug Description
cloud-init on azure generates netplan yaml that includes dhcp4 with the dhcp4-overrides of route-metric, i.e.:
dhcp4: true
however netplan requires the same route-metric for dhcp4 and dhcp6 as networkd doesn't allow specifying separate metrics for 4 vs 6, so when azure is setup with dual-stack the netplan yaml is not valid for netplan, i.e.:
dhcp4: true
dhcp6: true
which causes netplan to exit with error:
Stderr: ERROR: eth0: networkd requires that route-metric has the same value in both dhcp4_overrides and dhcp6_overrides
Related branches
~chad.smith/cloud-init:bug/azure-dhcp6-metric
- Server Team CI bot: Approve (continuous-integration)
- Ryan Harper: Approve
-
Diff: 307 lines (+178/-10)5 files modifiedcloudinit/net/network_state.py (+13/-4)
cloudinit/net/sysconfig.py (+3/-3)
cloudinit/sources/DataSourceAzure.py (+7/-3)
tests/unittests/test_datasource/test_azure.py (+101/-0)
tests/unittests/test_net.py (+54/-0)
tags: | added: sts |
Changed in cloud-init: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in cloud-init: | |
assignee: | nobody → Chad Smith (chad.smith) |
status: | Triaged → In Progress |
description: | updated |
description: | updated |
To post a comment you must log in.
This bug is fixed with commit 02f07b66 to cloud-init on branch master. /git.launchpad. net/cloud- init/commit/ ?id=02f07b66
To view that commit see the following URL:
https:/