cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [06/11] git commit: updated refs/heads/4.9-systemdubuntupkging to 7bc8046
Date Thu, 25 Aug 2016 10:08:49 GMT
Merge pull request #1656 from shapeblue/4.9-fk410to420fix

CLOUDSTACK-9466: Fix fk constraint failure in upgrade pathIn the 4.1.0-4.2.0 db upgrade path,
it creates new tables to store secondary
(nfs) storage in image_store table and volumes in volume_store_ref table. In
the upgrade path, it first tries to migrate NFS storage pool where it excludes
storage pools which have been removed, but it migrates all the volumes without
checking if their storage pools have been removed. This causes fk constraint
failure as the volume/row being inserted refers to a storage pool which does
not exist in the image_store table.

The fix migrates all the nfs storage pools to image_store including removed
storage pools and in doing so migrates with the 'removed' field. This fixes
db upgrade for old pre-4.0 and 4.0/4.1 CloudStack clouds.

/cc @jburwell @PaulAngus @karuturi @abhinandanprateek @murali-reddy

* pr/1656:
  CLOUDSTACK-9466: Fix fk constraint failure in upgrade path

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3fa87626
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3fa87626
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3fa87626

Branch: refs/heads/4.9-systemdubuntupkging
Commit: 3fa87626a2e78523b632d37323cbe054e09495b2
Parents: 740bd45 7530f4b
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Wed Aug 24 12:39:45 2016 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Wed Aug 24 12:39:46 2016 +0530

----------------------------------------------------------------------
 engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------



Mime
View raw message