From 7de7885a54d3b109cd0b8eaf73aeca86b6efd0bd Mon Sep 17 00:00:00 2001 From: Likitha Shetty Date: Sat, 6 Dec 2014 14:43:03 +0530 Subject: [PATCH] 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. (cherry picked from commit 7b32b8a26808a546d1dbfdf4728c6228a41852b6) Signed-off-by: Rohit Yadav --- .../org/apache/cloudstack/storage/volume/VolumeServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c6bd05b49c9..0fd97920d88 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());