Skip to content

Commit

Permalink
Fix issue #247
Browse files Browse the repository at this point in the history
- The new VM migration listeners introduced in #249
  helped find the root cause.

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
  • Loading branch information
manoelcampos committed Aug 28, 2020
1 parent ddba3e0 commit 075dfab
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -635,10 +635,9 @@ private void restoreAllocation() {

for (final Vm vm : savedAllocation.keySet()) {
final Host host = savedAllocation.get(vm);
if (!host.createTemporaryVm(vm)) {
LOGGER.error("VmAllocationPolicy: Couldn't restore {} on {}", vm, host);
return;
}
if (host.createTemporaryVm(vm))
vm.setCreated(true);
else LOGGER.error("VmAllocationPolicy: Couldn't restore {} on {}", vm, host);
}
}

Expand Down

0 comments on commit 075dfab

Please sign in to comment.