From e8d5fc6f696c568efccaade76deff637bd223a4a Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Tue, 12 May 2015 11:35:23 +0200 Subject: [PATCH] Feature #3778: Allows Sys DS migration from RUNNING state --- src/rm/RequestManagerVirtualMachine.cc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/rm/RequestManagerVirtualMachine.cc b/src/rm/RequestManagerVirtualMachine.cc index a078013e15..bb96166dde 100644 --- a/src/rm/RequestManagerVirtualMachine.cc +++ b/src/rm/RequestManagerVirtualMachine.cc @@ -1024,25 +1024,6 @@ void VirtualMachineMigrate::request_execute(xmlrpc_c::paramList const& paramList return; } - // Check the VM state again, in case the system DS is also changed - if((ds_id != -1 && ds_id != c_ds_id) && - (vm->get_state() != VirtualMachine::POWEROFF)) - { - ostringstream oss; - string tmp_st; - - oss << "System datastore migration is only available for VMs in the " - << VirtualMachine::vm_state_to_str(tmp_st, VirtualMachine::POWEROFF) - << " state, current state is " << vm->state_str(); - - failure_response(ACTION, - request_error(oss.str(),""), - att); - - vm->unlock(); - return; - } - // Check the host has enough capacity if (enforce) {