Bug 1014835

Summary: python-nova package does not require sufficient python-oslo-config version
Product: [Community] RDO Reporter: Dan Smith <dasmith>
Component: openstack-novaAssignee: Xavier Queralt <xqueralt>
Status: CLOSED CURRENTRELEASE QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dallan, ndipanov, rbryant, xqueralt, yeylon
Target Milestone: ---   
Target Release: Havana   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-2013.2.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-24 07:45:12 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 Dan Smith 2013-10-02 21:43:05 UTC
Description of problem:

Upgrading from grizzly to havana RDO packages will leave a nova-only node unable to start nova services due to an un-upgraded python-oslo-config package.

Version-Release number of selected component (if applicable):

python-nova-2013.2-0.19.b3.el6.noarch

How reproducible:

Always.

Steps to Reproduce:
1. Install rdo-release-grizzly
2. Install openstack-nova-{compute,conductor,scheduler,api}
3. Install rdo-release-havana
4. Upgrade python-nova
4. Try to start any of the nova services and see the following in the log or on the console:

[root@centos1 ~]# /usr/bin/nova-compute 
Traceback (most recent call last):
  File "/usr/bin/nova-compute", line 6, in <module>
    from nova.cmd.compute import main
  File "/usr/lib/python2.6/site-packages/nova/cmd/compute.py", line 27, in <module>
    from nova import config
  File "/usr/lib/python2.6/site-packages/nova/config.py", line 22, in <module>
    from nova.openstack.common.db.sqlalchemy import session as db_session
  File "/usr/lib/python2.6/site-packages/nova/openstack/common/db/sqlalchemy/session.py", line 279, in <module>
    deprecated_opts=[cfg.DeprecatedOpt('sql_connection',
AttributeError: 'module' object has no attribute 'DeprecatedOpt'


Actual results:

All nova services crash on startup until you upgrade python-oslo-config.

Expected results:

The python-oslo-config version required should be req'd by the nova packages so they don't crash.

Additional info:

Nova packages just require python-oslo-config, but without any version:

  [root@centos1 ~]# rpm -q --requires python-nova | grep oslo
  python-oslo-config

whereas other packages like cinder do this properly:

  [root@centos1 ~]# rpm -q --requires python-cinder | grep oslo
  python-oslo-config >= 1:1.2.0