Skip to content

Commit 2b7b837

Browse files
bvbharatyadvr
authored andcommitted
CLOUDSTACK-6099 live migration is failing for vm deployed using dynaic compute offerings with NPE
1 parent 70142c4 commit 2b7b837

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

1846-
VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm);
1846+
VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm, null, _offeringDao.findById(vm.getId(), vm.getServiceOfferingId()), null, null);
18471847
_networkMgr.prepareNicForMigration(profile, dest);
18481848
volumeMgr.prepareForMigration(profile, dest);
18491849

0 commit comments

Comments
 (0)