** Description changed:

- http://pad.lv/1610784
- 
  ==== Begin SRU Template ====
- [Impact] 
+ [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/cloud-init* 
-  * reboot
-  * verify working network and no WARN in /var/log/cloud-init.
+  * Boot a VM in the reporters environment,
+  * add proposed,
+  * rm -Rf /var/lib/cloud /var/log/cloud-init*
+  * reboot
+  * verify working network and no WARN in /var/log/cloud-init.
  
- [Regression Potential] 
+ [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://gist.github.com/anonymous/ce20298b9e12e7fe77851552c2a91243
  
  == Error log ==
  From line 574 in 
https://git.launchpad.net/cloud-init/tree/cloudinit/sources/helpers/openstack.py:
  
  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/python3/dist-packages/cloudinit/cmd/main.py", line 530, in 
status_wrapper
  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/python3/dist-packages/cloudinit/cmd/main.py", line 277, in main_init
  Jul 28 10:31:38 ubuntu cloud-init[1209]: 
init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
  Jul 28 10:31:38 ubuntu cloud-init[1209]: File 
"/usr/lib/python3/dist-packages/cloudinit/stages.py", line 631, in 
apply_network_config
  Jul 28 10:31:38 ubuntu cloud-init[1209]: netcfg, src = 
self._find_networking_config()
  Jul 28 10:31:38 ubuntu cloud-init[1209]: File 
"/usr/lib/python3/dist-packages/cloudinit/stages.py", line 618, in 
_find_networking_config
  Jul 28 10:31:38 ubuntu cloud-init[1209]: if self.datasource and 
hasattr(self.datasource, 'network_config'):
  Jul 28 10:31:38 ubuntu cloud-init[1209]: File 
"/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py", 
line 159, in network_config
  Jul 28 10:31:38 ubuntu cloud-init[1209]: self.network_json, 
known_macs=self.known_macs)
  Jul 28 10:31:38 ubuntu cloud-init[1209]: File 
"/usr/lib/python3/dist-packages/cloudinit/sources/helpers/openstack.py", line 
599, in convert_net_json
  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]: 
------------------------------------------------------------

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1610784

Title:
  cloud-init openstack.py code does not recognize network type 'tap'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1610784/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to