mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 09:43:18 +09:00
Bug #317: Before migration, the RM checks if another migration has just started.
(cherry picked from commit ff683fc501)
This commit is contained in:
1 parent
a717c151f9
commit
231b3e80bd
1 file changed
+3
-2
@@ -107,8 +107,9 @@ void RequestManager::VirtualMachineMigrate::execute(
|
||||
}
|
||||
}
|
||||
|
||||
if ((vm->get_state() != VirtualMachine::ACTIVE) ||
|
||||
(vm->get_lcm_state() != VirtualMachine::RUNNING))
|
||||
if((vm->get_state() != VirtualMachine::ACTIVE) ||
|
||||
(vm->get_lcm_state() != VirtualMachine::RUNNING) ||
|
||||
(vm->hasPreviousHistory() && vm->get_previous_reason() == History::NONE))
|
||||
{
|
||||
goto error_state;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user