cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [3/7] git commit: updated refs/heads/4.5 to 48c1ffd
Date Fri, 17 Apr 2015 14:06:12 GMT
CLOUDSTACK-8320. Upon a failed migration, a dummy volume is created which remains in 'Expunging'
state.

Set destination volume path as NULL while duplicating volume during migration.
If migration fails, destination volume will be marked as removed. And if migration succeeds,
volume path will be rightly updated.

(cherry picked from commit d30d5644bb59898ac60884280bd0767bf429ede8)
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/326bb3e0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/326bb3e0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/326bb3e0

Branch: refs/heads/4.5
Commit: 326bb3e0a4d876b38d78b7f7bebe0f6a08863866
Parents: 55f2e45
Author: Likitha Shetty <likitha.shetty@citrix.com>
Authored: Wed Feb 11 16:10:50 2015 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Fri Apr 17 15:42:02 2015 +0200

----------------------------------------------------------------------
 .../src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/326bb3e0/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
----------------------------------------------------------------------
diff --git a/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
b/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
index 02b4095..b0555e2 100644
--- a/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
+++ b/engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
@@ -829,6 +829,7 @@ public class VolumeServiceImpl implements VolumeService {
         VolumeVO newVol = new VolumeVO(volume);
         newVol.setInstanceId(null);
         newVol.setChainInfo(null);
+        newVol.setPath(null);
         newVol.setFolder(folder);
         newVol.setPodId(pool.getPodId());
         newVol.setPoolId(pool.getId());


Mime
View raw message