]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Readd iscsi_target table
authorGorka Eguileor <geguileo@redhat.com>
Thu, 3 Mar 2016 13:37:29 +0000 (14:37 +0100)
committerGorka Eguileor <geguileo@redhat.com>
Fri, 4 Mar 2016 09:07:05 +0000 (10:07 +0100)
commite51edb0dce9d69f1798f226ba1ce927c283688ea
treebb20466cc3cc9a0cf39b09a1c715acb58a731d4a
parent6fa468270c670a80829066ad2b811b61e5c2ab98
Readd iscsi_target table

Rolling upgrades was broken when iscsi_target table was dropped on
https://review.openstack.org/268320

We cannot stop using a table and drop it in the same release for rolling
upgrades to work, we have to stop using it in one release and then drop
it in the next or in the post rolling upgrade mechanism (which is still
not in place).

So this patch fixes this by removing the dropping and adding another
migration that ensure that the table is really there.  That way we can
be sure that anyone using M will have the table, which then will get
dropped in N.

Closes-Bug: #1553079
Change-Id: I26586549485a8d745a25161d97d33426fdd52576
cinder/db/sqlalchemy/migrate_repo/versions/063_placeholder.py [moved from cinder/db/sqlalchemy/migrate_repo/versions/063_drop_iscsi_targets_table.py with 78% similarity]
cinder/db/sqlalchemy/migrate_repo/versions/067_readd_iscsi_targets_table.py [new file with mode: 0644]