[openstack-dev] Run time error - Quantum OVS Agent
Naveen Joy (najoy)
najoy at cisco.com
Sat Aug 18 08:05:27 UTC 2012
That worked!. Thanks Aaron.
From: Aaron Rosen [mailto:arosen at nicira.com]
Sent: Saturday, August 18, 2012 12:56 AM
To: OpenStack Development Mailing List
Subject: Re: [openstack-dev] Run time error - Quantum OVS Agent
Hi Naveen,
I see what's going on. This is actually a bug that was fixed here: https://github.com/openstack/quantum/commit/e702264e310714a2369713fad95264d3ccedb66b
As a work around you can run:
ovs-vsctl list-ports br-int
and then delete all of the non-existing ports via:
ovs-vsctl del-port br-int <xxxx>
The issue was that when you rebooted ports attached to br-int were not properly removed.
Aaron
On Sat, Aug 18, 2012 at 3:24 AM, Naveen Joy (najoy) <najoy at cisco.com<mailto:najoy at cisco.com>> wrote:
My br-int exists and it does not appear to be race condition either. Still seeing the same error with the ovs-quantum-agent.
>> sudo ovs-ofctl show br-int
OFPT_FEATURES_REPLY (xid=0x1): dpid:00000025b503b019
n_tables:255, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
1(eth1): addr:00:25:b5:03:b0:19
config: 0
state: 0
current: 10GB-FD FIBER
advertised: 10GB-FD FIBER
supported: 10GB-FD FIBER
speed: 10000 Mbps now, 10000 Mbps max
LOCAL(br-int): addr:00:25:b5:03:b0:19
config: PORT_DOWN
state: LINK_DOWN
speed: 100 Mbps now, 100 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
>>> sudo ovs-ofctl dump-ports br-int
OFPST_PORT reply (xid=0x1): 2 ports
port 65534: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=0, bytes=0, drop=0, errs=0, coll=0
port 1: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
tx pkts=0, bytes=0, drop=0, errs=0, coll=0
>>> sudo ovs-ofctl dump-flows br-int
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=287.093s, table=0, n_packets=0, n_bytes=0, idle_age=287, priority=1 actions=NORMAL
Thanks,
Naveen
From: Aaron Rosen [mailto:arosen at nicira.com<mailto:arosen at nicira.com>]
Sent: Friday, August 17, 2012 9:58 PM
To: OpenStack Development Mailing List
Subject: Re: [openstack-dev] Run time error - Quantum OVS Agent
Hi Naveen,
Yes, it seems that br-int is not created on this machine. I'm not sure why it was not created for you on reboot (if it did in fact exist previous to reboot) when the openvswitch daemon starts. In any event running ovs-vsctl add-br br-int should resolve the issue for you.
Aaron
On Fri, Aug 17, 2012 at 11:35 PM, Naveen Joy (najoy) <najoy at cisco.com<mailto:najoy at cisco.com>> wrote:
I am getting a run time error when starting up the ovs_quantum_agent. This setup was working before I rebooted the system . Any idea what the cause could be?. Looks like the agent has the wrong port ID.
#sudo python /usr/local/bin/ovs_quantum_agent.py /etc/quantum/ovs_quantum_plugin.ini
kwargs = {'priority': 1, 'actions': 'normal'}
kwargs = {'in_port': '-1', 'delete': True}
Traceback (most recent call last):
File "/usr/local/bin/ovs_quantum_agent.py", line 609, in <module>
main()
File "/usr/local/bin/ovs_quantum_agent.py", line 604, in main
plugin.daemon_loop(db_connection_url)
File "/usr/local/bin/ovs_quantum_agent.py", line 221, in daemon_loop
self.port_bound(p, vlan_id)
File "/usr/local/bin/ovs_quantum_agent.py", line 135, in port_bound
self.int_br.delete_flows(in_port=port.ofport)
File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/agent/linux/ovs_lib.py", line 135, in delete_flows
self.run_ofctl("del-flows", [flow_str])
File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/agent/linux/ovs_lib.py", line 73, in run_ofctl
return utils.execute(full_args, root_helper=self.root_helper)
File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/agent/linux/utils.py", line 50, in execute
raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'ovs-ofctl', 'del-flows', 'br-int', 'in_port=-1']
Exit code: 1
Stdout: ''
Stderr: 'ovs-ofctl: -1: value too large for 2-byte field in_port\n'
Thanks a lot,
Naveen
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20120818/101e8c4b/attachment.html>
More information about the OpenStack-dev
mailing list