Skip to content

Commit df30c81

Browse files
author
Dingane Hlaluku
committed
Send list of commands returned by hypervisor Guru instead of explicitly selecting the first one
1 parent 6d77bf5 commit df30c81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,8 @@ private Answer[] attemptHypervisorMigration(StoragePool destPool, VMInstanceVO v
20232023
}
20242024

20252025
if(CollectionUtils.isNotEmpty(commandsToSend)) {
2026-
Commands commandsContainer = new Commands(commandsToSend.get(0));
2026+
Commands commandsContainer = new Commands(Command.OnError.Stop);
2027+
commandsContainer.addCommands(commandsToSend);
20272028
try {
20282029
// OfflineVmwareMigration: change to the call back variety?
20292030
// OfflineVmwareMigration: getting a Long seq to be filled with _agentMgr.send(hostId, commandsContainer, this)

0 commit comments

Comments
 (0)