Skip to content

Commit 57c69a8

Browse files
bvbharatrohityadavcloud
authored andcommitted
CLOUDSTACK-6099 live migration is failing for vm deployed using dynaic compute offerings with NPE
Signed-off-by: Rohit Yadav <[email protected]>
1 parent 885c02d commit 57c69a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ protected void migrate(VMInstanceVO vm, long srcHostId, DeployDestination dest)
17861786
vmSrc.addNic(nic);
17871787
}
17881788

1789-
VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm);
1789+
VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm, null, _offeringDao.findById(vm.getId(), vm.getServiceOfferingId()), null, null);
17901790
_networkMgr.prepareNicForMigration(profile, dest);
17911791
volumeMgr.prepareForMigration(profile, dest);
17921792

0 commit comments

Comments
 (0)