q-agt error: iptables-restore failed

asked 2014-05-26 09:56:36 -0500

Sonia gravatar image

updated 2014-05-26 23:25:25 -0500

fifieldt gravatar image
Hi 

I'm getting following q-agt error when I'm trying to launch Vm instace from openstack cntroller node onto compute node...

5-26 09:52:29.321 16585 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent   File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 75, in execute
2014-05-26 09:52:29.321 16585 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent     raise RuntimeError(m)
2014-05-26 09:52:29.321 16585 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent RuntimeError: 
2014-05-26 09:52:29.321 16585 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'iptables-restore', '-c']
2014-05-26 09:52:29.321 16585 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Exit code: 1
2014-05-26 09:52:29.321 16585 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Stdout: ''
2014-05-26 09:52:29.321 16585 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Stderr: 'iptables-restore: line 99 failed\n'
2014-05-26 09:52:29.321 16585 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent 
2014-05-26 09:52:29.502 16585 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Agent out of sync with plugin!
2014-05-26 09:52:29.503 16585 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=2', 'list-ports', 'br-int'] create_process /opt/stack/neutron/neutron/agent/linux/utils.py:47
2014-05-26 09:52:29.870 16585 DEBUG neutron.agent.linux.utils [-] 

Please help me regarding this.

Thanks
sonia
edit retag flag offensive close merge delete

Comments

Sonia, can you work out a way to find out what it's trying to feed to iptables-restore? it might be nice to look at that.

fifieldt gravatar imagefifieldt ( 2014-05-26 23:26:00 -0500 )edit

Hi Thanks I'm able to solve it now.

However when I'm running my q-agt service,I'm getting following error..

014-05-28 02:12:49.994 15610 DEBUG neutron.openstack.common.rpc.amqp [req-0ba213be-b843-4221-82cf-070da7688616 None] Pool creating new connection create /opt/stack/neutron/neutron/openstack/common/rpc/amqp.py:75
2014-05-28 02:12:50.036 15610 INFO neutron.openstack.common.rpc.common [req-0ba213be-b843-4221-82cf-070da7688616 None] Connected to AMQP server on 192.168.8.104:5672
2014-05-28 02:12:50.170 15610 DEBUG neutron.agent.linux.utils [req-0ba213be-b843-4221-82cf-070da7688616 None] 
Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', '--', '--if-exists', 'del-port', 'br-int', 'patch-tun']
Exit code: 1
Stdout: ''
Stderr: 'Traceback (most recent call last):\n  File "/usr/local/bin/neutron-rootwrap", line 4, in <module>\n    from pkg_resources import require; require(\'neutron==2013.2.4.dev69.ge5fed48\')\n  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in <module ...
(more)
Sonia gravatar imageSonia ( 2014-05-28 01:35:30 -0500 )edit