Repository: cloudstack Updated Branches: refs/heads/master 1c0bf3217 -> 7b32b8a26
CLOUDSTACK-8125. VM fails to start on the first attempt after a cold migration. Update volume chain_info to NULL during cold migration. Otherwise during VM start, CCP will configure and try to power-on the VM with wrong disk information. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7b32b8a2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7b32b8a2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7b32b8a2 Branch: refs/heads/master Commit: 7b32b8a26808a546d1dbfdf4728c6228a41852b6 Parents: 1c0bf32 Author: Likitha Shetty <likitha.she...@citrix.com> Authored: Sat Dec 6 14:43:03 2014 +0530 Committer: Likitha Shetty <likitha.she...@citrix.com> Committed: Wed Dec 24 14:33:51 2014 +0530 ---------------------------------------------------------------------- .../org/apache/cloudstack/storage/volume/VolumeServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7b32b8a2/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 c00785e..5527c3d 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 @@ -830,7 +830,7 @@ public class VolumeServiceImpl implements VolumeService { VolumeVO newVol = new VolumeVO(volume); newVol.setInstanceId(null); - newVol.setPoolId(pool.getId()); + newVol.setChainInfo(null); newVol.setFolder(folder); newVol.setPodId(pool.getPodId()); newVol.setPoolId(pool.getId());