cloud-init fails with "Unknown network_data link type: dvs"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Wishlist
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
When a config drive provides network_data.json on Openstack running on
ESXi 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', or 'vhostuser'.
[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.
This is very similar to change in bug 1642679.
Upstream Openstack Merge proposal to stop this from continually
happening at https:/
=== End SRU Template ===
When booting an OpenStack instance, cloud-init fails with:
[ 33.307325] cloud-init[445]: Cloud-init v. 0.7.9 running 'init-local' at Mon, 20 Mar 2017 14:42:58 +0000. Up 31.06 seconds.
[ 33.368434] cloud-init[445]: 2017-03-20 14:43:00,779 - util.py[WARNING]: failed stage init-local
[ 33.449886] cloud-init[445]: failed run of stage init-local
[ 33.490863] cloud-init[445]: -------
[ 33.542214] cloud-init[445]: Traceback (most recent call last):
[ 33.585204] cloud-init[445]: File "/usr/lib/
[ 33.654579] cloud-init[445]: ret = functor(name, args)
[ 33.696372] cloud-init[445]: File "/usr/lib/
[ 33.755593] cloud-init[445]: init.apply_
[ 33.809124] cloud-init[445]: File "/usr/lib/
[ 33.847161] cloud-init[445]: netcfg, src = self._find_
[ 33.876562] cloud-init[445]: File "/usr/lib/
[ 33.916335] cloud-init[445]: if self.datasource and hasattr(
[ 33.956207] cloud-init[445]: File "/usr/lib/
[ 34.008213] cloud-init[445]: self.network_json, known_macs=
[ 34.049714] cloud-init[445]: File "/usr/lib/
[ 34.104226] cloud-init[445]: 'Unknown network_data link type: %s' % link['type'])
[ 34.144219] cloud-init[445]: ValueError: Unknown network_data link type: dvs
[ 34.175934] cloud-init[445]: -------
I am using Neutron with the Simple DVS plugin.
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
- Server Team CI bot: Approve (continuous-integration)
- Lars Kellogg-Stedman (community): Approve
- cloud-init Commiters: Pending requested
-
Diff: 12 lines (+1/-0)1 file modifiedcloudinit/sources/helpers/openstack.py (+1/-0)
Changed in cloud-init: | |
status: | Incomplete → In Progress |
Changed in cloud-init (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in cloud-init: | |
status: | In Progress → Fix Committed |
Changed in cloud-init (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu Yakkety): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Xenial): | |
importance: | Undecided → Medium |
description: | updated |
tags: |
added: verification-needed removed: verification-done-xenial |
I've marked nova as an 'affects'.
This is really nova's bug. I've submitted a merge proposal to stop this behavior from continuing at
https:/ /review. openstack. org/#/c/ 400883/ 2