1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

feature #203: RM log funtions, -2 introduced for (allocate, parse, ...) errors

This commit is contained in:
Tino Vázquez 2010-07-14 17:28:33 +02:00
parent 1035fe7722
commit f19887fab0
7 changed files with 17 additions and 14 deletions

View File

@ -237,16 +237,19 @@ private:
oss << "[" << method << "]" << " Error trying to " << action << " "
<< object;
if ( id != -1 )
switch(id)
{
oss << " [" << id << "].";
case -2:
break;
case -1:
oss << "Pool.";
break;
default:
oss << " [" << id << "].";
break;
}
else
{
oss << " Pool.";
}
if ( rc != (int)NULL )
{
oss << " Returned error code [" << rc << "].";

View File

@ -81,7 +81,7 @@ error_authenticate:
goto error_common;
error_allocate:
oss.str(action_error(method_name, "CREATE", "VM", -1, rc));
oss.str(action_error(method_name, "CREATE", "VM", -2, rc));
goto error_common;
error_common:

View File

@ -95,7 +95,7 @@ error_authorize:
goto error_common;
error_cluster_allocate:
oss.str(action_error(method_name, "CREATE", "CLUSTER", -1, rc));
oss.str(action_error(method_name, "CREATE", "CLUSTER", -2, rc));
goto error_common;
error_common:

View File

@ -105,7 +105,7 @@ error_authorize:
goto error_common;
error_host_allocate:
oss.str(action_error(method_name, "CREATE", "HOST", -1, rc));
oss.str(action_error(method_name, "CREATE", "HOST", -2, rc));
goto error_common;
error_common:

View File

@ -82,7 +82,7 @@ error_authenticate:
goto error_common;
error_allocate:
oss.str(action_error(method_name, "CREATE", "IMAGE", NULL, rc));
oss.str(action_error(method_name, "CREATE", "IMAGE", -2, rc));
goto error_common;
error_common:

View File

@ -118,7 +118,7 @@ error_duplicate:
goto error_common;
error_allocate:
oss.str(action_error(method_name, "CREATE", "USER", -1, rc));
oss.str(action_error(method_name, "CREATE", "USER", -2, rc));
goto error_common;
error_common:

View File

@ -97,7 +97,7 @@ error_get_user:
goto error_common;
error_vn_allocate:
oss.str(action_error(method_name, "ALLOCATE", "NET", -1, rc));
oss.str(action_error(method_name, "CREATE", "NET", -2, rc));
goto error_common;
error_common: