← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1100199] Re: vif-driver of Nova requires Portbindings extension

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1100199

Title:
  vif-driver of Nova requires Portbindings extension

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  I used Ryu plugin with Nova LibvirtHybridOVSBridgeDriver.
  When I launched an instance, the following problems occurred on nova-compute.

   Traceback (most recent call last):
     File "/opt/stack/nova/nova/compute/manager.py", line 960, in _spawn
       block_device_info)
     File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1029, in spawn
       block_device_info=block_device_info)
     File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1808, in to_xml
       rescue, block_device_info)
     File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1766, in get_guest_config
       self.vif_driver.plug(instance, (network, mapping))
     File "/opt/stack/nova/nova/virt/libvirt/vif.py", line 247, in plug
       instance['uuid'])
     File "/opt/stack/nova/nova/virt/libvirt/vif.py", line 160, in create_ovs_vif_port
       run_as_root=True)
     File "/opt/stack/nova/nova/utils.py", line 232, in execute
       cmd=' '.join(cmd))
   ProcessExecutionError: Unexpected error while running command.
   Command: sudo nova-rootwrap /etc/nova/rootwrap.conf ovs-vsctl -- --may-exist add-port None qvo75dfeac7-01 -- set Interface qvo75dfeac7-01 external-ids:iface-id=75dfeac7-0123-402a-b662-d4edd1327681 external-ids:iface-status=active external-ids:attached-mac=fa:16:3e:eb:d4:1f external-ids:vm-uuid=3b6cdd97-6586-478e-bbc2-73b36a8497e5

  It seems the result of Change Ib043e1e6.
    Make Quantum plugin fill in the 'bridge' name
    https://review.openstack.org/#/c/19119/

  nova/network/quantumv2/api.py
      bridge = None
      vif_type = port.get('binding:vif_type')
      # TODO(berrange) Quantum should pass the bridge name
      # in another binding metadata field
      if vif_type == network_model.VIF_TYPE_OVS:
          bridge = CONF.quantum_ovs_bridge
      elif vif_type == network_model.VIF_TYPE_BRIDGE:
          bridge = "brq" + port['network_id']

  By the above, I think that Qauntum plugin used with vif-driver of Nova
  has to support Portbindings extension.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1100199/+subscriptions