Skip to content

Commit d3aac19

Browse files
author
Sudhansu
committed
CLOUDSTACK-9831: Previous pod_id still remains in the vm_instance table after
VM migration with migrateVirtualMachineWithVolume
1 parent 0f0d908 commit d3aac19

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,8 +2287,10 @@ private void orchestrateMigrateWithStorage(final String vmUuid, final long srcHo
22872287
work.setResourceId(destHostId);
22882288
work = _workDao.persist(work);
22892289

2290+
22902291
// Put the vm in migrating state.
22912292
vm.setLastHostId(srcHostId);
2293+
vm.setPodIdToDeployIn(destHost.getPodId());
22922294
moveVmToMigratingState(vm, destHostId, work);
22932295

22942296
boolean migrated = false;

0 commit comments

Comments
 (0)