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.
Reviewed: https:/ /review. openstack. org/289721 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=6b6249b5ff6 112a7150f6f6094 80e268fe42ea4d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6b6249b5ff6112a 7150f6f609480e2 68fe42ea4d
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, bleError' .
we will add foreign key "volumes.id", but we miss
to define the volumes table, that will cause the
migrating process fail: 'NoReferencedTa
Fix this issue by adding volume table definition
before creating iscsi_targets table. test is
added as well.
Change-Id: Id0e0970517a5d3 414e0ed124b2b7b 3a5b1973761
Closes-Bug: #1554329