Skip to content

Commit 4222364

Browse files
CLOUDSTACK-8491: Host maintenance fails if a vm on it is running a custom service offering VM
1 parent 19f3166 commit 4222364

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,8 @@ private void orchestrateMigrateAway(final String vmUuid, final long srcHostId, f
23582358
throw new CloudRuntimeException("Unable to find " + vmUuid);
23592359
}
23602360

2361-
final VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm);
2361+
ServiceOfferingVO offeringVO = _offeringDao.findById(vm.getId(), vm.getServiceOfferingId());
2362+
final VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm, null, offeringVO, null, null);
23622363

23632364
final Long hostId = vm.getHostId();
23642365
if (hostId == null) {

0 commit comments

Comments
 (0)