[Openstack] neutron/ with linux-bridge error

Bhattacharjee, Arindam (Arindam) arindam.bhattacharjee at alcatel-lucent.com
Wed Jan 8 23:47:29 UTC 2014


Hi all,
I have one NIC on host.
Using two vlans 600 and 700 to be connected to two vNICs of a linux VM created on host/KVM.

seems like I'm hitting this bug from this error "AttributeError: 'function' object has no attribute 'get_port'\n"]

https://bugs.launchpad.net/neutron/+bug/1241602

Could anyone help me. My neutron server and other componenets are all ugraded to latest.

I don't see that vlan 600 created on linux-bridge or Host NIC.
root at trialims02:/var/log/neutron# ifconfig
brq19398388-51 Link encap:Ethernet  HWaddr 18:a9:05:4e:26:3e
          inet6 addr: fe80::2046:53ff:fe0e:3cd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2664 (2.6 KB)  TX bytes:648 (648.0 B)

brqce3c8a47-4c Link encap:Ethernet  HWaddr fe:16:3e:f0:b3:af
          inet6 addr: fe80::b063:eeff:fe01:8f5c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2336 (2.3 KB)  TX bytes:648 (648.0 B)

em1       Link encap:Ethernet  HWaddr 18:a9:05:4e:26:3e
          inet addr:192.168.40.4  Bcast: 192.168.40.31  Mask:255.255.255.224
          inet6 addr: fe80::1aa9:5ff:fe4e:263e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1823835 errors:0 dropped:0 overruns:0 frame:0
          TX packets:252837 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2598499972 (2.5 GB)  TX bytes:25556943 (25.5 MB)

em2       Link encap:Ethernet  HWaddr 18:a9:05:4e:26:40
          inet addr:192.168.10.34  Bcast:192.168.10.63  Mask:255.255.255.224
          inet6 addr: fe80::1aa9:5ff:fe4e:2640/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:910 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:58240 (58.2 KB)  TX bytes:680 (680.0 B)

em1.700   Link encap:Ethernet  HWaddr 18:a9:05:4e:26:3e
          inet6 addr: fe80::1aa9:5ff:fe4e:263e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:3800 (3.8 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:414216 errors:0 dropped:0 overruns:0 frame:0
          TX packets:414216 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:121816361 (121.8 MB)  TX bytes:121816361 (121.8 MB)

tap54be5318-ef Link encap:Ethernet  HWaddr fe:16:3e:f0:b3:af
          inet6 addr: fe80::fc16:3eff:fef0:b3af/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:2490 (2.4 KB)  TX bytes:3528 (3.5 KB)

tapd078479e-59 Link encap:Ethernet  HWaddr fe:16:3e:b4:ab:4d
          inet6 addr: fe80::fc16:3eff:feb4:ab4d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:2832 (2.8 KB)  TX bytes:3960 (3.9 KB)

root at trialims02:~# brctl show
bridge name     bridge id               STP enabled     interfaces
brq19398388-51          8000.18a9054e263e       no              em1.700
                                                        tapd078479e-59
brqce3c8a47-4c          8000.fe163ef0b3af       no              tap54be5318-ef

#### Ubuntu and neutron release details

root at trialims02:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:        13.10
Codename:       saucy
root at trialims02:~# apt-cache policy neutron-server
neutron-server:
  Installed: 1:2013.2-0ubuntu1
  Candidate: 1:2013.2-0ubuntu1
  Version table:
*** 1:2013.2-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:2013.2-0ubuntu1~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/havana/main amd64 Packages
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-proposed/havana/main amd64 Packages
     1:2013.2~rc3-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
root at trialims02:~# apt-cache policy neutron-plugin-linuxbridge-agent
neutron-plugin-linuxbridge-agent:
  Installed: 1:2013.2-0ubuntu1
  Candidate: 1:2013.2-0ubuntu1
  Version table:
*** 1:2013.2-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:2013.2-0ubuntu1~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/havana/main amd64 Packages
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-proposed/havana/main amd64 Packages
     1:2013.2~rc3-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
root at trialims02:~# apt-cache policy neutron-plugin-linuxbridge
neutron-plugin-linuxbridge:
  Installed: 1:2013.2-0ubuntu1
  Candidate: 1:2013.2-0ubuntu1
  Version table:
*** 1:2013.2-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:2013.2-0ubuntu1~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/havana/main amd64 Packages
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-proposed/havana/main amd64 Packages
     1:2013.2~rc3-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages

# neutron/server log
2014-01-08 12:05:01.966 2249 ERROR neutron.openstack.common.rpc.common [-] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py", line 438, in _process_data\n    **args)\n', '  File "/usr/lib/python2.7/dist-packages/neutron/common/rpc.py", line 44, in dispatch\n    neutron_ctxt, version, method, namespace, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n    result = getattr(proxyobj, method)(ctxt, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/neutron/plugins/linuxbridge/lb_neutron_plugin.py", line 147, in update_device_up\n    port = self.get_port_from_device.get_port(device)\n', "AttributeError: 'function' object has no attribute 'get_port'\n"]
# neutron/linux-bridge log
ges/neutron/plugins/linuxbridge/lb_neutron_plugin.py", line 147, in update_device_up
2014-01-08 15:17:01.010 2220 TRACE neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent     port = self.get_port_from_device.get_port(device)
2014-01-08 15:17:01.010 2220 TRACE neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent
2014-01-08 15:17:01.010 2220 TRACE neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent AttributeError: 'function' object has no attribute 'get_port'
2014-01-08 15:17:01.010 2220 TRACE neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent
2014-01-08 15:17:01.010 2220 TRACE neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent
2014-01-08 15:17:03.013 2220 ERROR neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent [-] Error in agent loop. Devices info: {'current': set([u'tapeaae10cc-84', u'tapc8b9879b-b5']), 'removed': set([]), 'added': set([u'tapeaae10cc-84', u'tapc8b9879b-b5'])}
2014-01-08 15:17:03.013 2220 TRACE neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent Traceback (most recent call last):
2014-01-08

# Nova/nova-compute log
WARNING nova.virt.libvirt.vif [req-3b9dae5d-3582-4aa2-8637-4b0b465d106e b81925c907554451a9be9ef91f69ac0d eb8bd4aa2a5043ca9f61fd868da0cec3] Deprecated: The NeutronLinuxBridgeVIFDriver VIF driver is now deprecated and will be removed in the next release. Please use the LibvirtGenericVIFDriver VIF driver, together with a network plugin that reports the 'vif_type' attribute

Thanks
Arindam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140108/82017945/attachment.html>


More information about the Openstack mailing list