ImportError: cannot import name lockutils

Bug #1386631 reported by Derek Higgins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Undecided
Derek Higgins
tripleo
Fix Released
Critical
Unassigned

Bug Description

As of 2014-10-28 05:57 UTC All tripleo tests are failing e.g.
 http://logs.openstack.org/93/120293/8/check-tripleo/check-tripleo-ironic-overcloud-precise-nonha/04638b5/logs/seed_logs/nova-compute.txt.gz

Cause
Nova switched to use oslo.concurrency and removed nova/openstack/common/lockutils.py (which was still in use by ironic)
https://review.openstack.org/#/c/130870/4

Tags: ci
Derek Higgins (derekh)
Changed in tripleo:
importance: Undecided → Critical
Changed in ironic:
assignee: nobody → Derek Higgins (derekh)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/131375
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=4af5dfa3309931b036ce86e4d0dfd3d71d7626f8
Submitter: Jenkins
Branch: master

commit 4af5dfa3309931b036ce86e4d0dfd3d71d7626f8
Author: Derek Higgins <email address hidden>
Date: Tue Oct 28 09:42:09 2014 +0000

    Switch to oslo.concurrency

    Nova has removed nova/openstack/common/lockutils.py and switched to
    oslo.concurrency so we can no longer import lockutils from the nova
    tree.

    Make the same switch in the ironic tree.

    Closes-Bug: #1386631
    Change-Id: I8db99d61dbe6c50c9edae37077242e2696bc5671

Changed in ironic:
status: In Progress → Fix Committed
Revision history for this message
Leslie Wang (wqyuwss) wrote :

seems like nova-compute also has the problem. nova-compute always can not start because of below error

$ sudo start-stop-daemon --start -c nova --exec /opt/stack/venvs/nova/bin/nova-compute -- --config-dir /etc/nova --config-dir /etc/nova/compute
2014-10-29 12:41:03.474 13966 CRITICAL nova [-] ImportError: cannot import name lockutils
2014-10-29 12:41:03.474 13966 TRACE nova Traceback (most recent call last):
2014-10-29 12:41:03.474 13966 TRACE nova File "/opt/stack/venvs/nova/bin/nova-compute", line 10, in <module>
2014-10-29 12:41:03.474 13966 TRACE nova sys.exit(main())
2014-10-29 12:41:03.474 13966 TRACE nova File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/cmd/compute.py", line 72, in main
2014-10-29 12:41:03.474 13966 TRACE nova db_allowed=CONF.conductor.use_local)
2014-10-29 12:41:03.474 13966 TRACE nova File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/service.py", line 275, in create
2014-10-29 12:41:03.474 13966 TRACE nova db_allowed=db_allowed)
2014-10-29 12:41:03.474 13966 TRACE nova File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/service.py", line 147, in __init__
2014-10-29 12:41:03.474 13966 TRACE nova manager_class = importutils.import_class(self.manager_class_name)
2014-10-29 12:41:03.474 13966 TRACE nova File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/oslo/utils/importutils.py", line 27, in import_class
2014-10-29 12:41:03.474 13966 TRACE nova __import__(mod_str)
2014-10-29 12:41:03.474 13966 TRACE nova File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/ironic/nova/compute/manager.py", line 26, in <module>
2014-10-29 12:41:03.474 13966 TRACE nova from nova.openstack.common import lockutils
2014-10-29 12:41:03.474 13966 TRACE nova ImportError: cannot import name lockutils

Revision history for this message
Derek Higgins (derekh) wrote :

I think this was the original error, was this with a ironic from after the fix was committed ?

Derek Higgins (derekh)
Changed in tripleo:
status: Triaged → Fix Released
Thierry Carrez (ttx)
Changed in ironic:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ironic:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.