Bug 886625 - [abrt] openstack-nova-common-2012.1.3-2.fc17: nova-manage:79:<module>:ImportError: No module named compat
Summary: [abrt] openstack-nova-common-2012.1.3-2.fc17: nova-manage:79:<module>:ImportE...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: openstack-nova
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pádraig Brady
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ba5a7f303aefc14f782ffc84a5a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-12 17:13 UTC by Václav Pavlín
Modified: 2012-12-13 09:30 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-13 09:30:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: executable (20 bytes, text/plain)
2012-12-12 17:13 UTC, Václav Pavlín
no flags Details
File: environ (3.21 KB, text/plain)
2012-12-12 17:13 UTC, Václav Pavlín
no flags Details
File: smolt_data (2.97 KB, text/plain)
2012-12-12 17:13 UTC, Václav Pavlín
no flags Details
File: core_backtrace (77 bytes, text/plain)
2012-12-12 17:13 UTC, Václav Pavlín
no flags Details

Description Václav Pavlín 2012-12-12 17:13:31 UTC
Description of problem:
Tried to run commands
sudo openstack-demo-install
nova-manage db sync
and the error occured


Version-Release number of selected component:
openstack-nova-common-2012.1.3-2.fc17

Additional info:
libreport version: 2.0.18
abrt_version:   2.0.18
cmdline:        /usr/bin/python /usr/bin/nova-manage db sync
kernel:         3.6.8-2.fc17.x86_64

backtrace:
:nova-manage:79:<module>:ImportError: No module named compat
:
:Traceback (most recent call last):
:  File "/usr/bin/nova-manage", line 79, in <module>
:    from nova.compat import flagfile
:ImportError: No module named compat
:
:Local variables in innermost frame:
:ast: <module 'ast' from '/usr/lib64/python2.7/ast.pyc'>
:__builtins__: <module '__builtin__' (built-in)>
:errno: <module 'errno' (built-in)>
:__file__: '/usr/bin/nova-manage'
:netaddr: <module 'netaddr' from '/usr/lib/python2.7/site-packages/netaddr/__init__.pyc'>
:gettext: <module 'gettext' from '/usr/lib64/python2.7/gettext.pyc'>
:__package__: None
:sys: <module 'sys' (built-in)>
:optparse: <module 'optparse' from '/usr/lib64/python2.7/optparse.pyc'>
:json: <module 'json' from '/usr/lib64/python2.7/json/__init__.pyc'>
:POSSIBLE_TOPDIR: '/usr'
:__name__: '__main__'
:os: <module 'os' from '/usr/lib64/python2.7/os.pyc'>
:__doc__: '\n  CLI interface for nova management.\n'
:math: <module 'math' from '/usr/lib64/python2.7/lib-dynload/math.so'>
:StringIO: <module 'StringIO' from '/usr/lib64/python2.7/StringIO.pyc'>

Comment 1 Václav Pavlín 2012-12-12 17:13:39 UTC
Created attachment 662513 [details]
File: executable

Comment 2 Václav Pavlín 2012-12-12 17:13:41 UTC
Created attachment 662514 [details]
File: environ

Comment 3 Václav Pavlín 2012-12-12 17:13:43 UTC
Created attachment 662515 [details]
File: smolt_data

Comment 4 Václav Pavlín 2012-12-12 17:13:46 UTC
Created attachment 662516 [details]
File: core_backtrace

Comment 5 Pádraig Brady 2012-12-12 18:10:29 UTC
It seems that you have another version of nova installed on your system?
Can you give the output from:

rpm -qf /usr/lib/python2.7/site-packages/nova/compat/__init__.py

and double check the output from

rpm -V python-nova

Also note that openstack-demo-install is not supported
from sudo at present apparently. That's logged as a different bug.

Comment 6 Václav Pavlín 2012-12-13 07:27:03 UTC
Output od first rpm command is
python-nova-2012.1.3-1.fc17.noarch

The second one doesn't print anything.

Looks like I really have two versions. Probably because I tried to run DevStack previously (but it didn't work, so I tried directly OpenStack).

So this might be a NOTABUG

Comment 7 Pádraig Brady 2012-12-13 09:30:48 UTC
I suspected you ran devstack.

devstack is really only good for a throw away VM at present.
If you have a lot invested in this system, then here are
details on what devstack does to help with manual clean up

https://www.berrange.com/posts/2012/11/20/what-devstack-does-to-your-host-when-setting-up-openstack-on-fedora-17/

Marking not a bug for now


Note You need to log in before you can comment on or make changes to this bug.