Ask Your Question
0

Why does nova-api fail? Icehouse, /usr/bin/nova-rootwrap not found? [closed]

asked 2014-05-15 09:28:24 -0500

tarawa1943 gravatar image

updated 2014-05-15 14:22:46 -0500

SamYaple gravatar image

install steps in icehouse install document: http://docs.openstack.org/icehouse/in...

page: Install Compute controller services Steps 1 - 11 verified multiple times, retraced and triple checked. All successful.

:~# glance index
ID                                   Name                           Disk Format          Container Format     Size          
------------------------------------ ------------------------------ -------------------- -------------------- --------------
a956c773-342f-4d47-a915-05797b94961a cirros-0.3.2-x86_64            qcow2                bare                       13167616

I know nova is not listening on 8774 for the nova image-list command. Thus, the log verifies that. If I installed all nova components, why is there no /usr/bin/nova-rootwrap ? /var/log/nova/nova-api.log

2014-05-15 10:07:46.683 20987 TRACE nova Stderr: 'Traceback (most recent call last):\n  File "/usr/bin/nova-rootwrap", line 6, in <module>\n    from oslo.rootwrap.cmd import main\nImportError: No module named rootwrap.cmd\n'
2014-05-15 10:07:46.683 20987 TRACE nova
2014-05-15 10:07:46.775 21093 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting
2014-05-15 10:07:46.775 21080 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting
2014-05-15 10:07:46.775 21081 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting
2014-05-15 10:07:46.775 21092 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting
2014-05-15 10:07:46.775 21080 INFO nova.wsgi [-] Stopping WSGI server.
2014-05-15 10:07:46.776 21092 INFO nova.wsgi [-] Stopping WSGI server.
2014-05-15 10:07:46.776 21080 INFO nova.wsgi [-] WSGI server has stopped.
2014-05-15 10:07:46.776 21081 INFO nova.wsgi [-] Stopping WSGI server.
2014-05-15 10:07:46.776 21093 INFO nova.wsgi [-] Stopping WSGI server.
2014-05-15 10:07:46.776 21081 INFO nova.wsgi [-] WSGI server has stopped.
2014-05-15 10:07:46.776 21093 INFO nova.wsgi [-] WSGI server has stopped.
2014-05-15 10:07:46.782 21092 INFO nova.wsgi [-] WSGI server has stopped.
edit retag flag offensive reopen merge delete

Closed for the following reason too localized by tarawa1943
close date 2015-01-30 18:22:02.404066

Comments

Still not solved but here is an update:

:~# which nova-rootwrap /usr/bin/nova-rootwrap

The module is on controller but failing in the nova-api.log .

Help would be appreciated. This is on icehouse.

tarawa1943 gravatar imagetarawa1943 ( 2014-05-15 09:32:20 -0500 )edit

4 answers

Sort by ยป oldest newest most voted
1

answered 2014-12-06 16:32:40 -0500

Veena gravatar image

Upgrade oslo.rootwrap module using pip install oslo.rootwrap --upgrade

edit flag offensive delete link more
0

answered 2014-08-18 19:36:22 -0500

ozbill gravatar image

Hi, I've run into the same problem, so can i ask if you have managed to solve it? Thanks.

edit flag offensive delete link more
0

answered 2014-05-15 14:29:19 -0500

SamYaple gravatar image

Are you saying file /usr/bin/nova-rootwrap does not exist? The logs you post appear to indicate it does exist, but it is failing to import a module. Can you please double check.

According to the logs, you are missing python-olso.rootwrap. Maybe the packages have some broken dependancies. You can install this with apt-get install python-oslo.rootwrap. I just worry that for whatever reason it wasn't installed, you will run into more issues because of it later.

edit flag offensive delete link more

Comments

Yes sir, that is correct, /usr/bin/nova-rootwrap does exist. I will apt-get install python-oslo.rootwrap and post the results back.

tarawa1943 gravatar imagetarawa1943 ( 2014-05-15 14:57:34 -0500 )edit

Thank you for the reply Sam.

tarawa1943 gravatar imagetarawa1943 ( 2014-05-15 14:58:30 -0500 )edit

This is what I get, I am not sure where python-oslo.rootwrap is supposed to reside but if not in /usr/bin it is not on the system yet the package information says it is supposed to be there.

:~# apt-get install python-oslo.rootwrap Reading package lists... Done Building dependency tree
Reading state information... Done python-oslo.rootwrap is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

:~# source creds

:~# nova image-list ERROR: HTTPConnectionPool(host='controller', port=8774): Max retries exceeded with url: /v3/278874b94ac644caa08f29d82e2a11b2/images/detail (Caused by <class 'socket.error'="">: [Errno 111] Connection refused)

:~# which python-oslo.rootwrap

:~# find / -name python-oslo.rootwrap /usr/share/python/ns/python-oslo.rootwrap /usr/share/python-oslo.rootwrap /usr/share/doc/python-oslo.rootwrap :~#

tarawa1943 gravatar imagetarawa1943 ( 2014-05-15 15:03:31 -0500 )edit

Looks like the *.deb version on http://packates.ubuntu.com (trusty) installs (via dpkg -i) the component is in the same place as preciously in stalled with the package install.

:~# find / -name python-oslo.rootwrap /usr/share/python/ns/python-oslo.rootwrap /usr/share/python-oslo.rootwrap /usr/share/doc/python-oslo.rootwrap

:~# ls /tmp

python-oslo.rootwrap_1.2.0-0ubuntu1_all.deb

:~# dpkg -i /tmp/python-oslo.rootwrap_1.2.0-0ubuntu1_all.deb (Reading database ... 85789 files and directories currently installed.) Preparing to unpack .../python-oslo.rootwrap_1.2.0-0ubuntu1_all.deb ... Unpacking python-oslo.rootwrap (1.2.0-0ubuntu1) over (1.2.0-0ubuntu1) ... Setting up python-oslo.rootwrap (1.2.0-0ubuntu1) ...

:~# find / -name python-oslo.rootwrap /usr/share/python/ns/python-oslo.rootwrap /usr/share/python-oslo.rootwrap /usr/share/doc/python-oslo.rootwrap :~#

tarawa1943 gravatar imagetarawa1943 ( 2014-05-15 15:11:35 -0500 )edit

[Errno 111] Connection refused is a different issue. Can you post your nova conf and the appropriate logs after running those commands?

SamYaple gravatar imageSamYaple ( 2014-05-15 22:31:37 -0500 )edit
0

answered 2015-01-30 15:00:48 -0500

tarawa1943 gravatar image

REsolved, no comments to add. Please close this one.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-15 09:28:24 -0500

Seen: 2,626 times

Last updated: Jan 30 '15