From 8dbd5380ea1565f84835abb8712cf7fa32b0e1bd Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Fri, 8 May 2015 21:02:30 +0200 Subject: [PATCH] bug #3235: Do PROLOG instead of PROLOG_RESUME after delete-recreating a VM --- src/dm/DispatchManagerActions.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dm/DispatchManagerActions.cc b/src/dm/DispatchManagerActions.cc index fbb77cd1b9..6899515335 100644 --- a/src/dm/DispatchManagerActions.cc +++ b/src/dm/DispatchManagerActions.cc @@ -861,6 +861,12 @@ int DispatchManager::resubmit( case VirtualMachine::HOLD: // Move the VM to PENDING in any of these case VirtualMachine::STOPPED: case VirtualMachine::UNDEPLOYED: + if (vm->hasHistory()) + { + vm->set_action(History::DELETE_RECREATE_ACTION); + vmpool->update_history(vm); + } + vm->set_state(VirtualMachine::LCM_INIT); vm->set_state(VirtualMachine::PENDING);