cloud-init openstack.py code does not recognize network type 'tap'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Scott Moser | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
==== Begin SRU Template ====
[Impact]
Certain versions and configurations of Openstack produce a config
drive that has network devices described as 'type: tap'. Previously
cloud-init would require those to be 'type: ethernet' or other.
The fix was to allow 'tap' to be considered a "physical" type from the
guest VM's perspective.
[Test Case]
* Boot a VM in the reporters environment,
* add proposed,
* rm -Rf /var/lib/cloud /var/log/
* reboot
* verify working network and no WARN in /var/log/
[Regression Potential]
This is verified fixed for the user in yakkety, and the fix understood, so
likely the fix will work in xenial.
The regression potential would be if a network_config.json file actually
tried to create 'tap' network interfaces and referred to them as
type: tap. This would consider those to be physical interfaces.
However, 'tap' type would not have been understood previously. And the
bug in that case is in openstack for giving non-deterministic configuration.
==== End SRU Template ====
== System info ==
Xenial 16.04.1, Mitaka, MAAS 2.0 (RC2 currently), JuJu 2.0 (beta7 currently - awaiting beta14), 16.07 Charms, neutron-calico-11 (awaiting fix for another bug).
== Config drive link ==
https:/
== Error log ==
From line 574 in https:/
if link['type'] in ['ethernet', 'vif', 'ovs', 'phy', 'bridge']:
Jul 28 10:31:38 ubuntu cloud-init[1209]: failed run of stage init-local
Jul 28 10:31:38 ubuntu cloud-init[1209]: -------
Jul 28 10:31:38 ubuntu cloud-init[1209]: Traceback (most recent call last):
Jul 28 10:31:38 ubuntu cloud-init[1209]: File "/usr/lib/
Jul 28 10:31:38 ubuntu cloud-init[1209]: ret = functor(name, args)
Jul 28 10:31:38 ubuntu cloud-init[1209]: File "/usr/lib/
Jul 28 10:31:38 ubuntu cloud-init[1209]: init.apply_
Jul 28 10:31:38 ubuntu cloud-init[1209]: File "/usr/lib/
Jul 28 10:31:38 ubuntu cloud-init[1209]: netcfg, src = self._find_
Jul 28 10:31:38 ubuntu cloud-init[1209]: File "/usr/lib/
Jul 28 10:31:38 ubuntu cloud-init[1209]: if self.datasource and hasattr(
Jul 28 10:31:38 ubuntu cloud-init[1209]: File "/usr/lib/
Jul 28 10:31:38 ubuntu cloud-init[1209]: self.network_json, known_macs=
Jul 28 10:31:38 ubuntu cloud-init[1209]: File "/usr/lib/
Jul 28 10:31:38 ubuntu cloud-init[1209]: 'Unknown network_data link type: %s' % link['type'])
Jul 28 10:31:38 ubuntu cloud-init[1209]: ValueError: Unknown network_data link type: tap
Jul 28 10:31:38 ubuntu cloud-init[1209]: -------
description: | updated |
description: | updated |
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
status: | Confirmed → In Progress |
assignee: | nobody → Scott Moser (smoser) |
Changed in cloud-init (Ubuntu Xenial): | |
status: | Confirmed → In Progress |
importance: | Undecided → Medium |
description: | updated |
fixed in 8028c9234ec4260 eda9431bffc6728 ac3703e243