The OpenStack network_config.json implementation fails on Hyper-V compute nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Scott Moser | ||
Ocata |
Fix Committed
|
Medium
|
Vladyslav Drok | ||
cloud-init |
Fix Released
|
Medium
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Scott Moser | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
When a config drive provides network_data.json on Azure OpenStack,
cloud-init will fail to configure networking.
Console log and /var/log/
ValueError: Unknown network_data link type: hyperv
This woudl also occur when the type of the network device as declared
to cloud-init was 'hw_veb', 'hyperv', 'vhostuser' or 'vrouter'.
[Test Case]
Launch an instance with config drive on hyperv cloud.
[Regression Potential]
Low to none. cloud-init is relaxing requirements and will accept things
now that it previously complained were invalid.
=== End SRU Template ===
We have discovered an issue when booting Xenial instances on OpenStack environments (Liberty or newer) and Hyper-V compute nodes using config drive as metadata source.
When applying the network_
http://
The fix would be to add 'hyperv' as a link type here:
/usr/lib/
Related bugs:
* bug 1674946: cloud-init fails with "Unknown network_data link type: dvs
* bug 1642679: OpenStack network_config.json implementation fails on Hyper-V compute nodes
Related branches
- Adrian Vladu (community): Approve
- Alessandro Pilotti (community): Approve
- Ryan Harper: Approve
-
Diff: 34 lines (+14/-2)1 file modifiedcloudinit/sources/helpers/openstack.py (+14/-2)
description: | updated |
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
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 → Confirmed |
Changed in cloud-init (Ubuntu Xenial): | |
importance: | Undecided → Medium |
status: | Confirmed → In Progress |
assignee: | nobody → Scott Moser (smoser) |
Changed in cloud-init (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
no longer affects: | cloud-init (Ubuntu Vivid) |
no longer affects: | cloud-init (Ubuntu Wily) |
description: | updated |
Changed in nova: | |
status: | In Progress → Fix Released |
description: | updated |
Changed in nova: | |
status: | Fix Released → Incomplete |
Changed in nova: | |
assignee: | nobody → Scott Moser (smoser) |
status: | Incomplete → In Progress |
description: | updated |
Changed in nova: | |
importance: | Undecided → Medium |
Hi,
I've subscribed Xiang to this as he recently pinged me on a different string that may appear as a network device. My response to him was:
| This non-sense really needs to stop.
| We need to fix openstack to stop sending arbitrary "types" of network
| devices that mean nothing to the guest.
|
| No *new* ones should be allowed.
|
| 'vhostuser' or 'ovs' means nothing to the guest. They just see a nic.
| They can't possibly use that information in any way, so telling them is
| not helpful. The type of the device should be 'tap' or 'ethernet'.
|
| Can you submit a merge proposal upstream that does that?
|
| We can take these things in, but they're silly and quite obviously busted,
| unless you have some information that shows why they're not.
I'm willing to take this, but lets *please* work to fix the source
of the problem.
Adrian,
Can you please file a merge proposal upstream to fix this?
You're welcome to use this bug. I've made it "Also affects nova".