Miss volumes table definition when migrating DB to 67

Bug #1554329 reported by wanghao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Critical
wanghao

Bug Description

When migrating DB to 67 readd_iscsi_targets_table, we will add foreign key "volumes.id", but we miss to define the volumes table, that will cause the migrating process fail: 'NoReferencedTableError'.

wanghao (wanghao749)
Changed in cinder:
milestone: none → mitaka-rc1
assignee: nobody → wanghao (wanghao749)
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: New → In Progress
Revision history for this message
wanghao (wanghao749) wrote :

This bug will impact db migrating in all environments, so I change the importance to 'Critical'.

Changed in cinder:
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/289721
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=6b6249b5ff6112a7150f6f609480e268fe42ea4d
Submitter: Jenkins
Branch: master

commit 6b6249b5ff6112a7150f6f609480e268fe42ea4d
Author: wanghao <email address hidden>
Date: Tue Mar 8 13:57:15 2016 +0800

    Add volumes table definition when migrating to 67

    When migrating DB to 67 readd_iscsi_targets_table,
    we will add foreign key "volumes.id", but we miss
    to define the volumes table, that will cause the
    migrating process fail: 'NoReferencedTableError'.

    Fix this issue by adding volume table definition
    before creating iscsi_targets table. test is
    added as well.

    Change-Id: Id0e0970517a5d3414e0ed124b2b7b3a5b1973761
    Closes-Bug: #1554329

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/cinder 8.0.0.0rc1

This issue was fixed in the openstack/cinder 8.0.0.0rc1 release candidate.

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.