neutron ovs-agent failed to start due to non-existent bridge

Bug #1406710 reported by Jerry Zhao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compass
In Progress
Critical
Jerry Zhao

Bug Description

chef log:
http://10.145.81.112/logs/29/144129/8/check/compass-bare-e2e-allin1-experimental/37b8f54/chef_logs/allinone.allinone/chef-client.log

neutron ovs agent log:

physnet1 to bridge br-eth1
2014-12-30 21:30:56.681 29901 DEBUG neutron.agent.linux.utils [req-9a6c9ee0-c0df-46e4-81f9-4202ffe805ac None] Running command: ['ip', '-o', 'link', 'show', 'br-eth1'] create_process /usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:48
2014-12-30 21:30:56.696 29901 DEBUG neutron.openstack.common.rpc.amqp [req-9a6c9ee0-c0df-46e4-81f9-4202ffe805ac None] Making asynchronous cast on q-plugin... cast /usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/amqp.py:583
2014-12-30 21:30:56.696 29901 DEBUG neutron.openstack.common.rpc.amqp [req-9a6c9ee0-c0df-46e4-81f9-4202ffe805ac None] UNIQUE_ID is cc8532013a344db182272f9a5928f044. _add_unique_id /usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/amqp.py:342
2014-12-30 21:30:56.696 29901 DEBUG neutron.openstack.common.rpc.amqp [req-9a6c9ee0-c0df-46e4-81f9-4202ffe805ac None] Pool creating new connection create /usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/amqp.py:75
2014-12-30 21:30:56.697 29901 DEBUG neutron.agent.linux.utils [req-9a6c9ee0-c0df-46e4-81f9-4202ffe805ac None]
Command: ['ip', '-o', 'link', 'show', 'br-eth1']
Exit code: 255
Stdout: ''
Stderr: 'Device "br-eth1" does not exist.\n' execute /usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:74
2014-12-30 21:30:56.697 29901 ERROR neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-9a6c9ee0-c0df-46e4-81f9-4202ffe805ac None] Bridge br-eth1 for physical network physnet1 does not exist. Agent terminated!

[root@allinone ~]# ifconfig
br-ex Link encap:Ethernet HWaddr AA:C9:8E:5E:45:4C
          inet6 addr: fe80::9837:feff:fe2a:27e2/64 Scope:Link
          UP BROADCAST RUNNING MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)

br-int Link encap:Ethernet HWaddr A2:00:69:95:D1:4F
          inet6 addr: fe80::7885:aaff:fe30:981d/64 Scope:Link
          UP BROADCAST RUNNING MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)

br-tun Link encap:Ethernet HWaddr C2:CF:F5:D9:34:47
          inet6 addr: fe80::d847:2eff:feb6:7565/64 Scope:Link
          UP BROADCAST RUNNING MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)

eth0 Link encap:Ethernet HWaddr 00:00:47:09:DE:A1
          inet addr:172.16.0.50 Bcast:172.16.0.255 Mask:255.255.255.0
          inet6 addr: fe80::200:47ff:fe09:dea1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:149499 errors:0 dropped:0 overruns:0 frame:0
          TX packets:138550 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:384135443 (366.3 MiB) TX bytes:31566897 (30.1 MiB)

eth1 Link encap:Ethernet HWaddr 52:54:00:DA:AB:35
          inet addr:172.16.2.50 Bcast:172.16.2.255 Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:feda:ab35/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1530 (1.4 KiB) TX bytes:566 (566.0 b)

[root@allinone ~]#
[root@allinone ~]# ovs-vsctl show
366d167d-199c-49f3-af1f-745b7d209d79
    Bridge br-ex
        Port "eth2"
            Interface "eth2"
        Port br-ex
            Interface br-ex
                type: internal
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
    Bridge br-tun
        Port br-tun
            Interface br-tun
                type: internal
    ovs_version: "1.11.0"
[root@allinone ~]#
[root@allinone ~]#

# (ListOpt) Comma-separated list of <physical_network>:<bridge> tuples
# mapping physical network names to the agent's node-specific OVS
# bridge names to be used for flat and VLAN networks. The length of
# bridge names should be no more than 11. Each bridge must
# exist, and should have a physical network interface configured as a
# port. All physical networks listed in network_vlan_ranges on the
# server should have mappings to appropriate bridges on each agent.
#
# Default: bridge_mappings =
# Example: bridge_mappings = physnet1:br-eth1
bridge_mappings = physnet1:br-eth1

Jerry Zhao (zhaoxinyu)
Changed in compass:
importance: Undecided → Critical
assignee: nobody → Sam Su (sam-su)
Revision history for this message
Jerry Zhao (zhaoxinyu) wrote :

bridge mappings should not be set in gre tunnel mode.

Jerry Zhao (zhaoxinyu)
Changed in compass:
assignee: Sam Su (sam-su) → Jerry Zhao (zhaoxinyu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to compass-core (dev/experimental)

Fix proposed to branch: dev/experimental
Review: https://review.openstack.org/144619

Jerry Zhao (zhaoxinyu)
Changed in compass:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compass-core (dev/experimental)

Reviewed: https://review.openstack.org/144619
Committed: https://git.openstack.org/cgit/stackforge/compass-core/commit/?id=55aa8caafa7d8bd4e2c536c5750451c8f32ef84e
Submitter: Jenkins
Branch: dev/experimental

commit 55aa8caafa7d8bd4e2c536c5750451c8f32ef84e
Author: Jerry Zhao <email address hidden>
Date: Wed Dec 31 01:39:13 2014 -0800

    fix neutron configuration conflict in environment template

    in gre tunnel mode, bridge mappings should be null and vlan, or flat
    mode, bridge mappings with bridge and a physical nic port.

    Change-Id: I61ab71e65ac8e75c46d52453df12df4ecac1f675
    Closes-bug: #1406710

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.