Bug 1206707

Summary: nova-manage db sync fails with "ImportError: no module named utils"
Product: [Fedora] Fedora Reporter: Gabriel Somlo <somlo>
Component: openstack-novaAssignee: Pádraig Brady <pbrady>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akscram, alexander.sakhnov, apevec, bfilippov, davidx, gchamoul, gdubreui, ichavero, itamar, jonathansteffan, jose.castro.leon, karlthered, mlvov, mmagr, ndipanov, pbrady, p, rbryant, rk, social, vladanovic
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-2014.1.4-2.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-31 21:41:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gabriel Somlo 2015-03-27 19:57:46 UTC
Description of problem:
Running "packstack --allinone" fails during "nova-manage db sync" with an error
message.

Version-Release number of selected component (if applicable):
openstack-packstack-2014.1.1-0.28.dev1238.fc21.noarch

How reproducible:
On a new up-to-date install of F21, run
   openstack-packstack --mysql-host=127.0.0.1 --allinone


Actual results:

...
Applying 128.2.16.9_cinder.pp
128.2.16.9_keystone.pp:                              [ DONE ]     
128.2.16.9_glance.pp:                                [ DONE ]     
128.2.16.9_cinder.pp:                                [ DONE ]     
Applying 128.2.16.9_api_nova.pp
128.2.16.9_api_nova.pp:                           [ ERROR ]       
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 128.2.16.9_api_nova.pp
Notice: /Stage[main]/Nova::Api/Exec[nova-db-sync]/returns: ImportError: No module named utils
You will find full trace in log /var/tmp/packstack/20150326-162133-mwrXqj/manifests/128.2.16.9_api_nova.pp.log
Please check log file /var/tmp/packstack/20150326-162133-mwrXqj/openstack-setup.log for more information

Additional information:
 * A new answerfile was created in: /root/packstack-answers-20150326-162133.txt
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * File /root/keystonerc_admin has been created on OpenStack client host 128.2.16.9. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://128.2.16.9/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://128.2.16.9/nagios username: nagiosadmin, password: 1b0b7033735447b8


Expected results:
Successful installation of openstack.

Additional info:
When running
   "/usr/bin/nova-manage db sync", I get the following:

# /usr/bin/nova-manage db sync
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 6, in <module>
    from nova.cmd.manage import main
  File "/usr/lib/python2.7/site-packages/nova/cmd/manage.py", line 84, in <module>
    CONF.import_opt('network_manager', 'nova.service')
  File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1796, in import_opt
    __import__(module_str)
  File "/usr/lib/python2.7/site-packages/nova/service.py", line 28, in <module>
    from nova import conductor
  File "/usr/lib/python2.7/site-packages/nova/conductor/__init__.py", line 17, in <module>
    from nova.conductor import api as conductor_api
  File "/usr/lib/python2.7/site-packages/nova/conductor/api.py", line 21, in <module>
    from nova.conductor import manager
  File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 23, in <module>
    from nova.compute import api as compute_api
  File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 29, in <module>
    from oslo.utils import units
ImportError: No module named utils

Comment 1 Pádraig Brady 2015-03-28 05:00:56 UTC
Drats, that's a problem with the last nova update from upstream.
I've now submitted an update with a local patch to work around this,
which you should be able to get from the updates-testing repo or immediately from
https://kojipkgs.fedoraproject.org/packages/openstack-nova/2014.1.4/2.fc21/noarch/

Comment 2 Fedora Update System 2015-03-28 05:02:19 UTC
openstack-nova-2014.1.4-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/openstack-nova-2014.1.4-2.fc21

Comment 3 Fedora Update System 2015-03-30 07:01:09 UTC
Package openstack-nova-2014.1.4-2.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openstack-nova-2014.1.4-2.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-4967/openstack-nova-2014.1.4-2.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-03-31 21:41:52 UTC
openstack-nova-2014.1.4-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.