Ask Your Question
0

Missing oslo.rootwrap package?

asked 2015-06-24 03:06:04 -0500

tab87vn gravatar image

updated 2015-06-24 03:07:35 -0500

Hello,

I have a particular problem of not being able to creating new VM instance (Juno). This is equivalent to manually running the command, for example:

sudo nova-rootwrap /etc/nova/rootwrap.conf brctl addbr qbr5cac6724-10

And the log says

Traceback (most recent call last):
  File "/usr/bin/nova-rootwrap", line 6, in <module>
    from oslo.rootwrap.cmd import main
ImportError: No module named rootwrap.cmd

Intuitively, i upgrade the oslo.rootwrap package by running upgrade and get:

pip install oslo.rootwrap --upgrade
Requirement already up-to-date: oslo.rootwrap in /usr/local/lib/python2.7/dist-packages
Cleaning up...

Nothing changed, the pkg seems already up-to-date.

Anybody knows how to deal with this? I've reinstalled all software packages for Nova for several times already, changed nothing. Could it be any other problems in Ubuntu (14.04) itself?

Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-06-24 03:26:00 -0500

uts9 gravatar image

updated 2015-06-24 03:28:33 -0500

Please run the below command and check whether you can see /usr/local/lib/python2.7/dist-packages

python -c 'import sys;print (sys.path)'

If not, add the path to your PYTHONPATH

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages

Other option is you can create a symbolic link

edit flag offensive delete link more

Comments

thanks, but the command indeed returns

['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
tab87vn gravatar imagetab87vn ( 2015-06-24 04:00:25 -0500 )edit

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: 2015-06-24 03:06:04 -0500

Seen: 101 times

Last updated: Jun 24 '15