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 7b32b8a268)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Likitha Shetty 2014-12-06 14:43:03 +05:30 committed by Rohit Yadav
parent 6ddaef7a48
commit 7de7885a54
1 changed files with 1 additions and 1 deletions

View File

@ -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());