mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Add VM id information to some errors (#3053)
This commit is contained in:
parent
71df927ada
commit
d515ad9c3f
@ -1257,7 +1257,7 @@ void VirtualMachineMigrate::request_execute(xmlrpc_c::paramList const& paramList
|
||||
{
|
||||
ostringstream oss;
|
||||
|
||||
oss << "Cannot migrate to host [" << hid << "]. Host is in cluster ["
|
||||
oss << "Cannot migrate VM [" << id << "] to host [" << hid << "]. Host is in cluster ["
|
||||
<< cluster_id << "], and VM requires to be placed on cluster ["
|
||||
<< one_util::join(cluster_ids, ',') << "]";
|
||||
|
||||
@ -1279,13 +1279,13 @@ void VirtualMachineMigrate::request_execute(xmlrpc_c::paramList const& paramList
|
||||
{
|
||||
VirtualMachineManager * vmm = Nebula::instance().get_vmm();
|
||||
const VirtualMachineManagerDriver * vmmd = vmm->get(vmm_mad);
|
||||
|
||||
if ( vmmd == 0 )
|
||||
{
|
||||
|
||||
if ( vmmd == 0 )
|
||||
{
|
||||
att.resp_msg = "Cannot find vmm driver: " + vmm_mad;
|
||||
failure_response(ACTION, att);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if ( c_ds_id != ds_id && live && !vmmd->is_ds_live_migration())
|
||||
{
|
||||
@ -1329,7 +1329,7 @@ void VirtualMachineMigrate::request_execute(xmlrpc_c::paramList const& paramList
|
||||
{
|
||||
ostringstream oss;
|
||||
|
||||
oss << "Cannot migrate to host [" << hid << "] and system datastore [" << ds_id << "]. Host is in cluster ["
|
||||
oss << "Cannot migrate VM [" << id << "] to host [" << hid << "] and system datastore [" << ds_id << "]. Host is in cluster ["
|
||||
<< cluster_id << "], and the datastore is in cluster ["
|
||||
<< one_util::join(ds_cluster_ids, ',') << "]";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user