Public bug reported: Description of problem: The routes put in route6-$DEVICE by cloud-init is in an invalid format.
The schema[1] for network_matadata uses a non-converntinal format for the IPv6 netmask. It is stored as an IPv6 address, similar to how IPv4 netmasks are written 255.255.255.0 the IPv6 netmask is written as FFFF:FFFF:FFFF:FFFF:: in the network metadata. cloud-init does not translate this. So you end up with: cat /etc/sysconfig/network-scripts/route6-ens3 # Created by cloud-init on instance boot automatically, do not edit. # ::/:: via fd00:fd00:fd00:2::fffe dev ens3 fd00:fd00:fd00:1::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00:2::fffe dev ens3 fd00:fd00:fd00::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00:2::fffe dev ens3 The result is that the routes are ignored since it is not a valid inet6 prefix. [1] https://docs.openstack.org/nova/latest/_downloads/9119ca7ac90aa2990e762c08baea3a36/network_data.json Actual results: Jan 26 14:12:45 overcloud-novacompute-0 NetworkManager[1027]: <warn> [1643206365.7973] ifcfg-rh: ignoring invalid route at "::/:: via fd00:fd00:fd00:2::fffe dev ens3" (/etc/sysconfig/network-scripts/route6-ens3:3): Argument for "::/::" is not ADDR/PREFIX format Jan 26 14:12:45 overcloud-novacompute-0 NetworkManager[1027]: <warn> [1643206365.7977] ifcfg-rh: ignoring invalid route at "fd00:fd00:fd00:1::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00:2::fffe dev ens3" (/etc/sysconfig/network-scripts/route6-ens3:4): Argument for "fd00:fd00:fd00:1::/ffff:ffff:ffff:ffff::" is not ADDR/PREFIX format Jan 26 14:12:45 overcloud-novacompute-0 NetworkManager[1027]: <warn> [1643206365.7979] ifcfg-rh: ignoring invalid route at "fd00:fd00:fd00::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00:2::fffe dev ens3" (/etc/sysconfig/network-scripts/route6-ens3:5): Argument for "fd00:fd00:fd00::/ffff:ffff:ffff:ffff::" is not ADDR/PREFIX format ip -6 route add fd00:fd00:fd00::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00::1 Error: inet6 prefix is expected rather than "fd00:fd00:fd00::/ffff:ffff:ffff:ffff::". Expected results: The netmask should be the decimal number in CIDR annotation. ** Affects: cloud-init Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to cloud-init. https://bugs.launchpad.net/bugs/1959148 Title: cloud-init writes route6-$DEVICE config with a HEX netmask. ip route does not like : Error: inet6 prefix is expected rather than "fd00:fd00:fd00::/ffff:ffff:ffff:ffff::". Status in cloud-init: New Bug description: Description of problem: The routes put in route6-$DEVICE by cloud-init is in an invalid format. The schema[1] for network_matadata uses a non-converntinal format for the IPv6 netmask. It is stored as an IPv6 address, similar to how IPv4 netmasks are written 255.255.255.0 the IPv6 netmask is written as FFFF:FFFF:FFFF:FFFF:: in the network metadata. cloud-init does not translate this. So you end up with: cat /etc/sysconfig/network-scripts/route6-ens3 # Created by cloud-init on instance boot automatically, do not edit. # ::/:: via fd00:fd00:fd00:2::fffe dev ens3 fd00:fd00:fd00:1::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00:2::fffe dev ens3 fd00:fd00:fd00::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00:2::fffe dev ens3 The result is that the routes are ignored since it is not a valid inet6 prefix. [1] https://docs.openstack.org/nova/latest/_downloads/9119ca7ac90aa2990e762c08baea3a36/network_data.json Actual results: Jan 26 14:12:45 overcloud-novacompute-0 NetworkManager[1027]: <warn> [1643206365.7973] ifcfg-rh: ignoring invalid route at "::/:: via fd00:fd00:fd00:2::fffe dev ens3" (/etc/sysconfig/network-scripts/route6-ens3:3): Argument for "::/::" is not ADDR/PREFIX format Jan 26 14:12:45 overcloud-novacompute-0 NetworkManager[1027]: <warn> [1643206365.7977] ifcfg-rh: ignoring invalid route at "fd00:fd00:fd00:1::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00:2::fffe dev ens3" (/etc/sysconfig/network-scripts/route6-ens3:4): Argument for "fd00:fd00:fd00:1::/ffff:ffff:ffff:ffff::" is not ADDR/PREFIX format Jan 26 14:12:45 overcloud-novacompute-0 NetworkManager[1027]: <warn> [1643206365.7979] ifcfg-rh: ignoring invalid route at "fd00:fd00:fd00::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00:2::fffe dev ens3" (/etc/sysconfig/network-scripts/route6-ens3:5): Argument for "fd00:fd00:fd00::/ffff:ffff:ffff:ffff::" is not ADDR/PREFIX format ip -6 route add fd00:fd00:fd00::/ffff:ffff:ffff:ffff:: via fd00:fd00:fd00::1 Error: inet6 prefix is expected rather than "fd00:fd00:fd00::/ffff:ffff:ffff:ffff::". Expected results: The netmask should be the decimal number in CIDR annotation. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1959148/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

