Public bug reported: static routes rendered for eni configuration are not correct
example: config: - mac_address: aa:12:bc:34:ee:ac name: eno3 subnets: - address: fd00::12/64 dns_nameservers: ['fd00:2::15'] gateway: fd00::1 ipv6: true routes: - netmask: '32' network: 'fd00:12::' gateway: fd00::2 type: static type: physical version: 1 Cloud init renders: """ auto lo iface lo inet loopback auto eno3 iface eno3 inet6 static address fd00::12/64 dns-nameservers fd00:2::15 gateway fd00::1 post-up route add -net fd00:12:: netmask 32 gw fd00::2 || true pre-down route del -net fd00:12:: netmask 32 gw fd00::2 || true """ but the post-up/pre-down commands are incorrect (tested, even when replacing the 32 netmask by ffff:ffff::) One working version """ post-up route add -A inet6 fd00:12::/32 gw fd00::2 || true pre-down route del -A inet6 fd00:12::/32 gw fd00::2 || true """ Fix proposal available here https://code.launchpad.net/~raphael-glon/cloud-init/+git/cloud-init/+merge/363970 ** Affects: cloud-init Importance: Undecided Status: New ** Description changed: - static routes rendered for eni configuration are not correct for static - ipv6 routes + static routes rendered for eni configuration are not correct example: config: - - mac_address: aa:12:bc:34:ee:ac - name: eno3 - subnets: - - address: fd00::12/64 - dns_nameservers: ['fd00:2::15'] - gateway: fd00::1 - ipv6: true - routes: - - netmask: '32' - network: 'fd00:12::' - gateway: fd00::2 - type: static - type: physical - version: 1 - + - mac_address: aa:12:bc:34:ee:ac + name: eno3 + subnets: + - address: fd00::12/64 + dns_nameservers: ['fd00:2::15'] + gateway: fd00::1 + ipv6: true + routes: + - netmask: '32' + network: 'fd00:12::' + gateway: fd00::2 + type: static + type: physical + version: 1 Cloud init renders: """ auto lo iface lo inet loopback auto eno3 iface eno3 inet6 static - address fd00::12/64 - dns-nameservers fd00:2::15 - gateway fd00::1 - post-up route add -net fd00:12:: netmask 32 gw fd00::2 || true - pre-down route del -net fd00:12:: netmask 32 gw fd00::2 || true + address fd00::12/64 + dns-nameservers fd00:2::15 + gateway fd00::1 + post-up route add -net fd00:12:: netmask 32 gw fd00::2 || true + pre-down route del -net fd00:12:: netmask 32 gw fd00::2 || true """ but the post-up/pre-down commands are incorrect (tested, even when replacing the 32 netmask by ffff:ffff::) One working version """ - post-up route add -A inet6 fd00:12::/32 gw fd00::2 || true - pre-down route del -A inet6 fd00:12::/32 gw fd00::2 || true + post-up route add -A inet6 fd00:12::/32 gw fd00::2 || true + pre-down route del -A inet6 fd00:12::/32 gw fd00::2 || true """ Fix proposal available here https://code.launchpad.net/~raphael-glon/cloud-init/+git/cloud-init/+merge/363970 -- 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/1818669 Title: ipv6 static routes configured for eni are incorrect Status in cloud-init: New Bug description: static routes rendered for eni configuration are not correct example: config: - mac_address: aa:12:bc:34:ee:ac name: eno3 subnets: - address: fd00::12/64 dns_nameservers: ['fd00:2::15'] gateway: fd00::1 ipv6: true routes: - netmask: '32' network: 'fd00:12::' gateway: fd00::2 type: static type: physical version: 1 Cloud init renders: """ auto lo iface lo inet loopback auto eno3 iface eno3 inet6 static address fd00::12/64 dns-nameservers fd00:2::15 gateway fd00::1 post-up route add -net fd00:12:: netmask 32 gw fd00::2 || true pre-down route del -net fd00:12:: netmask 32 gw fd00::2 || true """ but the post-up/pre-down commands are incorrect (tested, even when replacing the 32 netmask by ffff:ffff::) One working version """ post-up route add -A inet6 fd00:12::/32 gw fd00::2 || true pre-down route del -A inet6 fd00:12::/32 gw fd00::2 || true """ Fix proposal available here https://code.launchpad.net/~raphael-glon/cloud-init/+git/cloud-init/+merge/363970 To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1818669/+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

