Bug 886625

Summary: [abrt] openstack-nova-common-2012.1.3-2.fc17: nova-manage:79:<module>:ImportError: No module named compat
Product: [Fedora] Fedora Reporter: Václav Pavlín <vpavlin>
Component: openstack-novaAssignee: Pádraig Brady <p>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: akscram, alexander.sakhnov, apevec, asalkeld, bfilippov, breu, Jan.van.Eldik, jonathansteffan, jose.castro.leon, markmc, matt_domsch, mlvov, ndipanov, p, rbryant, rkukura
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ba5a7f303aefc14f782ffc84a5ab237062da29bc
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-13 09:30:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: executable
none
File: environ
none
File: smolt_data
none
File: core_backtrace none

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