[libvirt-users] libvirtError: Unable to add bridge br0 port vnet0: Operation not supported

Hi I am using Libvirt 1.1.2 with Openstack Havana (RC2, nova-network) and openvswitch 1.4.2+git20120612-9.1. Libvirt vif driver ( nova.virt.libvirt.vif.LibvirtGenericVIFDriver) generates config likes this: <interface type='bridge'> <mac address='fa:16:3e:44:30:a4'/> <source bridge='br0'/> <model type='virtio'/> <filterref filter='nova-instance-instance-000003d8-fa163e0b07a7'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> and instance fails to start with: 2013-10-16 11:16:13.004+0000: 11943: info : virNetDevProbeVnetHdr:122 : Enabling IFF_VNET_HDR 2013-10-16 11:16:13.105+0000: 11943: error : virNetDevBridgeAddPort:370 : Unable to add bridge br0 port vnet0: Operation not supported If I add <virtualport type='openvswitch' /> inside <interface type='bridge'>...</interface> it seems to work fine. Is it nova-network or libvirt bug or some misconfiguration? regards -- Maciej Gałkiewicz Shelly Cloud Sp. z o. o., Sysadmin http://shellycloud.com/, macias@shellycloud.com KRS: 0000440358 REGON: 101504426

On Wed, Oct 16, 2013 at 01:52:57PM +0200, Maciej Gałkiewicz wrote:
Hi
I am using Libvirt 1.1.2 with Openstack Havana (RC2, nova-network) and openvswitch 1.4.2+git20120612-9.1. Libvirt vif driver ( nova.virt.libvirt.vif.LibvirtGenericVIFDriver) generates config likes this:
<interface type='bridge'> <mac address='fa:16:3e:44:30:a4'/> <source bridge='br0'/> <model type='virtio'/> <filterref filter='nova-instance-instance-000003d8-fa163e0b07a7'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface>
and instance fails to start with:
2013-10-16 11:16:13.004+0000: 11943: info : virNetDevProbeVnetHdr:122 : Enabling IFF_VNET_HDR 2013-10-16 11:16:13.105+0000: 11943: error : virNetDevBridgeAddPort:370 : Unable to add bridge br0 port vnet0: Operation not supported
If I add <virtualport type='openvswitch' /> inside <interface type='bridge'>...</interface> it seems to work fine. Is it nova-network or libvirt bug or some misconfiguration?
Sounds like a host mis-configuration related to kernel bridge support to me. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

On 16 October 2013 13:55, Daniel P. Berrange <berrange@redhat.com> wrote:
Sounds like a host mis-configuration related to kernel bridge support to me.
Could you tell me what might be mis-configured? I am using kernel 3.10.11, modules openvswitch, bridge, stp and llc are loaded. regards -- Maciej Gałkiewicz Shelly Cloud Sp. z o. o., Sysadmin http://shellycloud.com/, macias@shellycloud.com KRS: 0000440358 REGON: 101504426

On Wed, Oct 16, 2013 at 02:04:47PM +0200, Maciej Gałkiewicz wrote:
On 16 October 2013 13:55, Daniel P. Berrange <berrange@redhat.com> wrote:
Sounds like a host mis-configuration related to kernel bridge support to me.
Could you tell me what might be mis-configured? I am using kernel 3.10.11, modules openvswitch, bridge, stp and llc are loaded.
Well if you're trying to use bridged interfaces then make sure you have the normal bridge modules & tools, and not the openvswitch compatibilty layer which has caused problems for people in the past IIRC. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

On 16 October 2013 14:15, Daniel P. Berrange <berrange@redhat.com> wrote:
Well if you're trying to use bridged interfaces then make sure you have the normal bridge modules & tools, and not the openvswitch compatibilty layer which has caused problems for people in the past IIRC.
Looks like my openvswitch installation does not have bridge compatibility. I have tried removing modules bridge, stp and llc. What is more package openvswitch-brcompat is not installed and brctl does not show openvswitch bridge. It must be something else. -- Maciej Gałkiewicz Shelly Cloud Sp. z o. o., Sysadmin http://shellycloud.com/, macias@shellycloud.com KRS: 0000440358 REGON: 101504426
participants (2)
-
Daniel P. Berrange
-
Maciej Gałkiewicz