cloud-init / nplan - missing bond mode miimon xmit_hash_policy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Dimitri John Ledkov | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned | ||
Zesty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
When rendering netplan output from OpenStack network configuration format
(network_
bond attributes. The result is that those attributes are not set as
desired.
[Test Case]
The basic idea below is:
a.) launch an instance with proposed version of cloud-init.
b.) inside instance, get cloud-init's network rendering tool from trunk
c.) run the rendering tool against a config that failed before.
d.) check rendered netplan config to verify it has expected bond attributes.
## launch an instance.
$ release=xenial
$ ref=$release-
$ lxc-proposed-
$ lxc launch $name
$ sleep 10
$ lxc exec $name /bin/bash
## get render tool
% wget https:/
% wget https:/
% python3 ./net-convert.py \
--network-
--output-
--mac=
--directory
## Now see that the 'mii-monitor-
## 'transmit-
% egrep --context=5 '(mii-monitor-
out.
bond0:
- eth0
- eth1
vlans:
bond0.101:
- 104.130.20.119/24
id: 101
[Regression Potential]
Fairly low chance for regression. The bond attributes were just not
being written and now they will be.
[Other Info]
Upstream commit at
https:/
lxc-proposed-
https:/
It publishes an image to lxd with proposed enabled and cloud-init upgraded.
=== End SRU Template ===
Given network-data.json http://
cloud-init generates http://
which is missing
For the bond specification
As per nplan docs it should be defined as parameters dictionary
https:/
mode: 802.3ad
mii-monitor-
transmit-
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Ryan Harper: Needs Fixing
-
Diff: 70 lines (+12/-2)2 files modifiedcloudinit/net/netplan.py (+2/-2)
tests/unittests/test_net.py (+10/-0)
description: | updated |
description: | updated |
Changed in cloud-init (Ubuntu): | |
status: | New → In Progress |
Changed in cloud-init: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Zesty): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu Yakkety): | |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu Zesty): | |
status: | New → Confirmed |
Changed in cloud-init: | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
description: | updated |
In test_configdrive.py it specifies bond_mode as "4", whereas my configdrive specifies it as 802.3ad