[openstack-dev] [Nova] Nova error; 'iptables-restore -c' fails, related to metadata server?

Bob Melander (bmelande) bmelande at cisco.com
Tue Jan 29 13:26:47 UTC 2013


I'm running latest Devstack and grizzly trunk and see the error below in nova api. It seems 'iptables-restore –c' fails.
I see metadata_accept mention in the error dump.
Any ideas how to fix this?

Thanks
Bob

2013-01-29 14:18:07.410 DEBUG nova.openstack.common.lockutils [-] Got semaphore "iptables" for method "_apply"... from (pid=32100) inner /opt/stack/nova/nova/openstack/common/lockuti
ls.py:186
2013-01-29 14:18:07.410 DEBUG nova.openstack.common.lockutils [-] Attempting to grab file lock "iptables" for method "_apply"... from (pid=32100) inner /opt/stack/nova/nova/openstack
/common/lockutils.py:190
2013-01-29 14:18:07.411 DEBUG nova.openstack.common.lockutils [-] Got file lock "iptables" at /opt/stack/data/nova/nova-iptables for method "_apply"... from (pid=32100) inner /opt/st
ack/nova/nova/openstack/common/lockutils.py:220
2013-01-29 14:18:07.411 DEBUG nova.utils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c from (pid=32100) execute /opt/stack/nova/nova/utils
.py:204
2013-01-29 14:18:07.547 DEBUG nova.utils [-] Result was 0 from (pid=32100) execute /opt/stack/nova/nova/utils.py:228
2013-01-29 14:18:07.549 DEBUG nova.utils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c from (pid=32100) execute /opt/stack/nova/nova/ut
ils.py:204
2013-01-29 14:18:07.702 DEBUG nova.utils [-] Result was 1 from (pid=32100) execute /opt/stack/nova/nova/utils.py:228
2013-01-29 14:18:07.703 DEBUG nova.utils [-] ['sudo', 'nova-rootwrap', '/etc/nova/rootwrap.conf', 'iptables-restore', '-c'] failed. Retrying. from (pid=32100) execute /opt/stack/nova
/nova/utils.py:241
2013-01-29 14:18:08.683 DEBUG nova.utils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c from (pid=32100) execute /opt/stack/nova/nova/ut
ils.py:204
2013-01-29 14:18:08.900 DEBUG nova.utils [-] Result was 1 from (pid=32100) execute /opt/stack/nova/nova/utils.py:228
2013-01-29 14:18:08.901 DEBUG nova.utils [-] ['sudo', 'nova-rootwrap', '/etc/nova/rootwrap.conf', 'iptables-restore', '-c'] failed. Retrying. from (pid=32100) execute /opt/stack/nova
/nova/utils.py:241
2013-01-29 14:18:09.662 DEBUG nova.utils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c from (pid=32100) execute /opt/stack/nova/nova/ut
ils.py:204
2013-01-29 14:18:09.806 DEBUG nova.utils [-] Result was 1 from (pid=32100) execute /opt/stack/nova/nova/utils.py:228
2013-01-29 14:18:09.807 DEBUG nova.utils [-] ['sudo', 'nova-rootwrap', '/etc/nova/rootwrap.conf', 'iptables-restore', '-c'] failed. Retrying. from (pid=32100) execute /opt/stack/nova/nova/utils.py:241
2013-01-29 14:18:11.778 DEBUG nova.utils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c from (pid=32100) execute /opt/stack/nova/nova/utils.py:204
2013-01-29 14:18:11.916 DEBUG nova.utils [-] Result was 1 from (pid=32100) execute /opt/stack/nova/nova/utils.py:228
2013-01-29 14:18:11.916 DEBUG nova.utils [-] ['sudo', 'nova-rootwrap', '/etc/nova/rootwrap.conf', 'iptables-restore', '-c'] failed. Retrying. from (pid=32100) execute /opt/stack/nova/nova/utils.py:241
2013-01-29 14:18:12.177 DEBUG nova.utils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c from (pid=32100) execute /opt/stack/nova/nova/utils.py:204
2013-01-29 14:18:12.325 DEBUG nova.utils [-] Result was 1 from (pid=32100) execute /opt/stack/nova/nova/utils.py:228
2013-01-29 14:18:12.326 DEBUG nova.openstack.common.lockutils [-] Released file lock "iptables" at /opt/stack/data/nova/nova-iptables for method "_apply"... from (pid=32100) inner /opt/stack/nova/nova/openstack/common/lockutils.py:227
2013-01-29 14:18:12.326 ERROR nova.service [-] Unhandled exception
2013-01-29 14:18:12.326 TRACE nova.service Traceback (most recent call last):
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/service.py", line 308, in _start_child
2013-01-29 14:18:12.326 TRACE nova.service     self._child_process(wrap.server)
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/service.py", line 285, in _child_process
2013-01-29 14:18:12.326 TRACE nova.service     launcher.run_server(server)
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/service.py", line 148, in run_server
2013-01-29 14:18:12.326 TRACE nova.service     server.start()
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/service.py", line 645, in start
2013-01-29 14:18:12.326 TRACE nova.service     self.manager.init_host()
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/api/manager.py", line 39, in init_host
2013-01-29 14:18:12.326 TRACE nova.service     self.network_driver.metadata_accept()
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/network/linux_net.py", line 558, in metadata_accept
2013-01-29 14:18:12.326 TRACE nova.service     iptables_manager.apply()
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/network/linux_net.py", line 358, in apply
2013-01-29 14:18:12.326 TRACE nova.service     self._apply()
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 221, in inner
2013-01-29 14:18:12.326 TRACE nova.service     retval = f(*args, **kwargs)
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/network/linux_net.py", line 384, in _apply
2013-01-29 14:18:12.326 TRACE nova.service     attempts=5)
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/network/linux_net.py", line 1040, in _execute
2013-01-29 14:18:12.326 TRACE nova.service     return utils.execute(*cmd, **kwargs)
2013-01-29 14:18:12.326 TRACE nova.service   File "/opt/stack/nova/nova/utils.py", line 235, in execute
2013-01-29 14:18:12.326 TRACE nova.service     cmd=' '.join(cmd))
2013-01-29 14:18:12.326 TRACE nova.service ProcessExecutionError: Unexpected error while running command.
2013-01-29 14:18:12.326 TRACE nova.service Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c
2013-01-29 14:18:12.326 TRACE nova.service Exit code: 1
2013-01-29 14:18:12.326 TRACE nova.service Stdout: ''
2013-01-29 14:18:12.326 TRACE nova.service Stderr: 'iptables-restore: line 1 failed\n'
2013-01-29 14:18:12.326 TRACE nova.service
2013-01-29 14:18:12.332 INFO nova.wsgi [-] Stopping WSGI server.
2013-01-29 14:18:12.334 INFO nova.service [-] Child 32100 exited with status 2
2013-01-29 14:18:12.336 INFO nova.service [-] Started child 32119

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130129/8cc81b14/attachment.html>


More information about the OpenStack-dev mailing list