rootwrap importerror

Asked by gordon chung

i've the latest code for every project. when i run devstack i get rootwrap errors in nova and cinder services which make it unuseable.

2014-01-27 22:53:54.153 TRACE nova Traceback (most recent call last):
2014-01-27 22:53:54.153 TRACE nova File "/usr/local/bin/nova-api", line 10, in <module>
2014-01-27 22:53:54.153 TRACE nova sys.exit(main())
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/cmd/api.py", line 51, in main
2014-01-27 22:53:54.153 TRACE nova server = service.WSGIService(api, use_ssl=should_use_ssl)
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/service.py", line 339, in __init__
2014-01-27 22:53:54.153 TRACE nova self.manager = self._get_manager()
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/service.py", line 375, in _get_manager
2014-01-27 22:53:54.153 TRACE nova return manager_class()
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/api/manager.py", line 32, in __init__
2014-01-27 22:53:54.153 TRACE nova self.network_driver.metadata_accept()
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/network/linux_net.py", line 662, in metadata_accept
2014-01-27 22:53:54.153 TRACE nova iptables_manager.apply()
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/network/linux_net.py", line 430, in apply
2014-01-27 22:53:54.153 TRACE nova self._apply()
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
2014-01-27 22:53:54.153 TRACE nova return f(*args, **kwargs)
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/network/linux_net.py", line 450, in _apply
2014-01-27 22:53:54.153 TRACE nova attempts=5)
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/network/linux_net.py", line 1204, in _execute
2014-01-27 22:53:54.153 TRACE nova return utils.execute(*cmd, **kwargs)
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/utils.py", line 166, in execute
2014-01-27 22:53:54.153 TRACE nova return processutils.execute(*cmd, **kwargs)
2014-01-27 22:53:54.153 TRACE nova File "/opt/stack/nova/nova/openstack/common/processutils.py", line 193, in execute
2014-01-27 22:53:54.153 TRACE nova cmd=' '.join(cmd))
2014-01-27 22:53:54.153 TRACE nova ProcessExecutionError: Unexpected error while running command.
2014-01-27 22:53:54.153 TRACE nova Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c
2014-01-27 22:53:54.153 TRACE nova Exit code: 1
2014-01-27 22:53:54.153 TRACE nova Stdout: ''
2014-01-27 22:53:54.153 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'

is there some config option that i need to set for new oslo.rootwrap lib or is this a bug? thanks

Question information

Language:
English Edit question
Status:
Solved
For:
devstack Edit question
Assignee:
No assignee Edit question
Solved by:
Thierry Carrez
Solved:
Last query:
Last reply:
Revision history for this message
Best Thierry Carrez (ttx) said :
#1

That would be bug 1273581

Revision history for this message
gordon chung (chungg) said :
#2

Thanks Thierry Carrez, that solved my question.

Revision history for this message
gordon chung (chungg) said :
#3

much appreciated. nice to know it wasn't just me.

Revision history for this message
Cristian A Sanchez (cristian-a-sanchez) said :
#4

Do you know how to fix this error?