Ask Your Question
0

rootwrap importerror

asked 2014-01-28 03:58:09 -0500

chungg gravatar image

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

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2014-01-28 17:22:10 -0500

That would be bug 1273581

edit flag offensive delete link more
0

answered 2014-01-28 20:24:00 -0500

chungg gravatar image

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

edit flag offensive delete link more
0

answered 2014-02-04 17:58:06 -0500

Do you know how to fix this error?

edit flag offensive delete link more
0

answered 2014-01-28 20:23:28 -0500

chungg gravatar image

Thanks Thierry Carrez, that solved my question.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-01-28 03:58:09 -0500

Seen: 56 times

Last updated: Feb 04 '14