/
csmi_errors.def
101 lines (86 loc) · 12.3 KB
/
csmi_errors.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*================================================================================
csmi/include/csm_types/enum_defs/common/csmi_errors.def
© Copyright IBM Corporation 2015-2017. All Rights Reserved
This program is licensed under the terms of the Eclipse Public License
v1.0 as published by the Eclipse Foundation and available at
http://www.eclipse.org/legal/epl-v10.html
U.S. Government Users Restricted Rights: Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
================================================================================*/
/**
* CSMI_ENUM_BRIEF
* @brief A list of the error codes supported by csm.
* @todo Post-PRPQ: Remove CSMERR_MSG_RETURNBUFFER_EMPTY, CSMERR_MSG_RETURNBUFFER_UNKNOWN_CORRUPTED
*/
#ifndef CSMI_ENUM_NAME
#define CSMI_ENUM_NAME csmi_cmd_err_t
#endif
CSMI_VERSION_START(CSM_VERSION_0_4_1)
CSMI_ENUM_MEMBER( CSMI_SUCCESS, "NO ERROR" ,,) ///< Indicates a success.
CSMI_ENUM_MEMBER( CSMERR_GENERIC, "An undefined error was detected." ,,) ///< Indicates that the error was not defined.
CSMI_ENUM_MEMBER( CSMI_HELP, "A help functionality caused an early exit." ,,) ///< Indicates that a command line executable exited through the help functionality.
CSMI_ENUM_MEMBER( CSMI_NOT_INITIALIZED, "CSM Library not initialized" ,,) ///< Indicates user did not run @ref csm_init_lib successfully.
CSMI_ENUM_MEMBER( CSMI_NO_RESULTS, "No results received" ,,) ///< Indicates that a query API received no errors, but no results.
CSMI_ENUM_MEMBER( CSMERR_TIMEOUT, "Timeout" ,,) ///< Indicates that a timeout occurred in execution of API.
CSMI_ENUM_MEMBER( CSMERR_MSGID_MISMATCH, "Message Id mismatched" ,,) ///< Indicates that the message id received did not match the sent id.
CSMI_ENUM_MEMBER( CSMERR_CMD_MISMATCH, "CSMI CMD mismatched" ,,) ///< Indicates that a @ref csm_api_object was reused. @todo reusable api objs.
CSMI_ENUM_MEMBER( CSMERR_MISSING_PARAM, "Missing required parameter" ,,) ///< Indicates a required parameter was not supplied.
CSMI_ENUM_MEMBER( CSMERR_INVALID_PARAM, "Invalid parameter or value" ,,) ///< Indicates a supplied parameter was illegal for the API invocation.
CSMI_ENUM_MEMBER( CSMERR_RAS_HANDLER_ERROR, "Ras handler exception" ,,) ///< Indicates an error occurred in a RAS Handler.
CSMI_ENUM_MEMBER( CSMERR_CMD_UNKNOWN, "CSMI CMD Unknown To Daemon" ,,) ///< Indicates that the API was given an invalid command id.
CSMI_ENUM_MEMBER( CSMERR_SENDRCV_ERROR, "Send or Recv Error" ,,) ///< Indicates an error occurred in the network transmission section of the API.
CSMI_ENUM_MEMBER( CSMERR_MEM_ERROR, "Memory error" ,,) ///< Indicates that a memory allocation failed.
CSMI_ENUM_MEMBER( CSMERR_NOTDEF, "Not defined error" ,,) ///< Indicates that a RAS command could not be found in response to an event. @todo might need to be removed.
CSMI_ENUM_MEMBER( CSMERR_PUBSUB, "PubSub error" ,,) ///< Indicates that a RAS topic could not be found.
CSMI_ENUM_MEMBER( CSMERR_PERM, "CSMI permission denied" ,,) ///< Indicates that the invoking user did not have permission for the resources requested.
CSMI_ENUM_MEMBER( CSMERR_SCRIPT_FAILURE, "Script failure error" ,,) ///< Indicates that an Allocation Create or Delete could not execute the prolog or epilog.
CSMI_ENUM_MEMBER( CSMERR_INIT_LIB_FAILED, "Can not connect to daemon" ,,) ///< Indicates that the API was unable to connect to a local daemon.
CSMI_ENUM_MEMBER( CSMERR_TERM_LIB_FAILED, "Can not disconnect from daemon" ,,) ///< Indicates that the API failed to close the connection to the local daemon.
CSMI_ENUM_MEMBER( CSMERR_PAYLOAD_EMPTY, "The Payload of a message was unexpectedly empty" ,,) ///< Indicates that the Payload of a network message was empty unexpectedly.
CSMI_ENUM_MEMBER( CSMERR_BAD_EVENT_TYPE, "Handler received incorrect event type" ,,) ///< Indicates that the event processed by a handler was invalid.
CSMI_ENUM_MEMBER( CSMERR_BAD_ADDR_TYPE, "The Address type of a network message was unexpected" ,,) ///< Indicates that the address of a message received by handler was of an unexpected type.
CSMI_ENUM_MEMBER( CSMERR_CGROUP_DEL_ERROR, "Indicates that a CGroup couldn't be deleted" ,,) ///< Indicates an error occurred while deleting a CGroup.
//Database Related Errors
CSMI_ENUM_MEMBER( CSMERR_DAEMON_DB_ERR, "Database error; can't connect" ,,) ///< Indicates that the Daemon had trouble with a database connection.
CSMI_ENUM_MEMBER( CSMERR_DB_ERROR, "Database error; table in bad state" ,,) ///< Indicates that the state of a table was invalid.
CSMI_ENUM_MEMBER( CSMERR_DEL_MISMATCH, "Number of deleted records is less than expected" ,,) ///< Indicates that the API failed to delete all the requested records.
CSMI_ENUM_MEMBER( CSMERR_UPDATE_MISMATCH, "Number of updated records is less than expected" ,,) ///< Indicates that the API failed to update all the requested records.
//Infrastructure and Message Transport Related Errors
CSMI_ENUM_MEMBER( CSMERR_MSG_PACK_ERROR, "Message packing error" ,,) ///< Indicates something went wrong serializing a message payload.
CSMI_ENUM_MEMBER( CSMERR_MSG_UNPACK_ERROR, "Message unpack error" ,,) ///< Indicates something went wrong deserializing a message payload.
CSMI_ENUM_MEMBER( CSMERR_MSG_BUFFER_EMPTY, "The String Buffer of a csmi_sendrecv_cmd message was unexpectedly empty" ,,) ///< Indicates the string buffer of a network message was empty unexpectedly.
CSMI_ENUM_MEMBER( CSMERR_MSG_RETURNBUFFER_EMPTY, "The Return Buffer of a csmi_sendrecv_cmd message was unexpectedly empty" ,,) ///< Indicates the return buffer of a network message was empty unexpectedly.
CSMI_ENUM_MEMBER(CSMERR_MSG_RETURNBUFFER_UNKNOWN_CORRUPTED, "The Return Buffer of a csmi_sendrecv_cmd message was unknown or corrupted",,) ///< Indicates the return buffer of a network message was unknown or corrupted.
//Multicast Related Errors
CSMI_ENUM_MEMBER( CSMERR_MULTI_GEN_ERROR, "It was not possible to create the multicast message" ,,) ///< Indicates that generating the multicast message failed.
CSMI_ENUM_MEMBER( CSMERR_MULTI_RESP_ERROR, "Errors were found with the responses from the compute daemons" ,,) ///< Indicates that an error occured between the Master and Compute Daemon.
//Specific CSM API Errors
CSMI_ENUM_MEMBER( CSMERR_EXEC_ILLEGAL, "API has a bad permission level." ,,) ///< Indicates that an API has an invalid permission level in the acl file.
CSMI_ENUM_MEMBER( CSMERR_CGROUP_FAIL, "A generic error occurred modifying cgroups." ,,) ///< Indicates that cgroup failed to be modified, generic error.
CSMI_ENUM_MEMBER( CSMERR_CONTEXT_LOST, "The handler context was lost in some way." ,,) ///< Indicates that the backend handler context, or its user data, was unexpectedly null.
CSMI_ENUM_MEMBER( CSMERR_CGROUP_EINVAL, "An invalid value was written to a cgroup parameter." ,,) ///< Indicates an attempt to write an invalid value to a cgroup parameter.
CSMI_ENUM_MEMBER( CSMERR_CGROUP_EACCES, "An illegal resource request occurred for the cgroup parameter. " ,,) ///< Indicates an attempt to write an invalid resource to a cgroup parameter.
CSMI_VERSION_END(b9c5796adbc0a0e4561e052a1289fec9)
CSMI_VERSION_START(CSM_VERSION_1_0_0)
CSMI_ENUM_MEMBER( CSMERR_BB_CMD_ERROR, "Burst Buffer Command encountered a generic error.",,)///< The generic burst buffer command error.
CSMI_ENUM_MEMBER( CSM_STATE_JUMPED, "The allocation jumped from staging-in to staging-out." ,,) ///< Indicates an allocation jumped states (legal, non error).
CSMI_ENUM_MEMBER( CSM_SAME_STATE_TRANSITION, "The allocation state transition was to the same state." ,,) ///< Indicates an allocation update state operation transitioned to the same state.
CSMI_ENUM_MEMBER( CSMERR_STATE_CHANGE_FAILED, "The allocation state transition failed to complete." ,,) ///< Indicates an allocation update state operation failed to be completed, usually a problem in the compute nodes.
CSMI_ENUM_MEMBER( CSMERR_DELETE_STATE_BAD, "The allocation delete was performed in an illegal state." ,,) ///< Indicates an allocation delete operation failed due to an invalid state.
CSMI_ENUM_MEMBER( CSMERR_JSRUN_CMD_ERROR, "Indicates JSRUN could not be started by the CSM infrastructure." ,,) ///< Indicates a JSRUN start failed.
CSMI_VERSION_END(9bbb17a023c5a0bb1d19a367e1809c4e)
CSMI_VERSION_START(CSM_VERSION_1_4_0)
CSMI_ENUM_MEMBER( CSMERR_ALLOC_INVALID_NODES, "Nodes specified for allocation create were not in the database.",,) ///< Indicates one or more nodes were not in the CSM database for the allocation create.
CSMI_ENUM_MEMBER( CSMERR_ALLOC_OCCUPIED_NODES, "Nodes specified for allocation create were in use by other allocations.",,) ///< Indicates nodes in the list were in use by another allocation.
CSMI_ENUM_MEMBER( CSMERR_ALLOC_UNAVAIL_NODES, "Allocation create had nodes that were not available.",,) ///< Indicates the allocation create failed due to nodes that were not avaliable.
CSMI_ENUM_MEMBER( CSMERR_ALLOC_BAD_FLAGS, "Allocation create had bad allocation flags.",,) ///< Indicates the allocation create failed due to the prolog having bad allocation flags.
CSMI_ENUM_MEMBER( CSMERR_ALLOC_MISSING, "Allocation couldn't find the allocation.",,) ///< Indicates the allocation delete failed due to a missing allocation.
CSMI_ENUM_MEMBER( CSMERR_EPILOG_EPILOG_COLLISION, "Indicates an epilog collided with an epilog.",,) ///< Indicates an epilog collided with an epilog.
CSMI_ENUM_MEMBER( CSMERR_EPILOG_PROLOG_COLLISION, "Indicates an epilog collided with a prolog.",,) ///< Indicates an epilog collided with a prolog.
CSMI_ENUM_MEMBER( CSMERR_PROLOG_EPILOG_COLLISION, "Indicates a prolog collided with an epilog.",,) ///< Indicates a prolog collided with an epilog.
CSMI_ENUM_MEMBER( CSMERR_PROLOG_PROLOG_COLLISION, "Indicates a prolog collided with a prolog.",,) ///< Indicates a prolog collided with a prolog.
CSMI_ENUM_MEMBER( CSMERR_SOFT_FAIL_RECOVERY_AGENT, "Indicates a generic error in the soft failure recovery agent.",,) ///< Indicates a generic error in the soft failure recovery agent.
CSMI_VERSION_END(8448902adec852fe6e7106840400c97f)
#undef CSMI_ENUM_MEMBER
#undef CSMI_VERSION_START
#undef CSMI_VERSION_END