Error running "sudo nova-rootwrap" command on nova-api service during the stack procedure

Bug #1276297 reported by Sergio Cazzolato
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

When a ./stack is executed in devstack the nova-api service is throwing the following error. This is happening with the latest devstack version.

2014-02-04 15:28:24.202 CRITICAL nova [-] ProcessExecutionError: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c
Exit code: 1
Stdout: ''
Stderr: 'Traceback (most recent call last):\n File "/usr/local/bin/nova-rootwrap", line 6, in <module>\n from oslo.rootwrap.cmd impo
rt main\nImportError: No module named rootwrap.cmd\n'

2014-02-04 15:28:24.202 TRACE nova Traceback (most recent call last):
2014-02-04 15:28:24.202 TRACE nova File "/usr/local/bin/nova-api", line 10, in <module>
2014-02-04 15:28:24.202 TRACE nova sys.exit(main())
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/cmd/api.py", line 49, in main
2014-02-04 15:28:24.202 TRACE nova server = service.WSGIService(api, use_ssl=should_use_ssl)
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/service.py", line 348, in __init__
2014-02-04 15:28:24.202 TRACE nova self.manager = self._get_manager()
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/service.py", line 392, in _get_manager
2014-02-04 15:28:24.202 TRACE nova return manager_class()
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/api/manager.py", line 30, in __init__
2014-02-04 15:28:24.202 TRACE nova self.network_driver.metadata_accept()
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/network/linux_net.py", line 660, in metadata_accept
2014-02-04 15:28:24.202 TRACE nova iptables_manager.apply()
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/network/linux_net.py", line 428, in apply
2014-02-04 15:28:24.202 TRACE nova self._apply()
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
2014-02-04 15:28:24.202 TRACE nova return f(*args, **kwargs)
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/network/linux_net.py", line 448, in _apply
2014-02-04 15:28:24.202 TRACE nova attempts=5)
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/network/linux_net.py", line 1206, in _execute
2014-02-04 15:28:24.202 TRACE nova return utils.execute(*cmd, **kwargs)
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/utils.py", line 165, in execute
2014-02-04 15:28:24.202 TRACE nova return processutils.execute(*cmd, **kwargs)
2014-02-04 15:28:24.202 TRACE nova File "/opt/stack/nova/nova/openstack/common/processutils.py", line 193, in execute
2014-02-04 15:28:24.202 TRACE nova cmd=' '.join(cmd))
2014-02-04 15:28:24.202 TRACE nova ProcessExecutionError: Unexpected error while running command.
2014-02-04 15:28:24.202 TRACE nova Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c
2014-02-04 15:28:24.202 TRACE nova Exit code: 1
2014-02-04 15:28:24.202 TRACE nova Stdout: ''
2014-02-04 15:28:24.202 TRACE nova Stderr: 'Traceback (most recent call last):\n File "/usr/local/bin/nova-rootwrap", line 6, in <module>\n from oslo.rootwrap.cmd import main\nImportError: No module named rootwrap.cmd\n'
2014-02-04 15:28:24.202 TRACE nova

summary: - Error running sudo nova-rootwrap command during the stack procedure
+ Error running "sudo nova-rootwrap" command on nova-api service during
+ the stack procedure
description: updated
Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

I am runinig with ubuntu 12.04

Revision history for this message
One Convergence CI (oc-neutron-test) wrote :

I am also facing the same issue

Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

This is a workaround for this issue:

cd /usr/local/lib/python2.7/dist-packages (depends on which python version is installed)
rm -rf oslo*
cd ~/devstack
./unstack
./stack

Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

Faced same issue, thanks sergio-j-cazzolato for the workaround

Revision history for this message
Liyi Meng (liyi-meng) wrote :

Thanks Sergio Cazzolato. It solve my problem as well.
 There seem a bug in oslo.

Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: New → Invalid
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.