Visit Platform at http://www.platform.com

vem.errno.h File Reference


Enumerations

enum  {
  VEME_NO_ERR, VEME_BAD_ARG, VEME_NO_MEM, VEME_XDR,
  VEME_NOSUCH_ALLOC, VEME_NOT_IMPL, VEME_NOSUCH_CONTAINER, VEME_PEM_HOST,
  VEME_STATUS_SEQNO, VEME_STATUS_UPDATE, VEME_PEM_UNREACH, VEME_FORK,
  VEME_NO_USER, VEME_PROTOCOL, VEME_SIG_RETRY, VEME_NO_CONTAINERID,
  VEME_CONTAINER_FINISH, VEME_SIGNALLING, VEME_BAD_HOST, VEME_UNREG_CLIENT,
  VEME_BAD_ALLOC_HOST, VEME_HOST_UNAVAIL, VEME_CONTAINERID_EXIST, VEME_NO_ALLOCATIONID,
  VEME_NAME_INUSE, VEME_VEMKD_DOWN, VEME_SOCK_SYS, VEME_TIME_OUT,
  VEME_THREAD_SYS, VEME_NOSUCH_HGROUP, VEME_NOSUCH_CONSUMER, VEME_SYS,
  VEME_UNKNOWN_EVENT, VEME_FILE_FORMAT, VEME_EOF, VEME_NOT_DIR,
  VEME_HOST_CLOSE, VEME_CONTAINER_START, VEME_BAD_RESREQ, VEME_BAD_RANGE,
  VEME_NOSUCH_CLIENT, VEME_CONFIG_SYNTAX, VEME_BAD_ENV, VEME_AUTH_FAIL,
  VEME_NO_PERM, VEME_NO_AUTH, VEME_XML_FORMAT, VEME_XML_PARSE,
  VEME_NOSUCH_PARAM, VEME_SEC_INIT_FAIL, VEME_AUTH_ALREADY, VEME_NOSUCH_USERNAME,
  VEME_USERNAME_INUSE, VEME_NOSUCH_USERROLE, VEME_BUSY_CONSUMER, VEME_CONSUMER_EXIST,
  VEME_BAD_HOSTGROUP, VEME_BAD_POLICY, VEME_NO_EXECUSER, VEME_CONSUMER_MISMATCH,
  VEME_BAD_TW, VEME_BAD_OWNERSHIP, VEME_NO_PARENT, VEME_BAD_TILE,
  VEME_RECOVER, VEME_NOT_LEAFNODE, VEME_AUTH_FAIL_CRED_EXPIRE, VEME_AUTH_FAIL_CREATE_EXPIRE,
  VEME_AUTH_FAIL_UNKNOWN_USER, VEME_REMOVE_DEF_ADMIN, VEME_LIMERR, VEME_REMOVE_DEF_ADMIN_ROLE,
  VEME_USERNAME_TOO_LONG, VEME_USER_PASSWORD_TOO_LONG, VEME_NO_ADMIN_AUTH, VEME_FILE,
  VEME_CONSUMER_NOT_FOUND_IN_RG, VEME_NOSUCH_PTREE, VEME_NOSUCH_HOSTGROUP, VEME_HOSTGROUP_EXIST,
  VEME_HOSTGROUP_INUSE, VEME_CNSNAME_EXIST , VEME_LOSTFOUND_HG, VEME_SSL_SERVER_AUTH,
  VEME_SSL_PARAM, VEME_SSL, VEME_REFUSE_TS, VEME_NOT_LEAFNODE_IN_HGROUP,
  VEME_SSL_NOT_IMPL, VEME_LOSTFOUND_CONSUMER, VEME_BAD_HOSTPRIORITY, VEME_LOGON_ERROR ,
  VEME_INVALID_RESREQ_4RG, VEME_LAST_ERR
}
 VEM Error codes. More...

Functions

int * __vem_errno_location (void)
 To support multiple thread.
LIBVEM_API char * vem_strerror (int err)
 Convert an errno to a string that describes the error.
LIBVEM_API char * vem_strexitreason (int err)
 Convert an errno to a string that describes the.
LIBVEM_API void vem_perror (const char *str)
 Print VEM error message.

Detailed Description

Define VEM error numbers and helper routines

Enumeration Type Documentation

anonymous enum

Error codes returned by VEM API calls.

Enumerator:
VEME_NO_ERR  0, no error
VEME_BAD_ARG  1, Bad arguments for APIs
VEME_NO_MEM  2, no memory
VEME_XDR  3, VEM XDR error
VEME_NOSUCH_ALLOC  4, No such allocation
VEME_NOT_IMPL  5, service not implemented yet
VEME_NOSUCH_CONTAINER  6, container doesn't exist
VEME_PEM_HOST  7, incorrect container exec host
VEME_STATUS_SEQNO  8, obsolete status update
VEME_STATUS_UPDATE  9, unexpected status update
VEME_PEM_UNREACH  10, pem unreachable
VEME_FORK  11, no more processes
VEME_NO_USER  12, unrecognized user
VEME_PROTOCOL  13, Bad protocol message
VEME_SIG_RETRY  14, cannot deliver signal now
VEME_NO_CONTAINERID  15, No container id can be used
VEME_CONTAINER_FINISH  16, container is in FINISH state
VEME_SIGNALLING  17, container is being signalled
VEME_BAD_HOST  18, unknown or unresolved vem host
VEME_UNREG_CLIENT  19, unregistered client
VEME_BAD_ALLOC_HOST  20, invalid allocated host
VEME_HOST_UNAVAIL  21, vem host unavailable
VEME_CONTAINERID_EXIST  22, container id already in used
VEME_NO_ALLOCATIONID  23, No allocation id can be used
VEME_NAME_INUSE  24, recoverable client name in use
VEME_VEMKD_DOWN  25, vemkd does not respond
VEME_SOCK_SYS  26, socket operation has failed
VEME_TIME_OUT  27, operation timed out
VEME_THREAD_SYS  28, thread operation has failed
VEME_NOSUCH_HGROUP  29 no such host group
VEME_NOSUCH_CONSUMER  30 no such consumer
VEME_SYS  31 system errors, use errno
VEME_UNKNOWN_EVENT  32 unknown vem event
VEME_FILE_FORMAT  33 incorrect file format
VEME_EOF  34 end of status or event file
VEME_NOT_DIR  35 not a directory
VEME_HOST_CLOSE  36 vem host close
VEME_CONTAINER_START  37 pem fails to start container
VEME_BAD_RESREQ  38 bad resource requirement
VEME_BAD_RANGE  39 bad numeric range
VEME_NOSUCH_CLIENT  40 no such client
VEME_CONFIG_SYNTAX  41 bad vem configuration syntax
VEME_BAD_ENV  42 bad configuration environment
VEME_AUTH_FAIL  43 Authentication failed
VEME_NO_PERM  44 Operation not permitted
VEME_NO_AUTH  45 Not authenticated
VEME_XML_FORMAT  46 Not well-formed XML
VEME_XML_PARSE  47 Invalid XML document
VEME_NOSUCH_PARAM  48 No such parameter
VEME_SEC_INIT_FAIL  49 Security libraray initialization failed
VEME_AUTH_ALREADY  50 Already authenticated
VEME_NOSUCH_USERNAME  51 no such vem user
VEME_USERNAME_INUSE  52 vem user name is used
VEME_NOSUCH_USERROLE  53 vem user is not granted the role
VEME_BUSY_CONSUMER  54 consumer has non-zero workload
VEME_CONSUMER_EXIST  55 consumer already exists
VEME_BAD_HOSTGROUP  56 consumer belongs to wrong hostgroup
VEME_BAD_POLICY  57 invalid policy configuration
VEME_NO_EXECUSER  58 No execution user defined
VEME_CONSUMER_MISMATCH  59 Consumer hierarchy is not consistent with server-side configuration
VEME_BAD_TW  60 Bad time window configuration
VEME_BAD_OWNERSHIP  61 Bad ownership configuration
VEME_NO_PARENT  62 Parent of target consumer does not exist
VEME_BAD_TILE  63 Bad resource distribution request
VEME_RECOVER  64 API library is recovering, try later
VEME_NOT_LEAFNODE  65 The consumer is not a leaf consumer in a resource distribution tree associated with any existing resource groups
VEME_AUTH_FAIL_CRED_EXPIRE  66 Authentication failed, credential expired
VEME_AUTH_FAIL_CREATE_EXPIRE  67 Authentication failed, the clock settings of the client host and management host differ
VEME_AUTH_FAIL_UNKNOWN_USER  68 Authentication failed, unknown user
VEME_REMOVE_DEF_ADMIN  69 Cannot remove default cluster admin
VEME_LIMERR  70 LIM operation failed, please refer to daemon log files for details
VEME_REMOVE_DEF_ADMIN_ROLE  71 Cannot remove role from default cluster admin
VEME_USERNAME_TOO_LONG  72 User name length exceeded limit
VEME_USER_PASSWORD_TOO_LONG  73 Password length exceeded limit
VEME_NO_ADMIN_AUTH  74 User is not a cluster admin
VEME_FILE  75 file operation failed
VEME_CONSUMER_NOT_FOUND_IN_RG  76 consumer not found in resource group
VEME_NOSUCH_PTREE  77 Policy tree does not exist
VEME_NOSUCH_HOSTGROUP  78 Resource group does not exist
VEME_HOSTGROUP_EXIST  79 Resource group already exists
VEME_HOSTGROUP_INUSE  80 Some hosts in Resource group are being used
VEME_CNSNAME_EXIST  81 Consumer name already exists
VEME_LOSTFOUND_HG  83 Cannot modify LOST_AND_FOUND hgrp
VEME_SSL_SERVER_AUTH  84 ssl server authentication fail
VEME_SSL_PARAM  85 ssl config parameter error
VEME_SSL  86 generic ssl API failed
VEME_REFUSE_TS  87 request is refused because only security connectin is allowed
VEME_NOT_LEAFNODE_IN_HGROUP  88 The consumer is not a leaf consumer in the resource distribution tree associated with the specified resource group
VEME_SSL_NOT_IMPL  89 SSL communication is not implemented
VEME_LOSTFOUND_CONSUMER  90 Cannot create LOST_AND_FOUND consumer
VEME_BAD_HOSTPRIORITY  91 The host has an invalid host priority. You can only activate a host with a priority within the established range
VEME_LOGON_ERROR  92 client registerred before user logon
VEME_INVALID_RESREQ_4RG  < 93 the specified activity execution user is not EGO OS cluster administrator in single user mode 94 invalid resource requirement for resource group
VEME_LAST_ERR  last error number


Function Documentation

LIBVEM_API char* vem_strerror ( int  err  ) 

Parameters:
vemerrno VEM error number to be converted.
Returns:
return string describing error code

LIBVEM_API char* vem_strexitreason ( int  err  ) 

exit reason of an activity.

Parameters:
err ER_ error number to be converted.
Returns:
return string describing error code

LIBVEM_API void vem_perror ( const char *  str  ) 

Routine produces a message on the standard error output, describing the last error encountered during a VEM API call.

If parameter str is not NULL and *str is not NULL, the string str is printed, followed by a colon and a blank; follow by the error message and a new-line. If str is NULL or *str is NULL, only the error message and a new-line will be printed.

Parameters:
str optional string to precede the error message.
Returns:
void



     
Date Modified: 26 Nov 2007
Platform Computing: www.platform.com

Platform Support: support@platform.com
Platform Information Development: doc@platform.com

Copyright © 2001-2007 Platform Computing Corporation. All rights reserved.