net/sysconfig.py is broken with ipv4 + ipv6 interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Lars Kellogg-Stedman | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
This code path is not applicable to Ubuntu.
The bug was in supporting dual stack network configuration in
sysconfig (Redhat/centos) format.
[Test Case]
Launch an instance on lxd, make sure it has network.
[Regression Potential]
Changes to network rendering could have negatively affected Ubuntu
the test above is valid to check that that didn't go horribly wrong.
[Other Info]
Upstream commit:
https:/
=== End SRU Template ===
Given a network configuration that includes ipv4 and ipv6 configuration for an interface, as in:
"networks": [
{
"id": "public-ipv6",
"link": "interface-public",
"netmask": "",
"type": "ipv6",
"routes": [
{
}
]
},
{
"id": "public-ipv4",
"link": "interface-public",
"netmask": "255.255.255.0",
"type": "ipv4",
"routes": [
{
}
]
}
]
cloud-init will fail because both subnets provide a default route, resulting in the error:
Duplicate declaration of default route found for interface eth0
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Needs Fixing
- Joshua Harlow: Pending requested
-
Diff: 200 lines (+118/-9)2 files modifiedcloudinit/net/sysconfig.py (+24/-9)
tests/unittests/test_net.py (+94/-0)
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Lars Kellogg-Stedman (larsks) |
Changed in cloud-init: | |
status: | Confirmed → Fix Committed |
Changed in cloud-init (Ubuntu): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu Yakkety): | |
status: | New → Won't Fix |
Changed in cloud-init (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
status: | Won't Fix → Confirmed |
description: | updated |
Hello Lars, or anyone else affected,
Accepted cloud-init into yakkety-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ cloud-init/ 0.7.9-90- g61eb03fe- 0ubuntu1~ 16.10.1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed. In either case, details of your testing will help us make a better decision.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance!