KeyError prevents openvswitch agent from starting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Brian Haley |
Bug Description
On Liberty I ran into a situation where the openvswitch agent won't start and fails with the following stack trace:
2015-12-16 16:01:42.852 10772 CRITICAL neutron [req-afb4e123-
2015-12-16 16:01:42.852 10772 ERROR neutron Traceback (most recent call last):
2015-12-16 16:01:42.852 10772 ERROR neutron File "/opt/neutron/
2015-12-16 16:01:42.852 10772 ERROR neutron sys.exit(main())
2015-12-16 16:01:42.852 10772 ERROR neutron File "/opt/neutron/
2015-12-16 16:01:42.852 10772 ERROR neutron agent_main.main()
2015-12-16 16:01:42.852 10772 ERROR neutron File "/opt/neutron/
2015-12-16 16:01:42.852 10772 ERROR neutron mod.main()
2015-12-16 16:01:42.852 10772 ERROR neutron File "/opt/neutron/
2015-12-16 16:01:42.852 10772 ERROR neutron ovs_neutron_
2015-12-16 16:01:42.852 10772 ERROR neutron File "/opt/neutron/
2015-12-16 16:01:42.852 10772 ERROR neutron agent = OVSNeutronAgent
2015-12-16 16:01:42.852 10772 ERROR neutron File "/opt/neutron/
2015-12-16 16:01:42.852 10772 ERROR neutron self._restore_
2015-12-16 16:01:42.852 10772 ERROR neutron File "/opt/neutron/
2015-12-16 16:01:42.852 10772 ERROR neutron self.available_
2015-12-16 16:01:42.852 10772 ERROR neutron KeyError: 8
2015-12-16 16:01:42.852 10772 ERROR neutron
Somehow the ovs table ended up with 2 ports with the same local vlan tag.
# ovs-vsctl -- --columns=
name : "qvob7ba561c-e5"
tag : 8
other_config : {net_uuid=
--
name : "qvod3e1f984-0e"
tag : 8
other_config : {net_uuid=
Additionally, I noticed the ofport for one of them was -1.
# ovs-vsctl -- --columns=
name : "qvod3e1f984-0e"
ofport : 20
external_ids : {attached-
--
name : "qvob7ba561c-e5"
ofport : -1
external_ids : {attached-
I'm not sure if this is relevant, but the VM that has -1 ofport is in the following state
+------
| ID | Name | Tenant ID | Status | Task State | Power State | Networks |
+------
| 71873533-
+------
-------
Neutron Version: 69d531565dcd180
Operating System: CentOS Linux 7 (Core)
Kernel: Linux 3.10.0-
Architecture: x86_64
ovs-vsctl (Open vSwitch) 2.3.1
Compiled Dec 26 2014 15:35:14
DB Schema 7.6.2
tags: | added: mitaka-backport-potential |
Changed in neutron: | |
importance: | Undecided → High |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
tags: | removed: mitaka-backport-potential |
Over to Kevin to triage