Bug 889766 - Warning message when running openstack-db -y --init --service glance --rootpw openstack
Summary: Warning message when running openstack-db -y --init --service glance --rootpw...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 2.0 (Folsom)
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: snapshot2
: 2.1
Assignee: Eoghan Glynn
QA Contact: Attila Fazekas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-23 12:10 UTC by Gary Kotton
Modified: 2016-04-27 02:00 UTC (History)
2 users (show)

Fixed In Version: openstack-glance-2012.2.1-5.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-14 18:24:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 925609 0 None None None Never
OpenStack gerrit 5031 0 None None None Never
OpenStack gerrit 14177 0 None None None Never
Red Hat Product Errata RHBA-2013:0260 0 normal SHIPPED_LIVE Red Hat OpenStack 2.0 (Folsom) Preview bug fix and enhancement update 2013-02-14 23:21:02 UTC

Description Gary Kotton 2012-12-23 12:10:41 UTC
Description of problem:
Get warning message when invoking command in summary:

[root@gkotton-rhel64-1 ~]# openstack-db -y --init --service glance --rootpw openstack
Verified connectivity to MySQL.
Creating 'glance' database.
Asking openstack-glance to sync the database.
/usr/lib/python2.6/site-packages/migrate/changeset/schema.py:554: SAWarning: <type 'NoneType'> being associated with <class 'sqlalchemy.schema.Column'> object after the <class 'sqlalchemy.schema.Column'> has already been used in a SQL generation; previously generated constructs may contain stale state.
  self.table = None
/usr/lib/python2.6/site-packages/glance/db/sqlalchemy/migrate_repo/versions/003_add_disk_format.py:46: SADeprecationWarning: useexisting is deprecated.  Use extend_existing.
  useexisting=True)
Complete!


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


How reproducible:
100% if no database exists


Steps to Reproduce:
1. Run command in summary
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Eoghan Glynn 2013-01-03 15:53:10 UTC
Already fixed upstream with:

  https://review.openstack.org/5031
  https://review.openstack.org/14177

These fixes, though trivial, touch the migrate_repo scripts ... however in this case, we can allow them onto stable/folsom as only *pre-existing* scripts are touched and the resulting DB is unchanged.

Comment 3 Eoghan Glynn 2013-01-25 16:53:24 UTC
The first patch, https://review.openstack.org/5031, is already backported to stable/folsom.

Whereas the second patch, https://review.openstack.org/14177, was not backported at the time of landing on master.

I've addressed this oversight as:

  https://review.openstack.org/20492

Comment 4 Eoghan Glynn 2013-01-25 20:08:21 UTC
Landed upsteam on stable/folsom:

  https://github.com/openstack/glance/commit/4c960803

Comment 8 errata-xmlrpc 2013-02-14 18:24:18 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.

http://rhn.redhat.com/errata/RHBA-2013-0260.html


Note You need to log in before you can comment on or make changes to this bug.