mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #3778: Allows Sys DS migration from RUNNING state
This commit is contained in:
parent
7975d31852
commit
e8d5fc6f69
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user