@@ -413,21 +413,23 @@ var (
413413 ERR_DECODE_CLUSTER_POOL_JSON_FAILED = EC (410016 , "decode cluster pool json to string failed" )
414414 ERR_WAIT_MDS_ELECTION_SUCCESS_TIMEOUT = EC (410017 , "wait mds election success timeout" )
415415 ERR_WAIT_ALL_CHUNKSERVERS_ONLINE_TIMEOUT = EC (410018 , "wait all chunkservers online timeout" )
416- ERR_CREATE_LOGICAL_POOL_FAILED = EC (410019 , "create logical pool failed" )
416+ ERR_CREATE_LOGICAL_POOL_FAILED = EC (410019 , "create physical/ logical pool failed" )
417417 ERR_INVALID_DEVICE_USAGE = EC (410020 , "invalid device usage" )
418418 ERR_ENCRYPT_FILE_FAILED = EC (410021 , "encrypt file failed" )
419419 ERR_CLIENT_ID_NOT_FOUND = EC (410022 , "client id not found" )
420420
421421 // 420: common (curvebs client)
422- ERR_VOLUME_ALREADY_MAPPED = EC (420000 , "volume already mapped" )
423- ERR_VOLUME_CONTAINER_LOSED = EC (420001 , "volume container is losed" )
424- ERR_VOLUME_CONTAINER_ABNORMAL = EC (420002 , "volume container is abnormal" )
425- ERR_CREATE_VOLUME_FAILED = EC (420003 , "create volume failed" )
426- ERR_MAP_VOLUME_FAILED = EC (420004 , "map volume to NBD device failed" )
427- ERR_ENCODE_VOLUME_INFO_TO_JSON_FAILED = EC (420005 , "encode volume info to json failed" )
428- ERR_UNMAP_VOLUME_FAILED = EC (420006 , "unmap volume failed" )
429- ERR_OLD_TARGET_DAEMON_IS_ABNORMAL = EC (420007 , "old target daemon is abnormal" )
430- ERR_TARGET_DAEMON_IS_ABNORMAL = EC (420008 , "target daemon is abnormal" )
422+ ERR_VOLUME_ALREADY_MAPPED = EC (420000 , "volume already mapped" )
423+ ERR_VOLUME_CONTAINER_LOSED = EC (420001 , "volume container is losed" )
424+ ERR_VOLUME_CONTAINER_ABNORMAL = EC (420002 , "volume container is abnormal" )
425+ ERR_CREATE_VOLUME_FAILED = EC (420003 , "create volume failed" )
426+ ERR_MAP_VOLUME_FAILED = EC (420004 , "map volume to NBD device failed" )
427+ ERR_ENCODE_VOLUME_INFO_TO_JSON_FAILED = EC (420005 , "encode volume info to json failed" )
428+ ERR_UNMAP_VOLUME_FAILED = EC (420006 , "unmap volume failed" )
429+ ERR_OLD_TARGET_DAEMON_IS_ABNORMAL = EC (420007 , "old target daemon is abnormal" )
430+ ERR_TARGET_DAEMON_IS_ABNORMAL = EC (420008 , "target daemon is abnormal" )
431+ ERR_CREATE_VOLUME_FAILED_AUTH_FAILED = EC (420009 , "create volume failed with errCode: kAuthFailed" )
432+ ERR_CREATE_VOLUME_FAILED_AUTH_KEY_NOT_EXIST = EC (420010 , "create volume failed because auth key not exist" )
431433
432434 // 430: common (curvefs client)
433435 ERR_FS_PATH_ALREADY_MOUNTED = EC (430000 , "path already mounted" )
@@ -464,6 +466,11 @@ var (
464466 ERR_CHUNKSERVER_REQUIRES_3_HOSTS = EC (503007 , "chunkserver requires at least 3 hosts to distrubute zones" )
465467 ERR_SNAPSHOTCLONE_REQUIRES_3_HOSTS = EC (503008 , "snapshotclone requires at least 3 hosts for deploy" )
466468 ERR_METASERVER_REQUIRES_3_HOSTS = EC (503009 , "metaserver requires at least 3 hosts to distrubute zones" )
469+ // 504: checker (topology/auth)
470+ ERR_AUTH_SERVER_KEY_REQUIRE_SET = EC (504000 , "auth.server.key requires to be set" )
471+ ERR_AUTH_CURRENT_KEY_REQUIRE_SET = EC (504001 , "auth.key.current requires to be set" )
472+ ERR_AUTH_SERVER_KEY_REQUIRE_16_CHARACTER = EC (504002 , "auth.server.key requires 16 characters" )
473+ ERR_AUTH_CURRENT_KEY_REQUIRE_16_CHARACTER = EC (504003 , "auth.key.current requires 16 characters" )
467474
468475 // 510: checker (ssh)
469476 ERR_SSH_CONNECT_FAILED = EC (510000 , "SSH connect failed" )
@@ -545,6 +552,7 @@ var (
545552 ERR_SECURE_COPY_FILE_TO_REMOTE_FAILED = EC (620026 , "secure copy file to remote failed (scp)" )
546553 ERR_RUN_SCRIPT_FAILED = EC (620998 , "run script failed (bash script.sh)" )
547554 ERR_RUN_A_BASH_COMMAND_FAILED = EC (620999 , "run a bash command failed (bash -c)" )
555+ ERR_DIST_SERVICE_KEY_FAILED = EC (621000 , "distribute service auth key failed" )
548556
549557 // 630: execute task (docker command)
550558 ERR_GET_DOCKER_INFO_FAILED = EC (630000 , "get docker info failed (docker info)" )
0 commit comments