MigrateDeprecationWarning when migrating schema

Bug #854163 reported by Davor Cubranic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Thierry Carrez
OpenStack Compute (nova)
Fix Released
Low
Thierry Carrez

Bug Description

Nova Diablo-4 milestone installed from ppa:nova-core/milestone-proposed
Ubuntu 10.04 LTS, 64-bit server

The system is freshly updated; nova packages are version 2011.3~d3-0ubuntu0~ppa1~lucid1, glance is 2011.3~d1~20110531.139-0ubuntu0ppa1~lucid1

When I ran "nova-manage db sync", I the following warning was printed in the console:

/usr/lib/pymodules/python2.6/migrate/changeset/schema.py:111: MigrateDeprecationWarning: Alter column with comparing columns is deprecated. Just pass in parameters instead.
  " Just pass in parameters instead.", MigrateDeprecationWarning)

I see no errors in nova-manage.log, which shows applying migrations up to #35.

Package python-migrate is at version 0.6-4~lucid1

Revision history for this message
Steve Jacobs (stevej) wrote :

I just got the same error - except I am running a fresh ubuntu 11.10 install

Revision history for this message
Steve Jacobs (stevej) wrote :

Seems like a python error - I got my first (controller) node up, and then while installing a couple of compute nodes - I saw this warning during the install:

/usr/lib/python2.7/dist-packages/migrate/changeset/schema.py:124: MigrateDeprecationWarning: Passing a Column object to alter_column is deprecated. Just pass in keyword parameters instead.
  MigrateDeprecationWarning

I am using only Ubuntu packages from Oneric Ocelot

Need to check python versions to see what is going on

Revision history for this message
Thierry Carrez (ttx) wrote :

Note that this is a warning, it's harmless (but should be fixed before the function is completely deprecated).

Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/3671

Changed in nova:
assignee: nobody → Thierry Carrez (ttx)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/3671
Committed: http://github.com/openstack/nova/commit/25c4f0ec43617874562ede0faf87f0028c86fd1f
Submitter: Jenkins
Branch: master

commit 25c4f0ec43617874562ede0faf87f0028c86fd1f
Author: Thierry Carrez <email address hidden>
Date: Thu Feb 2 18:13:34 2012 +0100

    Get rid of DeprecationWarning during db migration

    Use proper syntax to rename column, which avoids printing
    silly warnings and future deprecation issues.
    Fixes bug 854163.

    Change-Id: I7897b6bd15043ff1c3a5688b9ee775b33a0b0c22

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Jay Pipes (jaypipes) wrote :

Also needs to be done in Glance...

Changed in glance:
status: New → Triaged
importance: Undecided → Low
milestone: none → essex-4
tags: added: low-hanging-fruit migration
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/3751

Changed in glance:
assignee: nobody → Thierry Carrez (ttx)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/3751
Committed: http://github.com/openstack/glance/commit/c6c458e6b6cd39b94f89c112c477cee9da8f7f45
Submitter: Jenkins
Branch: master

commit c6c458e6b6cd39b94f89c112c477cee9da8f7f45
Author: Thierry Carrez <email address hidden>
Date: Fri Feb 3 16:54:30 2012 +0100

    Get rid of DeprecationWarning during db migration

    Use proper syntax to set column type, which avoids printing
    silly warnings and future deprecation issues.
    Fixes bug 854163.

    Change-Id: Iab1c3e7a52d739a445cf52eb9a67f61a69075026

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: essex-4 → 2012.1
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-4 → 2012.1
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.