CLOUDSTACK-2689 Create volume after upgrade from snapshot taken in 2.2.14 deletes the snapshot physically from sec. storage. Added DB upgrade sql to make swift_id NULL if they are set to 0
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a688d631 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a688d631 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a688d631 Branch: refs/heads/vmware-storage-motion Commit: a688d631047ae7dc70a4c4d8c5330dec1dc1cd95 Parents: 08ac8fb Author: Nitin Mehta <nitin.me...@citrix.com> Authored: Mon May 27 14:16:16 2013 +0530 Committer: Nitin Mehta <nitin.me...@citrix.com> Committed: Mon May 27 14:16:16 2013 +0530 ---------------------------------------------------------------------- setup/db/db/schema-410to420.sql | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a688d631/setup/db/db/schema-410to420.sql ---------------------------------------------------------------------- diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql index 435bb83..1c9a8c1 100644 --- a/setup/db/db/schema-410to420.sql +++ b/setup/db/db/schema-410to420.sql @@ -1709,6 +1709,8 @@ update `cloud`.`vpc_gateways` set network_acl_id = 2; INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'VpcManager', 'blacklisted.routes', NULL, 'Routes that are blacklisted, can not be used for Static Routes creation for the VPC Private Gateway'); +UPDATE `cloud`.`snapshots` set swift_id=null where swift_id=0; + -- Re-enable foreign key checking, at the end of the upgrade path SET foreign_key_checks = 1;