Database migration snake walk test doesn't actually snake walk

Bug #1204940 reported by Johannes Erdfelt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Johannes Erdfelt

Bug Description

The test is intended to upgrade to a database version, downgrade to the previous version, then upgrade again. The test should ensure that the upgrade and downgrade paths work correctly.

However, the downgrade part specifies the same version as the initial upgrade, which is effectively a noop. The last upgrade is also effectively a noop because the database is already on that schema version.

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/38645

Changed in glance:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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

commit d53985641a3db8b84772158259dadee7bbf5e067
Author: Johannes Erdfelt <email address hidden>
Date: Thu Jul 25 02:21:03 2013 +0000

    Perform database migration snake walk test correctly

    Fixes bug 1204940

    The database migration snake walk test would not properly perform downgrades
    leaving that part of the test non-functional.

    Also, if downgrade was True, the test wouldn't downgrade all of the way to
    the first migration because of a fence post error.

    Change-Id: I44873fc9bb0b159c941a90ce19b74e1afba8b6a8

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-3 → 2013.2
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.