mindxdl--common--errs.go
// Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
// Package common the errors
package common
const (
// Success success code
Success = "00000000"
// PartSuccess success code
PartSuccess = "00000001"
// ErrorNotFoundTraceID not found trace id
ErrorNotFoundTraceID = "00001001"
// ErrorNotFoundUserID not found user id
ErrorNotFoundUserID = "00001002"
// ErrorNotFoundGroupID not found group id
ErrorNotFoundGroupID = "00001003"
// ErrorNotFoundRoleID not found role id
ErrorNotFoundRoleID = "00001004"
// ErrorConvertStr2Uint convert to uint failed
ErrorConvertStr2Uint = "00001005"
// ErrorParseBody parse body failed
ErrorParseBody = "00001006"
// ErrorNotFoundRoleCode not found role code
ErrorNotFoundRoleCode = "00001007"
// ParamError param is not validate
ParamError = "00002000"
// ErrNoLoginInfo not found login info
ErrNoLoginInfo = "00001008"
// ErrTypeConvert type convert error
ErrTypeConvert = "00003000"
// ErrGetHTTPHandler get http/https client failed
ErrGetHTTPHandler = "00004000"
// ErrGetNFSInfo get nfs info failed
ErrGetNFSInfo = "000040001"
// ErrorDBRecordNotFound record not found for db error
ErrorDBRecordNotFound = "00003001"
// ErrorWriteDBFailed write db failed
ErrorWriteDBFailed = "00003002"
// ErrorQueryDBFailed query db failed
ErrorQueryDBFailed = "00003003"
// ErrorDeleteDBFailed delete db failed
ErrorDeleteDBFailed = "00003004"
// ErrorQueryDBCountFailed query db record count failed
ErrorQueryDBCountFailed = "00003005"
// ErrorQueryK8sFailed query info from k8s failed for k8s error
ErrorQueryK8sFailed = "00004001"
// ErrorPermision no permission
ErrorPermision = "00003006"
// LenOfDescriptionInvalid error code for task-manager
LenOfDescriptionInvalid = "12001001"
// LenOfCPUInvalid error code
LenOfCPUInvalid = "12001002"
// LenOfMemoryInvalid error code
LenOfMemoryInvalid = "12001003"
// RangeOfServicePortInvalid error code
RangeOfServicePortInvalid = "12001004"
// RangeOfDeviceNumberInvalid error code
RangeOfDeviceNumberInvalid = "12001005"
// RangeOfArchInvalid error code
RangeOfArchInvalid = "12001006"
// ImageNotFound error code
ImageNotFound = "12001007"
// LenOfCommandInvalid error code
LenOfCommandInvalid = "12001008"
// RangeOfPageSizeInvalid error code
RangeOfPageSizeInvalid = "12001009"
// HpaTargetValueInvalid error code
HpaTargetValueInvalid = "12001010"
// HpaReplicasInvalid error code
HpaReplicasInvalid = "12001011"
// RangeOfAffinityTypeInvalid error code
RangeOfAffinityTypeInvalid = "12001012"
// ParamNotMeetRequirements error code
ParamNotMeetRequirements = "12001013"
// PathNotAbsolute error code
PathNotAbsolute = "12001014"
// ParamIDNotNull param should not have id
ParamIDNotNull = "12001015"
// ParamIsNull param is null
ParamIsNull = "12001016"
// RangeOfReplicasInvalid replicas value invalid
RangeOfReplicasInvalid = "12001017"
// RangeOfDeviceTypeInvalid param deviceType invalid
RangeOfDeviceTypeInvalid = "12001018"
// ParamNfsServerIPInvalid NFS IP Invalid
ParamNfsServerIPInvalid = "12001019"
// LenOfParamDNSRegInvalid param length invalid
LenOfParamDNSRegInvalid = "12001020"
// RequestBodyConvert2StructFailed request json convert to struct error
RequestBodyConvert2StructFailed = "12001030"
// ParamInvalid parameter invalid
ParamInvalid = "12001031"
// ParamParse2DBFiledFailed parse to DB filed failed
ParamParse2DBFiledFailed = "12001032"
// ParamConvert2IntegerFailed convert to integer failed
ParamConvert2IntegerFailed = "12001033"
// ParamDBConvert2StructFailed DB record parse to struct failed
ParamDBConvert2StructFailed = "12001034"
// ParamHpaTargetTypeInvalid hpa target type is invalid
ParamHpaTargetTypeInvalid = "12001035"
// ReadinessProbeContentInvalid probe content invalid
ReadinessProbeContentInvalid = "12001036"
// FieldNotExists field not exits
FieldNotExists = "12001037"
// MultiplyOverFlow multiply overflow
MultiplyOverFlow = "12001038"
// NfsPathInvalid nfs path invalid
NfsPathInvalid = "12001039"
// ExceedLimit exceeded the limit
ExceedLimit = "12001040"
// GetNamespaceFailed get namespace failed
GetNamespaceFailed = "12001041"
// TemplateNameDuplicated the template name is duplicated
TemplateNameDuplicated = "12001042"
// NpuResourceInvalid npu resource invalid
NpuResourceInvalid = "12001043"
// CpuResourceInvalid cpu resource invalid
CpuResourceInvalid = "12001044"
// MemoryResourceInvalid memory resource invalid
MemoryResourceInvalid = "12001045"
// LenOfTemplateDescriptionInvalid error code
LenOfTemplateDescriptionInvalid = "12001046"
// ServiceURLUnAvailable Service url is not available
ServiceURLUnAvailable = "12001047"
// DBRecordNotFound error code
DBRecordNotFound = "12002001"
// DBInsertionFailed insert data to DB failed
DBInsertionFailed = "12002004"
// DBQueryFailed query data from DB failed
DBQueryFailed = "12002005"
// DBDeleteFailed delete data from DB failed
DBDeleteFailed = "12002006"
// DBUpdateFailed update data from DB failed
DBUpdateFailed = "12002007"
// GetK8sClientFailed failed get k8s client
GetK8sClientFailed = "12003001"
// CreateK8sResourceError error code
CreateK8sResourceError = "12003002"
// QueryK8sResourceError error code
QueryK8sResourceError = "12003003"
// DeleteK8sResourceError error code
DeleteK8sResourceError = "12003004"
// UpdateK8sResourceError error code
UpdateK8sResourceError = "12003005"
// RestartK8sServiceFailed restart service failed
RestartK8sServiceFailed = "12003007"
// UpdateK8sServiceFailed update service failed
UpdateK8sServiceFailed = "12003010"
// QueryK8sServiceFailed query service failed
QueryK8sServiceFailed = "12003011"
// QueryK8sPodLogFailed query pod log failed
QueryK8sPodLogFailed = "12003012"
// RepeatStopK8sServiceFailed repeat stop pod failed
RepeatStopK8sServiceFailed = "12003013"
// DeleteResourceError delete resource failed
DeleteResourceError = "12003014"
// GetDashboardDataFail get dashboard data fail
GetDashboardDataFail = "12003015"
// DownloadPodLogFileFailed download pod log file failed
DownloadPodLogFileFailed = "12003016"
// UnknownError unknown error for image-manager
UnknownError = "13000000"
// ParseQueryRequestFailed parse query request failed
ParseQueryRequestFailed = "13001001"
// ParseCountRequestFailed parse count request failed
ParseCountRequestFailed = "13001002"
// ParseDeleteRequestFailed parse delete request failed
ParseDeleteRequestFailed = "13001003"
// ParseCheckRequestFailed parse check request failed
ParseCheckRequestFailed = "13001004"
// QueryFilterNumError query request filter num not equal 1
QueryFilterNumError = "13001005"
// DeleteImageFailed delete image failed
DeleteImageFailed = "13001006"
// DBInsertImageFailed insert image to db failed
DBInsertImageFailed = "13001008"
// DBGetUserIDFailed get data by user id failed
DBGetUserIDFailed = "13001009"
// DBGetImageNameFailed get name by image id failed
DBGetImageNameFailed = "13001013"
// DBCountImageFailed count from DB failed
DBCountImageFailed = "13001014"
// DeleteUserFailed harbor delete user failed
DeleteUserFailed = "13001015"
// UploadFileFailed upload image failed
UploadFileFailed = "13001016"
// ParseImageNameFailed parse image name failed
ParseImageNameFailed = "13001017"
// SaveImageFileFailed parse image name failed
SaveImageFileFailed = "13001018"
// GetImageIDFailed get image id by image name failed
GetImageIDFailed = "13001019"
// UploadImageFailed parse image name failed
UploadImageFailed = "13001020"
// GetUserNameSpaceFailed get namespace failed
GetUserNameSpaceFailed = "13001021"
// UserCheckImageFailed image not belong the user
UserCheckImageFailed = "13001022"
// UploadStatus image is uploading
UploadStatus = "13001023"
// ErrorDatabaseOperateFailed database operate failed for user-manager
ErrorDatabaseOperateFailed = "20000000"
// ErrorUserPermissionDenied user operation denied
ErrorUserPermissionDenied = "20000001"
// ErrorLoginFailed login failed
ErrorLoginFailed = "20000002"
// ErrorDataAlreadyExists ErrorDataAlreadyExists
ErrorDataAlreadyExists = "20000003"
// ErrorUserCountReachedUpperLimit ErrorUserCountReachedUpperLimit
ErrorUserCountReachedUpperLimit = "20000004"
// ErrorModelDeleteUserHaveNotAuth delete user only admin have auth for model-manager
ErrorModelDeleteUserHaveNotAuth = "18001001"
// ErrorModelNameLengthInvalid name length error
ErrorModelNameLengthInvalid = "18001002"
// ErrorModelNameRegexpInvalid name regexp valid failed
ErrorModelNameRegexpInvalid = "18001003"
// ErrorModelDescriptionLengthInvalid description length invalid
ErrorModelDescriptionLengthInvalid = "18001004"
// ErrorModelFrameworkInvalid framework valid failed
ErrorModelFrameworkInvalid = "18001005"
// ErrorModelHaveNotJobInfo model from atc or train and job info invalid
ErrorModelHaveNotJobInfo = "18001006"
// ErrorModelPathInvalid model path valid failed
ErrorModelPathInvalid = "18001007"
// ErrorModelSourceInvalid model source valid failed
ErrorModelSourceInvalid = "18001008"
// ErrorModelVersionCountLimit reach model version count limit
ErrorModelVersionCountLimit = "18001009"
// ErrorModelSortKeyInvalid sort key invalid
ErrorModelSortKeyInvalid = "18001010"
// ErrorModelSortModeInvalid sort mode failed
ErrorModelSortModeInvalid = "18001011"
// ErrorModelGetModels get models failed
ErrorModelGetModels = "18001012"
// ErrorModelUserHaveNotTheModel user doesn't have the model
ErrorModelUserHaveNotTheModel = "18001013"
// ErrorModelCopyModelFilesFailed copy model files failed
ErrorModelCopyModelFilesFailed = "18001014"
// ErrorModelQueryModelFilesFailed query model file list failed
ErrorModelQueryModelFilesFailed = "18001015"
// ErrorModelDownloadModelIDNotExisted download model id not existed
ErrorModelDownloadModelIDNotExisted = "18001016"
// ErrorModelApplySubscribeSvcNameLengthInvalid subscribe model svcName length error
ErrorModelApplySubscribeSvcNameLengthInvalid = "18001017"
// ErrorModelApplySubscribeTaskNameLengthInvalid subscribe model taskName length error
ErrorModelApplySubscribeTaskNameLengthInvalid = "18001018"
// ErrorModelApplySubscribeDuplicate model apply subscribe
ErrorModelApplySubscribeDuplicate = "18001019"
// ErrorSaveModelFileFailed model file from local upload save failed
ErrorSaveModelFileFailed = "18001020"
// ErrorDeleteSubscribeModel can not delete subscribe model
ErrorDeleteSubscribeModel = "18001021"
// ErrorDownloadModelFiles can not download model files
ErrorDownloadModelFiles = "18001022"
// ErrorNotFoundAnyModelFiles can not find any Files
ErrorNotFoundAnyModelFiles = "18001023"
// ErrorModelParseCreateJobReqParam parse create job req failed
ErrorModelParseCreateJobReqParam = "18002001"
// ErrorModelJobNameDuplicate user's job name duplicate
ErrorModelJobNameDuplicate = "18002002"
// ErrorModelJobNameLengthInvalid job name length invalid
ErrorModelJobNameLengthInvalid = "18002003"
// ErrorModelJobNameRegexpInvalid valid job name reg failed
ErrorModelJobNameRegexpInvalid = "18002004"
// ErrorModelJobFrameworkInvalid job's framework invalid
ErrorModelJobFrameworkInvalid = "18002005"
// ErrorModelJobSocVersionInvalid job's socVersion invalid
ErrorModelJobSocVersionInvalid = "18002006"
// ErrorModelJobOutputPathNotExisted job's output path not existed
ErrorModelJobOutputPathNotExisted = "18002007"
// ErrorModelInfoValidFailed valid model info failed
ErrorModelInfoValidFailed = "18002008"
// ErrorModelDeployJobParam parse deploy job req failed
ErrorModelDeployJobParam = "18002009"
// ErrorModelQueryJobStatusInvalid parameter query job by status failed
ErrorModelQueryJobStatusInvalid = "18002010"
// ErrorModelUserHaveNotTheJob user have not the job
ErrorModelUserHaveNotTheJob = "18002011"
// ErrorModelParsePageParam parse page param failed
ErrorModelParsePageParam = "18003001"
// ErrorModelPageSizeRangeInvalid pageSize range invalid
ErrorModelPageSizeRangeInvalid = "18003002"
// ErrorModelMultiplyOverFlow multiply overflow
ErrorModelMultiplyOverFlow = "18003003"
// ErrorModelBatchDeleteFailed batch delete has failed
ErrorModelBatchDeleteFailed = "18003004"
// ErrorModelCurrentPageInvalid currentPage invalid
ErrorModelCurrentPageInvalid = "18003005"
// ErrorModelJobNamespaceLengthInvalid job namespace len invalid
ErrorModelJobNamespaceLengthInvalid = "18002012"
// ErrorModelJobNamespaceRegexpInvalid job namespace reg invalid
ErrorModelJobNamespaceRegexpInvalid = "18002013"
// ErrorModelJobOutputLengthInvalid job output len invalid
ErrorModelJobOutputLengthInvalid = "18002014"
// ErrorModelJobOutputRegexpInvalid job output reg invalid
ErrorModelJobOutputRegexpInvalid = "18002015"
// ErrorModelJobConfFileNotExisted job insert op config not existed
ErrorModelJobConfFileNotExisted = "18002016"
// ErrorModelGetGroupInfoFailed get group info failed
ErrorModelGetGroupInfoFailed = "18002017"
// ErrorModelGroupQuotaNotEnough group quota not enough
ErrorModelGroupQuotaNotEnough = "18002018"
// ErrorModelCheckQuotaFailed check quota failed
ErrorModelCheckQuotaFailed = "18002019"
// ErrorModelJobGetJobs get jobs failed
ErrorModelJobGetJobs = "18002020"
// ErrorModelJobOutputPathInvalid output path invalid
ErrorModelJobOutputPathInvalid = "18002021"
// ErrorModelFilePathInvalid Model file path invalid
ErrorModelFilePathInvalid = "18002022"
// ErrorModelFileNotSupport Modle file not support
ErrorModelFileNotSupport = "18002023"
// ErrorModelNotMatchFrameWork model not match framework
ErrorModelNotMatchFrameWork = "18002024"
// ErrorModelDeployJobParamAndRollBack create vcjob failed and roll back failed
ErrorModelDeployJobParamAndRollBack = "18002025"
// CreateFolderFailed create new folder failed data-manager
CreateFolderFailed = "14002001"
// DeleteFolderFailed delete folder failed
DeleteFolderFailed = "14002002"
// FolderOrFileNameFormatErr failed to parameters folder or file name
FolderOrFileNameFormatErr = "14002003"
// FolderOrFileNameLenErr out of the file name length
FolderOrFileNameLenErr = "14002004"
// CurrentPathMustFolder here current path cannot represent a file
CurrentPathMustFolder = "14002005"
// CurrentPathAbsFailed absolutization currentPath failed
CurrentPathAbsFailed = "14002006"
// CurrentPathNotAbsPath the input path is not an absolute path
CurrentPathNotAbsPath = "14002007"
// CurrentPathIsIllegal file path is illegal
CurrentPathIsIllegal = "14002008"
// CurrentPathIsBuildIn file path is build in path, cannot access
CurrentPathIsBuildIn = "14002009"
// SearchFileErr an error occurred when searching by name, the search stopped
SearchFileErr = "14003001"
// RemoveFileErr delete files failed
RemoveFileErr = "14003002"
// ReadFileListError error occurred when reading the file list in the specified path
ReadFileListError = "14003003"
// UploadWaitingErr waiting in a queue for uploading files
UploadWaitingErr = "14003004"
// CleanUserErr clean user files failed
CleanUserErr = "14003005"
// DownloadWayErr download file's param error
DownloadWayErr = "14003006"
// ErrorGenerateSftpNameStrFailed generate sftp service name failed
ErrorGenerateSftpNameStrFailed = "14003007"
// CalculateSystemStorageErr failed to obtain the storage resources of the system quota
CalculateSystemStorageErr = "14004001"
// CalculateSpaceUsageErr get user own space usage failed
CalculateSpaceUsageErr = "14004002"
// WriteFolderContentsErr write the folder's contents to the compressed package failed
WriteFolderContentsErr = "14004003"
// CreateCompressedFileErr failed to create a compressed file
CreateCompressedFileErr = "14004004"
// DelOriginCompressedFileErr failed to delete the original compressed file
DelOriginCompressedFileErr = "14004005"
// OpenZipCompressedErr failed to open zip
OpenZipCompressedErr = "14004006"
// FileSpecExceedsUpper the file size exceeds the upper 10G
FileSpecExceedsUpper = "14004007"
// InsufficientAvailableSpace not enough space for upload files
InsufficientAvailableSpace = "14004008"
// SourceExists the target to be accessed already exists
SourceExists = "14005001"
// SourceNotExists the target to be accessed is not exist
SourceNotExists = "14005002"
// MaxFolderCountErr the count of folder exceeded the limit
MaxFolderCountErr = "14005003"
// GetNodePortErr get nodeport failed
GetNodePortErr = "14005004"
// CheckSftpPassErr check sftp password failed
CheckSftpPassErr = "14005005"
// CheckSftpCountErr check sftp count failed
CheckSftpCountErr = "14005006"
// GetUserErr get user info failed
GetUserErr = "14005007"
// GetNfsOrCephfsErr get nfs or cephfs info failed
GetNfsOrCephfsErr = "14005008"
// CheckSftpStatusErr check sftp pod status failed
CheckSftpStatusErr = "14005009"
// ErrorUpdateBaseJobInfo failed to update base job info for train-manager
ErrorUpdateBaseJobInfo = "17000001"
// ErrorGetK8sClient failed to get k8s client
ErrorGetK8sClient = "17000002"
// ErrorCreateK8sResource failed to create k8s resource
ErrorCreateK8sResource = "17000003"
// ErrorJobNameLengthInvalid job name length invalid
ErrorJobNameLengthInvalid = "17000004"
// ErrorJobNameRegexpInvalid valid job name reg failed
ErrorJobNameRegexpInvalid = "17000005"
// ErrorJobDescriptionLengthInvalid description length invalid
ErrorJobDescriptionLengthInvalid = "17000006"
// ErrorPathInvalid path valid failed
ErrorPathInvalid = "17000007"
// ErrorJobNamespaceLengthInvalid job namespace len invalid
ErrorJobNamespaceLengthInvalid = "17000008"
// ErrorJobNamespaceRegexpInvalid job namespace reg invalid
ErrorJobNamespaceRegexpInvalid = "17000009"
// ErrorJobDeviceTypeInvalid job's device type invalid
ErrorJobDeviceTypeInvalid = "17000010"
// ErrorJobListPageSizeRangeInvalid pageSize range invalid when query job list
ErrorJobListPageSizeRangeInvalid = "17000011"
// ErrorJobListMultiplyOverFlow multiply overflow
ErrorJobListMultiplyOverFlow = "17000012"
// ErrorJobCPUResTypeInvalid job's cpu res type invalid
ErrorJobCPUResTypeInvalid = "17000013"
// ErrorJobDeviceCountInvalid job's device count invalid
ErrorJobDeviceCountInvalid = "17000014"
// ErrorQueryJobIDsByUserFailed query user's job id list failed
ErrorQueryJobIDsByUserFailed = "17000015"
// ErrorQueryJobTypeFailed Failed query job id type failed
ErrorQueryJobTypeFailed = "17000016"
// ErrorJobType invalid job type in train manager
ErrorJobType = "17000017"
// ErrorQueryJobStatisticFailed query job statistic failed
ErrorQueryJobStatisticFailed = "17000018"
// ErrorDeploymentReplicasesInvalid invalid replicases for deployment
ErrorDeploymentReplicasesInvalid = "17000019"
// ErrorNoCPUAndMemoryInvalid no cpu and memory when isCustomSpecification is true
ErrorNoCPUAndMemoryInvalid = "17000020"
// ErrorBoolParamsInvalid bool params valid failed
ErrorBoolParamsInvalid = "17000021"
// ErrorRoleTypeInvalid invalid role type
ErrorRoleTypeInvalid = "17000022"
// ErrorFrameValueInvalid invalid frame value
ErrorFrameValueInvalid = "17000023"
// ErrorEnvWithKeyWordInvalid invalid env
ErrorEnvWithKeyWordInvalid = "17000024"
// ErrorCmdOrParamsWithKeyWordInvalid invalid cmd params for str "need_freeze"
ErrorCmdOrParamsWithKeyWordInvalid = "17000025"
// ErrorQueryTrainManagerJob failed to query job of train manager
ErrorQueryTrainManagerJob = "17000026"
// ErrorQueryTrainManagerJobList failed to query job list of train manager
ErrorQueryTrainManagerJobList = "17000027"
// ErrorQueryTrainManagerJobInDeleting failed to query job in deleting process
ErrorQueryTrainManagerJobInDeleting = "17000028"
// ErrorQueryTrainManagerJobSortKeyInvalid parameter query job list by sort key invalid
ErrorQueryTrainManagerJobSortKeyInvalid = "17000029"
// ErrorInitTrainManagerJobBackendInstance failed to initialize job instance in backend
ErrorInitTrainManagerJobBackendInstance = "17000030"
// ErrorJobCheckQuotaFailed check quota failed
ErrorJobCheckQuotaFailed = "17000031"
// ErrorCustomDefinePathInvalid path custom define path invalid
ErrorCustomDefinePathInvalid = "17000032"
// ErrorQueryImageFailed query image failed
ErrorQueryImageFailed = "17000033"
// ErrorQueryModelFailed query model failed
ErrorQueryModelFailed = "17000034"
// ErrorQueryDatasetFailed query dataset failed
ErrorQueryDatasetFailed = "17000035"
// ErrorQueryFileInfoFailed query file path info failed
ErrorQueryFileInfoFailed = "17000036"
// ErrorInitSpecificationFailed init specification info failed
ErrorInitSpecificationFailed = "17000037"
// ErrorNamespaceInvalid invalid namespace from request
ErrorNamespaceInvalid = "17000038"
// ErrorSameJobName the current job name already exists
ErrorSameJobName = "17000039"
// ErrorGenerateNotebookURLFailed failed to generate notebook url
ErrorGenerateNotebookURLFailed = "17000040"
// ErrorMarshalDataFailed failed to marshal data
ErrorMarshalDataFailed = "17000041"
// ErrorDuplicatePath duplicate path
ErrorDuplicatePath = "17000042"
// ErrorInvalidFaultReschedulingMode duplicate path
ErrorInvalidFaultReschedulingMode = "17000043"
// ErrorInitVisualReq Init visual Req fail
ErrorInitVisualReq = "17000044"
// ErrorDeviceTypeForTrainJob invalid device type of the train job
ErrorDeviceTypeForTrainJob = "17000045"
// ErrorNeedCmd need cmd when create train job
ErrorNeedCmd = "17000046"
// ErrorEmptyPath empty script path or log path or output path
ErrorEmptyPath = "17000047"
// ErrorTrainJobReplicases the number of replicase in a train job cannot be 0 or a negative number
ErrorTrainJobReplicases = "17000048"
// ErrorDevJobType invalid develop job type
ErrorDevJobType = "17000049"
// ErrorPubKey invalid pub key
ErrorPubKey = "17000050"
// ErrorPathDuplication Duplicated Path
ErrorPathDuplication = "17000051"
// ErrorGetNodePort Get NodePort error
ErrorGetNodePort = "17000052"
// ErrorStatusInQueryTrainJobStatistic invalid train job status during quering job statistic
ErrorStatusInQueryTrainJobStatistic = "17001001"
// ErrorQueryTrainJobStatusInvalid parameter query train job list by status failed
ErrorQueryTrainJobStatusInvalid = "17001002"
// ErrorDeleteTrainJob failed to delete train job in deleting process
ErrorDeleteTrainJob = "17001003"
// ErrorQueryTrainJobWhenCreateVisualJob failed to query train job info in visual creating process
ErrorQueryTrainJobWhenCreateVisualJob = "17002001"
// ErrorDeleteVisualJob failed to delete visual job in deleting process
ErrorDeleteVisualJob = "17002002"
// ErrorVisualURLUnAvailable visual url is not available
ErrorVisualURLUnAvailable = "17002003"
// ErrorQueryDevOrVisualJobStatusInvalid parameter query develop/visual job list by status failed
ErrorQueryDevOrVisualJobStatusInvalid = "17003001"
// ErrorStatusInQueryDevOrVisualJobStatistic invalid develop job status during querying job statistic
ErrorStatusInQueryDevOrVisualJobStatistic = "17003002"
// ErrorDeleteDevelopJob failed to delete develop job in deleting process
ErrorDeleteDevelopJob = "17003003"
// ErrorNotebookURLUnAvailable notebook url is not available
ErrorNotebookURLUnAvailable = "17003004"
// ErrorTemplateSameName template name exist same
ErrorTemplateSameName = "17003005"
// CreateNodeError 19001001 for edge-manager
CreateNodeError = "19001001"
// ListNodesError 19001002
ListNodesError = "19001002"
// DeleteNodeDBError 19001003
DeleteNodeDBError = "19001003"
// DeleteNodeResourceError 19001004
DeleteNodeResourceError = "19001004"
// GetTokenError 19005000
GetTokenError = "19001005"
// CreateTemplateError 19001006
CreateTemplateError = "19001006"
// GetTemplateError 19001007
GetTemplateError = "19001007"
// GetTemplateListError 19001008
GetTemplateListError = "19001008"
// DeleteTemplateError 19001009
DeleteTemplateError = "19001009"
// DeployAppError 19001010
DeployAppError = "19001010"
// UpdateAppError 19001011
UpdateAppError = "19001011"
// ListAppByNodeError 19001012
ListAppByNodeError = "19001012"
// UndeployAppError 19001013
UndeployAppError = "19001013"
// DashBoardError 19001014
DashBoardError = "19001014"
// QuaryNodesError 19001015
QuaryNodesError = "19001015"
// QuaryNodeStatusNumError 19001016
QuaryNodeStatusNumError = "19001016"
// ErrorNodeBatchDelete 19001017
ErrorNodeBatchDelete = "19001017"
// ErrorDeleteUserHaveNotAuth 19001018
ErrorDeleteUserHaveNotAuth = "19001018"
// GetTableNumFailed 19002001
GetTableNumFailed = "19002001"
// TableExceedLimit 19002002
TableExceedLimit = "19002002"
// ErrorNodeName 19002003
ErrorNodeName = "19002003"
// ErrorTemplateName 19002004
ErrorTemplateName = "19002004"
// ValidPageError 19002005
ValidPageError = "19002005"
// ValidNodeInputError 19002006
ValidNodeInputError = "19002006"
// PasswordWeak 19002007
PasswordWeak = "19002007"
// ErrorDeleteK8sResource 19002008
ErrorDeleteK8sResource = "19002008"
// ErrorQueryAlarmInDelete 23001001
ErrorQueryAlarmInDelete = "23001001"
// ErrorCreateHistoryAlarm 23001002
ErrorCreateHistoryAlarm = "23001002"
// ErrorCreateShieldAlarm 23001003
ErrorCreateShieldAlarm = "23001003"
// ErrorUpdateAlarm 23001004
ErrorUpdateAlarm = "23001004"
// ErrorCountAlarm 23001005
ErrorCountAlarm = "23001005"
// ErrorParam 23001006
ErrorParam = "23001006"
// ErrorCreateRule 23001007
ErrorCreateRule = "23001007"
// ErrorDeleteRule 23001008
ErrorDeleteRule = "23001008"
// ErrorQueryRule 23001009
ErrorQueryRule = "23001009"
// ErrorEffectiveRule 23001010
ErrorEffectiveRule = "23001010"
// ErrorInvalidateRule = 23001011"
ErrorInvalidateRule = "23001011"
// ErrorCountRule = 23001012"
ErrorCountRule = "23001012"
)
// ErrorMap error code and error msg map
var ErrorMap = map[string]string{
// Success success code
Success: "success",
// PartSuccess success code
PartSuccess: "part success",
// ErrorNotFoundTraceID not found trace id
ErrorNotFoundTraceID: "can't found trace ID from header",
// ErrorNotFoundUserID not found user id
ErrorNotFoundUserID: "can't found user ID from header",
// ErrorNotFoundGroupID not found group id
ErrorNotFoundGroupID: "can't found group ID from header",
// ErrorNotFoundRoleID not found role id
ErrorNotFoundRoleID: "can't found role ID from header",
// ErrorNotFoundRoleCode not found role code
ErrorNotFoundRoleCode: "can't found role Code from header",
// ErrorConvertStr2Uint convert to uint failed
ErrorConvertStr2Uint: "convert parameter to integer failed",
// ErrorParseBody parse body failed
ErrorParseBody: "parse request body failed",
ParamError: "the param is not validate",
ErrNoLoginInfo: "no login info in header",
ErrTypeConvert: "type convert error",
ErrGetNFSInfo: "get nfs info failed",
// ErrGetHTTPHandler get http/https client failed
ErrGetHTTPHandler: "get http/https client failed",
// ErrorDBRecordNotFound record not found
ErrorDBRecordNotFound: "no record found in database",
// ErrorWriteDBFailed write db failed
ErrorWriteDBFailed: "write record to db failed",
// ErrorQueryDBFailed query db failed
ErrorQueryDBFailed: "query db record failed",
// ErrorDeleteDBFailed delete db failed
ErrorDeleteDBFailed: "delete db failed",
// ErrorQueryDBCountFailed query db record count failed
ErrorQueryDBCountFailed: "query database records count failed",
// ErrorQueryK8sFailed query info from k8s failed for k8s error
ErrorQueryK8sFailed: "query k8s info failed",
// ErrorPermmsion no permission
ErrorPermision: "no permission",
// task-manager
// LenOfDescriptionInvalid description len invalid
LenOfDescriptionInvalid: "The length of the description parameter is invalid, must be in range [0, 1024]",
// LenOfCpuInvalid cpu len invalid
LenOfCPUInvalid: "The length of the CPU parameter is invalid, must be in range [1, 32]",
// LenOfMemoryInvalid memory len invalid
LenOfMemoryInvalid: "The length of the Memory parameter is invalid, must be in range [1, 32]",
// RangeOfServicePortInvalid servicePort range invalid
RangeOfServicePortInvalid: "The servicePort parameter must be in range (1024, 65535]",
// RangeOfDeviceNumberInvalid deviceNumber range invalid
RangeOfDeviceNumberInvalid: "The deviceNumber parameter must be in range [1, 32]",
// RangeOfArchInvalid arch invalid
RangeOfArchInvalid: "The arch parameter only support 'arm64' or 'amd64'",
// ImageNotFound image invalid
ImageNotFound: "Specified image not found",
// LenOfCommandInvalid command invalid
LenOfCommandInvalid: "The length of the command parameter is invalid, must be in range [0, 256]",
// RangeOfPageSizeInvalid pageSize invalid
RangeOfPageSizeInvalid: "The pageSize parameter must be in range [1, 100]",
// HpaTargetValueInvalid hpaTargetValue invalid
HpaTargetValueInvalid: "The parameter hpaTargetValue invalid, must be a positive number with no leading " +
"zeros and optionally with k or m appended as unit",
// HpaReplicasInvalid hpaReplicas invalid
HpaReplicasInvalid: "The parameter hpaMinReplicas cannot be greater than hpaMaxReplicas and " +
"both of them cannot be less than 0",
// RangeOfAffinityTypeInvalid affinityType invalid
RangeOfAffinityTypeInvalid: "The affinityType parameter only support 'chip' or 'card'",
// ParamNotMeetRequirements param invalid
ParamNotMeetRequirements: " parameter does not meet the specification requirements",
// PathNotAbsolute path invalid
PathNotAbsolute: "Not absolute path",
// ParamIDNotNull param should not have id
ParamIDNotNull: "The parameter should not have id",
// ParamIsNull param is null
ParamIsNull: " parameter is null",
// RangeOfReplicasInvalid replicas value invalid
RangeOfReplicasInvalid: "The replicas parameter must be in range [1, 32]",
// RangeOfDeviceTypeInvalid
RangeOfDeviceTypeInvalid: "The deviceType parameter only support 'Ascend310'",
// ParamNfsServerIPInvalid
ParamNfsServerIPInvalid: "The nfsServerIP parameter invalid",
// LenOfParamDNSRegInvalid param length invalid
LenOfParamDNSRegInvalid: " parameter len invalid",
// RequestBodyConvert2StructFailed request json convert to struct error
RequestBodyConvert2StructFailed: "convert request body json failed, maybe value in some fields with error type",
// ParamInvalid parameter invalid
ParamInvalid: " parameter invalid",
// ParamParse2DBFiledFailed parse to DB failed
ParamParse2DBFiledFailed: "parse parameter to database filed failed",
// ParamConvert2IntegerFailed convert to integer failed
ParamConvert2IntegerFailed: " parameter convert to positive integer failed",
// ParamDBConvert2StructFailed DB record parse to struct failed
ParamDBConvert2StructFailed: "database filed data convert failed",
// ParamHpaTargetTypeInvalid hpa target type is invalid
ParamHpaTargetTypeInvalid: "hpa target type is invalid",
// ReadinessProbeContentInvalid field int probe must be not nil and valid parameter
ReadinessProbeContentInvalid: " is empty or some fields have invalid value",
// FieldNotExists field is required
FieldNotExists: " field is required",
// MultiplyOverFlow multiply overflow
MultiplyOverFlow: "currentPage and pageSize multiply overflow",
// NfsPathInvalid nfs path invalid
NfsPathInvalid: " local path invalid or the path include symbolic link",
// ExceedLimit exceeded the limit
ExceedLimit: "exceeds the specification limit, max value is 1000",
// GetNamespaceFailed get namespace failed
GetNamespaceFailed: "get namespace failed",
// TemplateNameDuplicated template name duplicated
TemplateNameDuplicated: "template name duplicated",
// NpuResourceInvalid npu resource invalid
NpuResourceInvalid: "group resource of cpu ",
// CpuResourceInvalid cpu resource invalid
CpuResourceInvalid: "The CPU resources do not meet the inference service requirements",
// MemoryResourceInvalid memory resource invalid
MemoryResourceInvalid: "The memory resources do not meet the inference service requirements",
// LenOfTemplateDescriptionInvalid error code
LenOfTemplateDescriptionInvalid: "The length of template description limit, max value is 1024",
// ServiceURLUnAvailable Service url is not available
ServiceURLUnAvailable: "inference service url is available",
// database error code
// DBRecordNotFound record not found
DBRecordNotFound: "Database record not found",
// DBInsertionFailed insert data to DB failed
DBInsertionFailed: "Insert record to database failed",
// DBQueryFailed query data from DB failed
DBQueryFailed: "Query record from database failed",
// DBDeleteFailed delete data from DB failed
DBDeleteFailed: "Delete database record failed",
// DBUpdateFailed update data from DB failed
DBUpdateFailed: "Update database record failed",
// k8s error code
// GetK8sClientFailed failed get k8s client
GetK8sClientFailed: "Initialize k8s client failed",
// CreateK8sResourceError create error
CreateK8sResourceError: "Create k8s resource failed",
// QueryK8sResourceError query error
QueryK8sResourceError: "Query k8s resource failed",
// DeleteK8sResourceError delete error
DeleteK8sResourceError: "Delete k8s resource failed",
// UpdateK8sResourceError update error
UpdateK8sResourceError: "Update k8s resource failed",
// RestartK8sServiceFailed restart service failed
RestartK8sServiceFailed: "Restart service failed",
// UpdateK8sServiceFailed update service failed
UpdateK8sServiceFailed: "Update service failed",
// QueryK8sServiceFailed query service failed
QueryK8sServiceFailed: "Query service failed",
// QueryK8sPodLogFailed query pod log failed
QueryK8sPodLogFailed: "Query service pod log failed",
// RepeatStopK8sServiceFailed repeat stop pod failed
RepeatStopK8sServiceFailed: "Repeat stop service failed",
// DeleteResourceError Delete resource failed
DeleteResourceError: "Delete resource failed",
// GetDashboardDataFail get dashboard data fail
GetDashboardDataFail: "Get dashboard data failed",
// DownloadPodLogFileFailed download pod log file failed
DownloadPodLogFileFailed: "download pod log file failed",
// image-manager
// UnknownError unknown error
UnknownError: "unknown error",
// ParseQueryRequestFailed parse query request body failed
ParseQueryRequestFailed: "query request parameter decode failed, please check your request parameter",
// ParseCountRequestFailed parse count request header failed
ParseCountRequestFailed: "count request header parameter decode failed, please check your request parameter",
// ParseDeleteRequestFailed parse delete request failed
ParseDeleteRequestFailed: "delete request header parameter decode failed, please check your request parameter",
// QueryFilterNumError query request filter num not equal 1
QueryFilterNumError: "query request filter num must be 1, please check your request filter",
// DeleteImageFailed delete image failed
DeleteImageFailed: "delete image failed, please check your request parameter",
// DBInsertImageFailed insert image to db failed
DBInsertImageFailed: "insert image to db failed",
// DBGetUserIDFailed get data by user id failed
DBGetUserIDFailed: "get data by user id failed",
// DBGetImageNameFailed get name by image id failed
DBGetImageNameFailed: "get name by image id failed",
// DBCountImageFailed count from DB failed
DBCountImageFailed: "count image from DB failed",
// DeleteUserFailed delete image failed
DeleteUserFailed: "delete user failed",
// UploadFileFailed upload image failed
UploadFileFailed: "upload image failed",
// ParseImageNameFailed parse image name failed
ParseImageNameFailed: "parse image name from json failed",
// ParseCheckRequestFailed parse add request failed
ParseCheckRequestFailed: "parse check image parameter decode failed, please check your request parameter",
// GetImageIDFailed get image id by image name failed
GetImageIDFailed: "get prefabricated image id failed, please check your image name and tag",
// SaveImageFileFailed parse image name failed
SaveImageFileFailed: "save image file failed",
// UploadImageFailed parse image name failed
UploadImageFailed: "upload image failed",
// GetUserNameSpaceFailed get namespace failed
GetUserNameSpaceFailed: "get user namespace failed",
// UserCheckImageFailed user check image failed
UserCheckImageFailed: "user have no permission to use the image",
// UploadStatus upload
UploadStatus: "image is uploading",
// user-manager
ErrorUserPermissionDenied: "you do not have permission to perform this operation",
ErrorDatabaseOperateFailed: "database operate failed",
ErrorDataAlreadyExists: "data already exits",
ErrorLoginFailed: "incorrect username or password",
ErrorUserCountReachedUpperLimit: "the number of users of this role has reached the upper limit",
// model-manager
ErrorModelNameLengthInvalid: "parameter model's name length invalid, the range [1, 64]",
ErrorModelNameRegexpInvalid: "parameter model's name can't meet requirement",
ErrorModelDescriptionLengthInvalid: "parameter description length invalid",
ErrorModelFrameworkInvalid: "parameter model's framework invalid, should be [MindSpore/TensorFlow/PyTorch" +
"/AscendOM]",
ErrorModelPathInvalid: "parameter path can't meet requirement",
ErrorModelSourceInvalid: "parameter source invalid, must be [TrainJob/AtcJob/Upload]",
ErrorModelSortKeyInvalid: "parameter sort key invalid",
ErrorModelSortModeInvalid: "parameter sort mode failed, should be [desc/asc]",
ErrorModelGetModels: "query models failed",
ErrorModelJobGetJobs: "query jobs failed",
ErrorModelParsePageParam: "parameter currentPage or pageSize invalid",
ErrorModelParseCreateJobReqParam: "parse request parameter failed",
ErrorModelDeployJobParam: "create job failed",
ErrorModelQueryJobStatusInvalid: "query job by status failed, should be [running/completed/waiting]",
ErrorModelCopyModelFilesFailed: "copy user's model files failed",
ErrorModelQueryModelFilesFailed: "query model files failed",
ErrorModelDownloadModelIDNotExisted: "download model id is not existed",
ErrorModelApplySubscribeSvcNameLengthInvalid: "parameter subscription's svcName length invalid, the range [1, 64]",
ErrorModelApplySubscribeTaskNameLengthInvalid: "parameter subscription's taskName length invalid, the range [1, 64]",
ErrorModelApplySubscribeDuplicate: "apply subscribe duplicate",
ErrorSaveModelFileFailed: "model file from local upload save failed",
ErrorDeleteSubscribeModel: "can not delete subscribe model",
ErrorDownloadModelFiles: "can not download model files",
ErrorNotFoundAnyModelFiles: "can not find any Files",
ErrorModelJobNameDuplicate: "same user's job name duplicate",
ErrorModelBatchDeleteFailed: "batch delete has part failed",
ErrorModelInfoValidFailed: "valid model info failed",
ErrorModelUserHaveNotTheModel: "user doesn't have the model",
ErrorModelUserHaveNotTheJob: "user have not this job",
ErrorModelVersionCountLimit: "reach the max model version count limit",
ErrorModelJobNameLengthInvalid: "parameter job's name length invalid, the range [1, 50]",
ErrorModelJobNameRegexpInvalid: "parameter job's name can't meet requirement",
ErrorModelJobFrameworkInvalid: "parameter job's framework invalid, should be [MindSpore/TensorFlow/PyTorch]",
ErrorModelJobSocVersionInvalid: "parameter job's socVersion invalid, should be [Ascend310/Ascend910A]",
ErrorModelJobOutputPathNotExisted: "parameter job's output path is not existed",
ErrorModelPageSizeRangeInvalid: "parameter pageSize parameter should be in range [1, 100]",
ErrorModelCurrentPageInvalid: "parameter currentPage should be greater than 0",
ErrorModelMultiplyOverFlow: "currentPage and pageSize multiply overflow",
ErrorModelHaveNotJobInfo: "create model have not job info",
ErrorModelDeleteUserHaveNotAuth: "only admin user can delete user",
ErrorModelJobNamespaceLengthInvalid: "parameter namespace length invalid",
ErrorModelJobNamespaceRegexpInvalid: "parameter namespace can't meet requirement",
ErrorModelJobOutputLengthInvalid: "parameter output length invalid",
ErrorModelJobOutputRegexpInvalid: "parameter output can't meet requirement",
ErrorModelJobConfFileNotExisted: "insertOpConf file not existed",
ErrorModelGetGroupInfoFailed: "get group info from cluster manager failed",
ErrorModelGroupQuotaNotEnough: "group resource quota not enough",
ErrorModelCheckQuotaFailed: "check group resource quota failed",
ErrorModelJobOutputPathInvalid: "parameter job's output path is invalid",
ErrorModelFilePathInvalid: "model file path invalid",
ErrorModelFileNotSupport: "model file not support",
ErrorModelNotMatchFrameWork: "model not match framework",
ErrorModelDeployJobParamAndRollBack: "create job failed and roll back database failed",
// data-manager
// CreateFolderFailed create a new folder failed
CreateFolderFailed: "create new folder failed",
// DeleteFolderFailed delete a folder failed
DeleteFolderFailed: "delete folder failed",
// FolderOrFileNameFormatErr parameters folder or file name format error
FolderOrFileNameFormatErr: "folder or file name format error",
// FolderOrFileNameLenErr out of file name length
FolderOrFileNameLenErr: "folder or file name length is not within the valid range",
// CurrentPathMustFolder here current path cannot represent a file
CurrentPathMustFolder: "here, current path cannot represent a file",
// CurrentPathAbsFailed absolutization currentPath failed
CurrentPathAbsFailed: "current path absolutization failed",
// CurrentPathNotAbsPath input path is not an absolute path
CurrentPathNotAbsPath: "the input paras current path is not an absolute path",
// CurrentPathIsIllegal file path is illegal
CurrentPathIsIllegal: "file path is illegal",
// CurrentPathIsBuildIn file path is build in path, cannot access
CurrentPathIsBuildIn: "file path is build in path, cannot access",
// SearchFileErr an error occurred when searching by name, the search stopped
SearchFileErr: "an error occurred when searching by name, the search stopped",
// RemoveFileErr delete files failed
RemoveFileErr: "failed to delete files",
// ReadFileListError error occurred when reading the file list in the specified path
ReadFileListError: "reading the file list error in the specified path",
// UploadWaitingErr waiting in a queue for uploading files
UploadWaitingErr: "the upload channel is full, please try again later",
// CleanUserErr clean user files failed
CleanUserErr: "clean user and related files failed",
// DownloadWayErr download file's param error
DownloadWayErr: "download file's param error",
// ErrorGenerateSftpNameStrFailed generate sftp service name failed
ErrorGenerateSftpNameStrFailed: "encrypt sftp service name string failed",
// CalculateSystemStorageErr failed to obtain the storage resources of the system quota
CalculateSystemStorageErr: "failed to get all group's storage resources",
// CalculateSpaceUsageErr get user own space usage failed
CalculateSpaceUsageErr: "failed to get user own space usage",
// WriteFolderContentsErr write the folder's contents to the compressed package failed
WriteFolderContentsErr: "write the folder's contents to the compressed package failed",
// CreateCompressedFileErr failed to create a compressed file
CreateCompressedFileErr: "failed to create a compressed file to store the content to be downloaded",
// DelOriginCompressedFileErr failed to delete the original compressed file
DelOriginCompressedFileErr: "failed to delete the original compressed file",
// OpenZipCompressedErr failed to open xxx.zip
OpenZipCompressedErr: "failed to open xxx.zip",
// FileSpecExceedsUpper the file size exceeds the upper 10G
FileSpecExceedsUpper: "file size can not exceeds the upper limit",
// InsufficientAvailableSpace not enough space for upload files
InsufficientAvailableSpace: "not enough free space for upload files",
// SourceExists the target to be accessed already exists
SourceExists: "server visit a exist file",
// SourceNotExists the target to be accessed is not exist
SourceNotExists: "server visit a not exist file",
// MaxFolderCountErr the count of folder exceeded the limit
MaxFolderCountErr: "the count of folder exceeded the limit in same hierarchy",
// GetNodePortErr get nodeport failed
GetNodePortErr: "get nodeport failed",
// CheckSftpPassErr check sftp password failed
CheckSftpPassErr: "check sftp password failed",
// CheckSftpCountErr check sftp count failed
CheckSftpCountErr: "check sftp count failed",
// GetUserErr get user info failed
GetUserErr: "get user info failed",
// GetNfsOrCephfsErr get nfs or cephfs info failed
GetNfsOrCephfsErr: "get nfs or cephfs info failed",
// CheckSftpStatusErr check sftp pod status failed
CheckSftpStatusErr: "check sftp pod status failed",
// train-manager
// ErrorRoleTypeInvalid invalid role type
ErrorRoleTypeInvalid: "invalid role type, please ensure you are a system manager",
// ErrorUpdateBaseJobInfo failed to update base job info
ErrorUpdateBaseJobInfo: "failed to update base job info",
// ErrorGetK8sClient failed to get k8s client
ErrorGetK8sClient: "failed to get k8s client",
// ErrorCreateK8sResource failed to create k8s resource
ErrorCreateK8sResource: "failed to create k8s resource",
// ErrorJobNameLengthInvalid job name length invalid
ErrorJobNameLengthInvalid: "invalid length of job's name",
// ErrorJobNameRegexpInvalid valid job name reg failed
ErrorJobNameRegexpInvalid: "job's name failed to meet requirement",
// ErrorJobDescriptionLengthInvalid description length invalid
ErrorJobDescriptionLengthInvalid: "invalid length of job's description",
// ErrorPathInvalid path valid failed
ErrorPathInvalid: "invalid file path",
// ErrorBoolParamsInvalid bool params valid failed
ErrorBoolParamsInvalid: "invalid bool praram of trainCmdParams, please input [True/False]",
// ErrorJobNamespaceLengthInvalid job namespace len invalid
ErrorJobNamespaceLengthInvalid: "invalid length of job's namespace",
// ErrorJobNamespaceRegexpInvalid job namespace reg invalid
ErrorJobNamespaceRegexpInvalid: "job's namespace failed to meet requirement",
// ErrorJobDeviceTypeInvalid job's device type invalid
ErrorJobDeviceTypeInvalid: "invalid job's specification type, please choose CPU/NPU910/NPU310P/NPU310",
// ErrorJobCPUResTypeInvalid job's cpu res type invalid
ErrorJobCPUResTypeInvalid: "invalid job's cpu res type, please choose 0/1/2",
// ErrorJobDeviceCountInvalid job's device count invalid
ErrorJobDeviceCountInvalid: "invalid job's device count, please choose 1/2/4/8",
// ErrorDeploymentReplicasesInvalid invalid replicases for deployment
ErrorDeploymentReplicasesInvalid: "invalid job's replicases for deployment when create develop/visual job, " +
"the value must be 1",
// ErrorNoCPUAndMemoryInvalid no cpu and memory when isCustomSpecification is true
ErrorNoCPUAndMemoryInvalid: "no cpu and memory when custom specification",
// ErrorJobListPageSizeRangeInvalid pageSize range invalid when query job list
ErrorJobListPageSizeRangeInvalid: "invalid pageSize range, pageSize parameter should be in range [1, 100]",
// ErrorJobListMultiplyOverFlow multiply overflow
ErrorJobListMultiplyOverFlow: "currentPage and pageSize multiply overflow when query job list",
// ErrorQueryJobIDsByUserFailed query user's job id list failed
ErrorQueryJobIDsByUserFailed: "query job id list from user failed",
// ErrorFrameValueInvalid invalid frame value
ErrorFrameValueInvalid: "invalid frame value, please choose [Tensorflow/MindSpore/PyTorch]",
// ErrorEnvWithKeyWordInvalid invalid env
ErrorEnvWithKeyWordInvalid: "invalid env key, please don't choose [job name/XDL_IP/framework]",
// ErrorCmdOrParamsWithKeyWordInvalid invalid cmd params for str "need_freeze"
ErrorCmdOrParamsWithKeyWordInvalid: "invalid cmd or parameter exists",
// ErrorQueryJobTypeFailed Failed query user's job id list failed
ErrorQueryJobTypeFailed: "query job type failed",
// ErrorJobType invalid job type of train manager
ErrorJobType: "invalid job type, please choose [train/develop/visual/eval]",
// ErrorStatusInQueryTrainJobStatistic invalid job status during quering job statistic of train manager
ErrorStatusInQueryTrainJobStatistic: "invalid job status during querying train job statistic, " +
"please choose [running/waiting/creating/failed/completed/deleting]",
// ErrorQueryJobStatisticFailed query job statistic failed
ErrorQueryJobStatisticFailed: "query job statistic failed",
// ErrorQueryTrainManagerJob failed to query job of train manager
ErrorQueryTrainManagerJob: "query job failed",
// ErrorQueryTrainManagerJobList failed to query job list of train manager
ErrorQueryTrainManagerJobList: "query job list failed",
// ErrorQueryTrainManagerJobInDeleting failed to query develop in deleting process
ErrorQueryTrainManagerJobInDeleting: "failed to deliver the deleting job to backend because job does not exist",
// ErrorQueryDevOrVisualJobStatusInvalid parameter query develop job list by status failed
ErrorQueryDevOrVisualJobStatusInvalid: "query develop/visual job list by status failed, " +
"should be [running/creating/waiting/deleting/failed]",
// ErrorQueryTrainJobStatusInvalid parameter query train job list by status failed
ErrorQueryTrainJobStatusInvalid: "query job list by status completed failed, " +
"the job type must be train/eval",
// ErrorQueryTrainManagerJobSortKeyInvalid parameter query develop job list by sort key invalid
ErrorQueryTrainManagerJobSortKeyInvalid: "query develop job list by sort key failed, " +
"sort key should be [created_at, run_time] or empty",
// ErrorInitTrainManagerJobBackendInstance failed to initialize develop job instance in backend
ErrorInitTrainManagerJobBackendInstance: "failed to initialize job instance in backend for k8s operation",
// ErrorJobCheckQuotaFailed check quota failed
ErrorJobCheckQuotaFailed: "check group resource quota failed, please check whether the group quota is sufficient",
// ErrorCustomDefinePathInvalid path custom define path invalid
ErrorCustomDefinePathInvalid: "invalid custom define path",
// ErrorQueryImageFailed query image failed
ErrorQueryImageFailed: "failed to get image info from image-manager",
// ErrorInitSpecificationFailed init specification info failed
ErrorInitSpecificationFailed: "init specification info failed",
// ErrorNamespaceInvalid invalid namespace from request
ErrorNamespaceInvalid: "invalid namespace from request",
// ErrorQueryModelFailed query model failed
ErrorQueryModelFailed: "failed to get model info from model-manager",
// ErrorQueryDatasetFailed query dataset failed
ErrorQueryDatasetFailed: "failed to get dataset info from dataset-manager",
// ErrorGenerateNotebookURLFailed failed to generate notebook url
ErrorGenerateNotebookURLFailed: "failed to generate notebook url",
// ErrorMarshalDataFailed failed to marshal data
ErrorMarshalDataFailed: "failed to generate json string, " +
"please check the input params of [envs/trainCmdParams/freezeCmdParams/customDefinePaths]",
// ErrorDuplicatePath duplicate path
ErrorDuplicatePath: "duplicate paths exist in the request",
// ErrorInvalidFaultReschedulingMode duplicate path
ErrorInvalidFaultReschedulingMode: "invalid faultReschedulingMode, please choose [off/grace/force] or empty",
// ErrorInitVisualReq Init visual Req fail
ErrorInitVisualReq: "Init visual Req fail",
// ErrorDeviceTypeForTrainJob invalid device type of the train job
ErrorDeviceTypeForTrainJob: "invalid device type of the train job. Currently, only NPU is supported.",
// ErrorNeedCmd need cmd when create train job
ErrorNeedCmd: "When a train job is creating, the param trainCmd or freezeCmd is needed",
// ErrorEmptyPath empty script path or log path or output path
ErrorEmptyPath: "empty log path or output path",
// ErrorTrainJobReplicases the number of replicase in a train job cannot be 0 or a negative number
ErrorTrainJobReplicases: "the number of replicase in a train job cannot be 0 or a negative number",
// ErrorDevJobType invalid develop job type
ErrorDevJobType: "invalid develop job type, which should be [NoteBook/MindStudio]",
// ErrorPubKey invalid pub key
ErrorPubKey: "verify public key failed, please check",
// ErrorQueryFileInfoFailed query file path info failed
ErrorQueryFileInfoFailed: "failed to get file path info from data-manager, " +
"please ensure whether the input paths belong to the current user",
// ErrorPathDuplication Duplicated Path
ErrorPathDuplication: "mount volume duplicated",
// ErrorGetNodePort Get NodePort error
ErrorGetNodePort: "failed to get nodeport",
// ErrorSameJobName the current job name already exists
ErrorSameJobName: "the current job name is already exists",
// ErrorStatusInQueryDevOrVisualJobStatistic invalid develop job status during querying job statistic
ErrorStatusInQueryDevOrVisualJobStatistic: "invalid job status during querying develop/visual job statistic, " +
"please choose [running/waiting/failed/deleting/creating]",
// ErrorQueryTrainJobWhenCreateVisualJob failed to query train job info in visual creating process
ErrorQueryTrainJobWhenCreateVisualJob: "failed to get train job info",
// ErrorVisualURLUnAvailable visual url is not available
ErrorVisualURLUnAvailable: "visual url is not available",
// ErrorDeleteTrainJob failed to delete train job in deleting process
ErrorDeleteTrainJob: "failed to delete train job during deleting process",
// ErrorDeleteVisualJob failed to delete visual job in deleting process
ErrorDeleteVisualJob: "failed to delete visual job during deleting process",
// ErrorDeleteDevelopJob failed to delete develop job in deleting process
ErrorDeleteDevelopJob: "failed to delete develop job during deleting process",
// ErrorNotebookURLUnAvailable notebook url is not available
ErrorNotebookURLUnAvailable: "notebook url is not available",
// ErrorTemplateSameName template name exist same
ErrorTemplateSameName: "exists the same template",
// edge-manager
// CreateNodeError failed to create edge node info
CreateNodeError: "failed to create edge node info",
// ListNodesError failed to list edge nodes info
ListNodesError: "failed to list edge nodes info",
// DeleteNodeDBError failed to delete edge node info
DeleteNodeDBError: "failed to delete edge node info",
// DeleteNodeResourceError failed to delete edge node resource info
DeleteNodeResourceError: "failed to delete edge node resource info",
// GetTokenError failed to get token
GetTokenError: "failed to get token",
// CreateTemplateError failed to create edge template
CreateTemplateError: "failed to create edge template",
// GetTemplateError failed to get edge template
GetTemplateError: "failed to get edge template",
// GetTemplateListError failed to get edge template list
GetTemplateListError: "failed to get edge template list",
// DeleteTemplateError failed to delete edge template
DeleteTemplateError: "failed to delete edge template",
// DeployAppError failed to deploy edge application
DeployAppError: "failed to deploy edge application",
// UpdateAppError failed to update edge application
UpdateAppError: "failed to update edge application",
// ListAppByNodeError failed to list edge application by node
ListAppByNodeError: "failed to list edge application by node",
// UndeployAppError failed to undeploy edge application
UndeployAppError: "failed to undeploy edge application",
// DashBoardError failed to get edge application dashboard
DashBoardError: "failed to get edge application dashboard",
// QuaryNodesError failed to quary nodes by name like
QuaryNodesError: "failed to quary nodes by name like",
// QuaryNodeStatusNumError failed to quary nodes number by status
QuaryNodeStatusNumError: "failed to quary nodes number by status",
// ErrorNodeBatchDelete failed to batch delete edge node
ErrorNodeBatchDelete: "failed to batch delete edge node",
// ErrorDeleteUserHaveNotAuth failed to delete user in edgemanager
ErrorDeleteUserHaveNotAuth: "failed to delete user in edgemanager, no auth",
// GetTableNumFailed failed to get db table number
GetTableNumFailed: "failed to get db table number",
// ExceedLimit db table number is exceed limit
TableExceedLimit: "db table number is exceed limit",
// ErrorNodeName failed to get node name
ErrorNodeName: "failed to get node name",
// ErrorTemplateName failed to get template name
ErrorTemplateName: "failed to get template name",
// ValidPageError failed to valid page
ValidPageError: "failed to valid page",
// ValidNodeInputError node input valid error
ValidNodeInputError: "node input valid error",
// PasswordWeak password is weak
PasswordWeak: "password is weak",
// ErrorDeleteK8sResource failed to delete k8s resource
ErrorDeleteK8sResource: "failed to delete k8s resource",
// ErrorQueryAlarmInDelete failed to query alarm in delete
ErrorQueryAlarmInDelete: "failed to query alarm in delete",
// ErrorCreateHistoryAlarm failed to create history alarm
ErrorCreateHistoryAlarm: "failed to create history alarm ",
// ErrorCreateShieldAlarm failed to create shield alarm
ErrorCreateShieldAlarm: "failed to create shield alarm",
// ErrorUpdateAlarm failed to update alarm
ErrorUpdateAlarm: "failed to update alarm",
// ErrorCountAlarm failed to count alarms
ErrorCountAlarm: "failed to count alarms",
// ErrorParam invalid parameters
ErrorParam: "invalid parameters",
// ErrorCreateRule failed to creat rule
ErrorCreateRule: "failed to creat rule",
// ErrorDeleteRule failed to delete rule
ErrorDeleteRule: "failed to delete rule",
// ErrorQueryRule failed to query rule
ErrorQueryRule: "failed to query rule",
// ErrorEffectiveRule failed to effective rule
ErrorEffectiveRule: "failed to effective rule",
// ErrorInvalidateRule failed to invalidate rule
ErrorInvalidateRule: "failed to invalidate rule",
// ErrorCountRule failed to count rule
ErrorCountRule: "failed to count rule",
}
mindxdl--common--errs.go的更多相关文章
- Socket聊天程序——Common
写在前面: 上一篇记录了Socket聊天程序的客户端设计,为了记录的完整性,这里还是将Socket聊天的最后一个模块--Common模块记录一下.Common的设计如下: 功能说明: Common模块 ...
- angularjs 1 开发简单案例(包含common.js,service.js,controller.js,page)
common.js var app = angular.module('app', ['ngFileUpload']) .factory('SV_Common', function ($http) { ...
- Common Bugs in C Programming
There are some Common Bugs in C Programming. Most of the contents are directly from or modified from ...
- ANSI Common Lisp Practice - My Answers - Chatper - 3
Ok, Go ahead. 1 (a) (b) (c) (d) 2 注:union 在 Common Lisp 中的作用就是求两个集合的并集.但是这有一个前提,即给的两个列表已经满足集合的属性了.具体 ...
- [LeetCode] Lowest Common Ancestor of a Binary Tree 二叉树的最小共同父节点
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According ...
- [LeetCode] Lowest Common Ancestor of a Binary Search Tree 二叉搜索树的最小共同父节点
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BS ...
- [LeetCode] Longest Common Prefix 最长共同前缀
Write a function to find the longest common prefix string amongst an array of strings. 这道题让我们求一系列字符串 ...
- 48. 二叉树两结点的最低共同父结点(3种变种情况)[Get lowest common ancestor of binary tree]
[题目] 输入二叉树中的两个结点,输出这两个结点在数中最低的共同父结点. 二叉树的结点定义如下: C++ Code 123456 struct BinaryTreeNode { int ...
- 动态规划求最长公共子序列(Longest Common Subsequence, LCS)
1. 问题描述 子串应该比较好理解,至于什么是子序列,这里给出一个例子:有两个母串 cnblogs belong 比如序列bo, bg, lg在母串cnblogs与belong中都出现过并且出现顺序与 ...
- 【leetcode】Longest Common Prefix
题目简述: Write a function to find the longest common prefix string amongst an array of strings. 解题思路: c ...
随机推荐
- 第四十一篇:Vue生命周期(二)
好家伙,书接上回 上图:(Vue官网中Vue实例图片的下半张) 以下为解释: 5.1.1. mounted执行完后,表示整个Vue实例已经初始化完毕了; 此时,组件已经脱离了创建阶段;进入到运行阶段 ...
- OpenStack云计算平台部署(单节点)
环境配置 虚拟机(centos7 .内存8G.硬盘300G.处理器4核并开启intel vt-x,网络模式设置为NAT,虚拟机网络一定要设置好,并可以ping通baidu,不然有中途掉IP的情况发生) ...
- Python 爬取网站数据
一.使用request库实现批量下载HTML 二.使用BeautifulSoup库实现html解析 官网:https://beautifulsoup.readthedocs.io/zh_CN/v4.4 ...
- 在Windows Server 2019中配置多元密码策略
长久以来,微软活动目录中的账户只能配置同一个密码策略.上到管理员账户,下到普通用户的密码策略都是一样的.而且密码策略只能在域级别配置生效.OU级别的密码策略只会对该OU中计算机的本地账户生效.通常认为 ...
- Python数据科学手册-前言
读Python数据科学手册 笔记 系列 数据科学 data science https://img2022.cnblogs.com/blog/2827305/202205/2827305-202205 ...
- 清理rook-ceph
官方步骤文档:https://rook.io/docs/rook/v1.8/ceph-teardown.html 请注意需要清理的以下资源: rook-ceph namespace: The Rook ...
- 天翼云上新增IP备案具体操作步骤
0.点击右上角的备案,进入到备案中心 1.已备案信息管理 点击左侧的已备案信息管理,右侧出现的页面中找到已备案网站信息,网站负责人后面的操作里有5个图标,点击第三个(变更接入),提交订单,进入到下一步 ...
- MongoDB 分片集群的用户和权限一般操作步骤
步骤总结: 按照mongos路由.配置副本集服务,分片副本集服务的先后顺序关闭所有节点服务 创建副本集认证的key文件,复制到每个服务所在目录 修改每个服务的配置文件,增加参数 启动每个服务 创建账号 ...
- 组件化开发2-安装cocoaPods
第一步:安装ruby 不能一上来就换ruby源.虽然mac自带了ruby,但是版本一般都偏低,如果不进行更新会导致版本依赖问题. 这里使用rvm来管理ruby,它允许共存多个ruby.RVM:Ruby ...
- prettierrc格式化常用配置
#最大长度 printWidth: 140 #单引号 singleQuote: true tabWidth: 2 useTabs: false # 句尾添加分号 semi: false # js an ...