EC2: cloud-init network fails in ipv6-only subnet with multi-NICs
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
cloud-init (Ubuntu) | Status tracked in Oracular | |||||
Focal |
Fix Released
|
Undecided
|
Unassigned | |||
Jammy |
Fix Released
|
Undecided
|
Unassigned | |||
Mantic |
Fix Released
|
Undecided
|
Unassigned | |||
Noble |
Fix Released
|
Undecided
|
Unassigned | |||
Oracular |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
Cloud-init recently added policy based routing for multi-nic setups in EC2. The added code assumed that "subnet-
The fix is to check for required keys before configuring policy based routing, and if the keys do not exist, skip configuration.
[ Test Plan ]
Launch an EC2 instance with at least two NICs in an ipv6-only subnet.
Verify that the instance can be accessed via SSH.
Verify that there are no warnings of tracebacks in the logs related to network configuration.
Verify that /etc/netplan/
Run tests/integrati
tests/integrati
to ensure no regression to existing multinic rendering behavior.
[ Where problems could occur ]
Since we've added a guard to the policy-based routing rendering, any error in this code would result in the same functionality as now, or result in rendering all of the network except for the policy based routing for secondary NICs.
[ Other Info ]
Upstream bug: https:/
Upstream fix: https:/
Upstream change causing issue: https:/
description: | updated |
summary: |
- cloud-init network fails in ipv6-only subnet with multi-NICs + EC2: cloud-init network fails in ipv6-only subnet with multi-NICs |
This bug was fixed in the package cloud-init - 24.2~3ge68c8c74 -0ubuntu1
--------------- 4-0ubuntu1) oracular; urgency=medium
cloud-init (24.2~3ge68c8c7
* Upstream snapshot based on upstream/main at e68c8c74.
- Bugs fixed in this snapshot: (LP: #2066979, #2066985)
-- James Falcon <email address hidden> Fri, 24 May 2024 12:08:51 -0500