Bug 1228830

Summary: nova compute fails to start due to failed import of excutils
Product: Red Hat OpenStack Reporter: Mike Burns <mburns>
Component: openstack-novaAssignee: Pádraig Brady <pbrady>
Status: CLOSED ERRATA QA Contact: Sean Toner <stoner>
Severity: urgent Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: berrange, dasmith, eglynn, jschluet, kchamart, mburns, ndipanov, pbrady, sbauza, sclewis, sferdjao, sgordon, vromanso, yeylon
Target Milestone: gaKeywords: Automation, Regression, Triaged
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-2015.1.0-7.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-05 13:25:03 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 Mike Burns 2015-06-05 20:42:08 UTC
Description of problem:

2015-06-05 16:17:15.148 29383 TRACE nova     from nova.openstack.common import excutils
2015-06-05 16:17:15.148 29383 TRACE nova ImportError: cannot import name excutils


Version-Release number of selected component (if applicable):
openstack-nova-2015.1.0-6.el7ost

How reproducible:
always

Steps to Reproduce:
1.  encountered in CI testing of OSP director during undercloud setup
2.
3.

Comment 4 Dan Smith 2015-06-05 21:44:33 UTC
Yep, the backported commit introduces the new imports that the original patch didn't have. Sounds like a bad rebase:

diff --git a/nova/network/neutronv2/api.py b/nova/network/neutronv2/api.py
index 1f96360..7e04714 100644
--- a/nova/network/neutronv2/api.py
+++ b/nova/network/neutronv2/api.py
@@ -39,6 +39,9 @@ from nova.network import base_api
 from nova.network import model as network_model
 from nova.network.neutronv2 import constants
 from nova import objects
+from nova.openstack.common import excutils
+from nova.openstack.common import log as logging
+from nova.openstack.common import uuidutils

Comment 9 Sean Toner 2015-07-01 12:24:08 UTC
I see that excutils is no longer in nova.openstack.common and it is in oslo_utils.  I also have a rhel-osp-director 7 overcloud and I was able to successfully boot an instance, which means I got past installing the undercloud and successfully deployed the overcloud as well.



[stack@instack ~]$ python
Python 2.7.5 (default, Apr  9 2015, 11:03:32) 
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from oslo_utils import excutils
>>> from nova.openstack.common import excutils
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name excutils

Comment 13 errata-xmlrpc 2015-08-05 13:25:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1548