From 7b32b8a26808a546d1dbfdf4728c6228a41852b6 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. --- .../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 c00785e7b0d..5527c3de3f9 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());