** Summary changed: - [FFe] ec2 add support for configuring secondary ipv4 and ipv6 addresses + [FFe] ec2 add support for configuring secondary NICs and secondary ipv4 and ipv6 addresses
** Description changed: Ec2's IMDS metadata reports network configuration for any secondary IPv4 and IPv6 addresses that have been created and attached to any NIC associated with an instance. - Cloud-init should add static IP configuration for any secondary IPv4 of - IPv6 addresses that have been configured and attached to their instances - so that network configuration work does not have to be done manually - after initial system boot. + cloud-init currently only renders network config on the primary NIC + (eth0). - To obtain this data from Ec2 IMDS, cloud-init needs to crawl Ec2 metadata version 2018-09-24 if present because that version of Ec2 metadata contains lists of primary and secondary ip addresses for metadata keys ipv6s and local-ipv4s. Combined with the keys subnet-ipv4-cidr-block and - subnet-ipv6-cidr-block. Cloud-init can construct appropriate ip and mask/prefix for any of the secondary IPs assigned to a nic. + Cloud-init should add network configuration for an additional attached + NICs beyond the primary eth0. - To retain original behavior of stable ubuntu releases, ensure this - automatic secondary IP address configuration can also be disabled. + Cloud-init should also add static IP configuration for any secondary + IPv4 of IPv6 addresses that have been configured on any NIC so no manual + network configuration is required after initial system boot. + + To obtain this data from Ec2 IMDS, cloud-init needs to crawl Ec2 + metadata version 2018-09-24, if present, to obtain lists of secondary ip + addresses from metadata keys "ipv6s" and "local-ipv4s". + + Combined with the keys "subnet-ipv4-cidr-block" and + "subnet-ipv6-cidr-block", cloud-init can configure appropriate static IP CIDRs for any of the secondary IPs assigned to a NIC. + + + To retain original behavior of stable ubuntu releases, ensure this automatic secondary IP address configuration can also be disabled. This code change will only impact Ec2 datasources launched on Focal and can be optionally disabled in an image if undesired. ** Description changed: Ec2's IMDS metadata reports network configuration for any secondary IPv4 and IPv6 addresses that have been created and attached to any NIC associated with an instance. cloud-init currently only renders network config on the primary NIC (eth0). Cloud-init should add network configuration for an additional attached - NICs beyond the primary eth0. + NICs beyond the primary eth0 as well as add static IP configuration for + any secondary IPv4 of IPv6 addresses present on each NIC. - Cloud-init should also add static IP configuration for any secondary - IPv4 of IPv6 addresses that have been configured on any NIC so no manual - network configuration is required after initial system boot. + This avoids forcing the manual network configuration onto the end-user + or image creator after initial system boot for secondary NICs or IP + addresses. To obtain this data from Ec2 IMDS, cloud-init needs to crawl Ec2 metadata version 2018-09-24, if present, to obtain lists of secondary ip addresses from metadata keys "ipv6s" and "local-ipv4s". Combined with the keys "subnet-ipv4-cidr-block" and "subnet-ipv6-cidr-block", cloud-init can configure appropriate static IP CIDRs for any of the secondary IPs assigned to a NIC. - - To retain original behavior of stable ubuntu releases, ensure this automatic secondary IP address configuration can also be disabled. + To retain original behavior of stable ubuntu releases, ensure this + automatic secondary IP address configuration can also be disabled. This code change will only impact Ec2 datasources launched on Focal and can be optionally disabled in an image if undesired. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1866930 Title: [FFe] ec2 add support for configuring secondary NICs and secondary ipv4 and ipv6 addresses To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1866930/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs