canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.88k stars 859 forks source link

cloud-init on azure with dual stack needs to add route-metric for dhcp6 also #3485

Closed ubuntu-server-builder closed 1 year ago

ubuntu-server-builder commented 1 year ago

This bug was originally filed in Launchpad as LP: #1850308

Launchpad details
affected_projects = []
assignee = chad.smith
assignee_name = Chad Smith
date_closed = 2019-12-19T22:57:58.931169+00:00
date_created = 2019-10-29T12:44:43.538276+00:00
date_fix_committed = 2019-11-04T22:11:42.411713+00:00
date_fix_released = 2019-12-19T22:57:58.931169+00:00
id = 1850308
importance = high
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1850308
milestone = None
owner = ddstreet
owner_name = Dan Streetman
private = False
status = fix_released
submitter = ddstreet
submitter_name = Dan Streetman
tags = ['sts']
duplicates = []

Launchpad user Dan Streetman(ddstreet) wrote on 2019-10-29T12:44:43.538276+00:00

cloud-init on azure generates netplan yaml that includes dhcp4 with the dhcp4-overrides of route-metric, i.e.:

            dhcp4: true             dhcp4-overrides:                 route-metric: 100

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             dhcp4-overrides:                 route-metric: 100             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

ubuntu-server-builder commented 1 year ago

Launchpad user Server Team CI bot(server-team-bot) wrote on 2019-11-04T22:11:41.074719+00:00

This bug is fixed with commit 02f07b66 to cloud-init on branch master. To view that commit see the following URL: https://git.launchpad.net/cloud-init/commit/?id=02f07b66

ubuntu-server-builder commented 1 year ago

Launchpad user Chad Smith(chad.smith) wrote on 2019-12-19T22:58:00.834223+00:00

This bug is believed to be fixed in cloud-init in version 19.2-80. If this is still a problem for you, please make a comment and set the state back to New

Thank you.