Skip to content

Commit 56c7fc8

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 <rohit.yadav@shapeblue.com>
1 parent bd8eaf8 commit 56c7fc8

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
@@ -1863,7 +1863,7 @@ protected void migrate(VMInstanceVO vm, long srcHostId, DeployDestination dest)
18631863
vmSrc.addNic(nic);
18641864
}
18651865

1866-
VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm);
1866+
VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm, null, _offeringDao.findById(vm.getId(), vm.getServiceOfferingId()), null, null);
18671867
_networkMgr.prepareNicForMigration(profile, dest);
18681868
volumeMgr.prepareForMigration(profile, dest);
18691869

0 commit comments

Comments
 (0)