← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1610784] [NEW] cloud-init openstack.py code does not recognize network type 'tap'

 

Public bug reported:

>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]: ------------------------------------------------------------


More information is coming....

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1610784

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

Status in cloud-init:
  New

Bug description:
  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]: ------------------------------------------------------------

  
  More information is coming....

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


Follow ups