cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [5/6] git commit: updated refs/heads/4.9 to 4c59a6b
Date Wed, 24 Aug 2016 07:32:58 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 <>


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

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

View raw message