Documentation
¶
Index ¶
- Variables
- type CheckFlag
- type CheckInconsistAction
- func (CheckInconsistAction) Descriptor() protoreflect.EnumDescriptor
- func (x CheckInconsistAction) Enum() *CheckInconsistAction
- func (CheckInconsistAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckInconsistAction) Number() protoreflect.EnumNumber
- func (x CheckInconsistAction) String() string
- func (CheckInconsistAction) Type() protoreflect.EnumType
- type CheckInconsistClass
- func (CheckInconsistClass) Descriptor() protoreflect.EnumDescriptor
- func (x CheckInconsistClass) Enum() *CheckInconsistClass
- func (CheckInconsistClass) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckInconsistClass) Number() protoreflect.EnumNumber
- func (x CheckInconsistClass) String() string
- func (CheckInconsistClass) Type() protoreflect.EnumType
- type CheckInstStatus
- func (CheckInstStatus) Descriptor() protoreflect.EnumDescriptor
- func (x CheckInstStatus) Enum() *CheckInstStatus
- func (CheckInstStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckInstStatus) Number() protoreflect.EnumNumber
- func (x CheckInstStatus) String() string
- func (CheckInstStatus) Type() protoreflect.EnumType
- type CheckPoolStatus
- func (CheckPoolStatus) Descriptor() protoreflect.EnumDescriptor
- func (x CheckPoolStatus) Enum() *CheckPoolStatus
- func (CheckPoolStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckPoolStatus) Number() protoreflect.EnumNumber
- func (x CheckPoolStatus) String() string
- func (CheckPoolStatus) Type() protoreflect.EnumType
- type CheckReport
- func (*CheckReport) Descriptor() ([]byte, []int)deprecated
- func (x *CheckReport) GetActChoices() []CheckInconsistAction
- func (x *CheckReport) GetActDetails() []string
- func (x *CheckReport) GetActMsgs() []string
- func (x *CheckReport) GetAction() CheckInconsistAction
- func (x *CheckReport) GetAkey() string
- func (x *CheckReport) GetClass() CheckInconsistClass
- func (x *CheckReport) GetContLabel() string
- func (x *CheckReport) GetContUuid() string
- func (x *CheckReport) GetDkey() string
- func (x *CheckReport) GetMsg() string
- func (x *CheckReport) GetObjid() string
- func (x *CheckReport) GetPoolLabel() string
- func (x *CheckReport) GetPoolUuid() string
- func (x *CheckReport) GetRank() uint32
- func (x *CheckReport) GetResult() int32
- func (x *CheckReport) GetSeq() uint64
- func (x *CheckReport) GetTarget() uint32
- func (x *CheckReport) GetTimestamp() string
- func (*CheckReport) ProtoMessage()
- func (x *CheckReport) ProtoReflect() protoreflect.Message
- func (x *CheckReport) Reset()
- func (x *CheckReport) String() string
- type CheckScanPhase
- func (CheckScanPhase) Descriptor() protoreflect.EnumDescriptor
- func (x CheckScanPhase) Enum() *CheckScanPhase
- func (CheckScanPhase) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckScanPhase) Number() protoreflect.EnumNumber
- func (x CheckScanPhase) String() string
- func (CheckScanPhase) Type() protoreflect.EnumType
- type Fault
- func (*Fault) Descriptor() ([]byte, []int)deprecated
- func (x *Fault) GetClass() CheckInconsistClass
- func (x *Fault) GetInts() []int32
- func (x *Fault) GetStrings() []string
- func (x *Fault) GetUints() []uint32
- func (*Fault) ProtoMessage()
- func (x *Fault) ProtoReflect() protoreflect.Message
- func (x *Fault) Reset()
- func (x *Fault) String() string
Constants ¶
This section is empty.
Variables ¶
var ( CheckInconsistClass_name = map[int32]string{ 0: "CIC_NONE", 1: "CIC_POOL_LESS_SVC_WITH_QUORUM", 2: "CIC_POOL_LESS_SVC_WITHOUT_QUORUM", 3: "CIC_POOL_MORE_SVC", 4: "CIC_POOL_NONEXIST_ON_MS", 5: "CIC_POOL_NONEXIST_ON_ENGINE", 6: "CIC_POOL_BAD_SVCL", 7: "CIC_POOL_BAD_LABEL", 8: "CIC_ENGINE_NONEXIST_IN_MAP", 9: "CIC_ENGINE_DOWN_IN_MAP", 10: "CIC_ENGINE_HAS_NO_STORAGE", 11: "CIC_CONT_NONEXIST_ON_PS", 12: "CIC_CONT_BAD_LABEL", 13: "CIC_DTX_CORRUPTED", 14: "CIC_DTX_ORPHAN", 15: "CIC_CSUM_LOST", 16: "CIC_CSUM_FAILURE", 17: "CIC_OBJ_LOST_REP", 18: "CIC_OBJ_LOST_EC_SHARD", 19: "CIC_OBJ_LOST_EC_DATA", 20: "CIC_OBJ_DATA_INCONSIST", 100: "CIC_UNKNOWN", } CheckInconsistClass_value = map[string]int32{ "CIC_NONE": 0, "CIC_POOL_LESS_SVC_WITH_QUORUM": 1, "CIC_POOL_LESS_SVC_WITHOUT_QUORUM": 2, "CIC_POOL_MORE_SVC": 3, "CIC_POOL_NONEXIST_ON_MS": 4, "CIC_POOL_NONEXIST_ON_ENGINE": 5, "CIC_POOL_BAD_SVCL": 6, "CIC_POOL_BAD_LABEL": 7, "CIC_ENGINE_NONEXIST_IN_MAP": 8, "CIC_ENGINE_DOWN_IN_MAP": 9, "CIC_ENGINE_HAS_NO_STORAGE": 10, "CIC_CONT_NONEXIST_ON_PS": 11, "CIC_CONT_BAD_LABEL": 12, "CIC_DTX_CORRUPTED": 13, "CIC_DTX_ORPHAN": 14, "CIC_CSUM_LOST": 15, "CIC_CSUM_FAILURE": 16, "CIC_OBJ_LOST_REP": 17, "CIC_OBJ_LOST_EC_SHARD": 18, "CIC_OBJ_LOST_EC_DATA": 19, "CIC_OBJ_DATA_INCONSIST": 20, "CIC_UNKNOWN": 100, } )
Enum value maps for CheckInconsistClass.
var ( CheckInconsistAction_name = map[int32]string{ 0: "CIA_DEFAULT", 1: "CIA_INTERACT", 2: "CIA_IGNORE", 3: "CIA_DISCARD", 4: "CIA_READD", 5: "CIA_TRUST_MS", 6: "CIA_TRUST_PS", 7: "CIA_TRUST_TARGET", 8: "CIA_TRUST_MAJORITY", 9: "CIA_TRUST_LATEST", 10: "CIA_TRUST_OLDEST", 11: "CIA_TRUST_EC_PARITY", 12: "CIA_TRUST_EC_DATA", } CheckInconsistAction_value = map[string]int32{ "CIA_DEFAULT": 0, "CIA_INTERACT": 1, "CIA_IGNORE": 2, "CIA_DISCARD": 3, "CIA_READD": 4, "CIA_TRUST_MS": 5, "CIA_TRUST_PS": 6, "CIA_TRUST_TARGET": 7, "CIA_TRUST_MAJORITY": 8, "CIA_TRUST_LATEST": 9, "CIA_TRUST_OLDEST": 10, "CIA_TRUST_EC_PARITY": 11, "CIA_TRUST_EC_DATA": 12, } )
Enum value maps for CheckInconsistAction.
var ( CheckFlag_name = map[int32]string{ 0: "CF_NONE", 1: "CF_DRYRUN", 2: "CF_RESET", 4: "CF_FAILOUT", 8: "CF_AUTO", 16: "CF_ORPHAN_POOL", 32: "CF_NO_FAILOUT", 64: "CF_NO_AUTO", } CheckFlag_value = map[string]int32{ "CF_NONE": 0, "CF_DRYRUN": 1, "CF_RESET": 2, "CF_FAILOUT": 4, "CF_AUTO": 8, "CF_ORPHAN_POOL": 16, "CF_NO_FAILOUT": 32, "CF_NO_AUTO": 64, } )
Enum value maps for CheckFlag.
var ( CheckInstStatus_name = map[int32]string{ 0: "CIS_INIT", 1: "CIS_RUNNING", 2: "CIS_COMPLETED", 3: "CIS_STOPPED", 4: "CIS_FAILED", 5: "CIS_PAUSED", 6: "CIS_IMPLICATED", } CheckInstStatus_value = map[string]int32{ "CIS_INIT": 0, "CIS_RUNNING": 1, "CIS_COMPLETED": 2, "CIS_STOPPED": 3, "CIS_FAILED": 4, "CIS_PAUSED": 5, "CIS_IMPLICATED": 6, } )
Enum value maps for CheckInstStatus.
var ( CheckPoolStatus_name = map[int32]string{ 0: "CPS_UNCHECKED", 1: "CPS_CHECKING", 2: "CPS_CHECKED", 3: "CPS_FAILED", 4: "CPS_PAUSED", 5: "CPS_PENDING", 6: "CPS_STOPPED", 7: "CPS_IMPLICATED", } CheckPoolStatus_value = map[string]int32{ "CPS_UNCHECKED": 0, "CPS_CHECKING": 1, "CPS_CHECKED": 2, "CPS_FAILED": 3, "CPS_PAUSED": 4, "CPS_PENDING": 5, "CPS_STOPPED": 6, "CPS_IMPLICATED": 7, } )
Enum value maps for CheckPoolStatus.
var ( CheckScanPhase_name = map[int32]string{ 0: "CSP_PREPARE", 1: "CSP_POOL_LIST", 2: "CSP_POOL_MBS", 3: "CSP_POOL_CLEANUP", 4: "CSP_CONT_LIST", 5: "CSP_CONT_CLEANUP", 6: "CSP_DTX_RESYNC", 7: "CSP_OBJ_SCRUB", 8: "CSP_REBUILD", 9: "CSP_AGGREGATION", 10: "CSP_DONE", } CheckScanPhase_value = map[string]int32{ "CSP_PREPARE": 0, "CSP_POOL_LIST": 1, "CSP_POOL_MBS": 2, "CSP_POOL_CLEANUP": 3, "CSP_CONT_LIST": 4, "CSP_CONT_CLEANUP": 5, "CSP_DTX_RESYNC": 6, "CSP_OBJ_SCRUB": 7, "CSP_REBUILD": 8, "CSP_AGGREGATION": 9, "CSP_DONE": 10, } )
Enum value maps for CheckScanPhase.
var File_chk_chk_proto protoreflect.FileDescriptor
var File_chk_faults_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CheckFlag ¶
type CheckFlag int32
The flags to control DAOS check general behavior, not related with any detailed inconsistency.
const ( CheckFlag_CF_NONE CheckFlag = 0 // Only scan without real repairing inconsistency. CheckFlag_CF_DRYRUN CheckFlag = 1 // Start DAOS check from the beginning. // Otherwise, resume the DAOS check from the latest checkpoint by default. CheckFlag_CF_RESET CheckFlag = 2 // Stop DAOS check if hit unknown inconsistency or fail to repair some inconsistency. // Otherwise, mark 'fail' on related component and continue to handle next one by default. CheckFlag_CF_FAILOUT CheckFlag = 4 // If the admin does not want to interact with engine during check scan, then CIA_INTERACT // will be converted to CIA_IGNORE. That will overwrite the CheckInconsistPolicy. CheckFlag_CF_AUTO CheckFlag = 8 // Handle orphan pool when start the check instance. If not specify the flag, some orphan // pool(s) may be not handled (by default) unless all pools are checked from the scratch. CheckFlag_CF_ORPHAN_POOL CheckFlag = 16 // Overwrite former set CF_FAILOUT flag, cannot be specified together with CF_FAILOUT. CheckFlag_CF_NO_FAILOUT CheckFlag = 32 // Overwrite former set CF_AUTO flag, cannot be specified together with CF_AUTO. CheckFlag_CF_NO_AUTO CheckFlag = 64 )
func (CheckFlag) Descriptor ¶
func (CheckFlag) Descriptor() protoreflect.EnumDescriptor
func (CheckFlag) EnumDescriptor
deprecated
func (CheckFlag) Number ¶
func (x CheckFlag) Number() protoreflect.EnumNumber
func (CheckFlag) Type ¶
func (CheckFlag) Type() protoreflect.EnumType
type CheckInconsistAction ¶
type CheckInconsistAction int32
Actions for how to handle kinds of inconsistency.
const ( // Default action, depends on the detailed inconsistency class. CheckInconsistAction_CIA_DEFAULT CheckInconsistAction = 0 // Interact with administrator for further action. CheckInconsistAction_CIA_INTERACT CheckInconsistAction = 1 // Ignore but log the inconsistency. CheckInconsistAction_CIA_IGNORE CheckInconsistAction = 2 // Discard the unrecognized element: pool service, pool itself, container, and so on. CheckInconsistAction_CIA_DISCARD CheckInconsistAction = 3 // Re-add the missing element: pool to MS, target to pool map, and so on. CheckInconsistAction_CIA_READD CheckInconsistAction = 4 // Trust the information recorded in MS DB. CheckInconsistAction_CIA_TRUST_MS CheckInconsistAction = 5 // Trust the information recorded in PS DB. CheckInconsistAction_CIA_TRUST_PS CheckInconsistAction = 6 // Trust the information recorded by target(s). CheckInconsistAction_CIA_TRUST_TARGET CheckInconsistAction = 7 // Trust the majority parts (if have). CheckInconsistAction_CIA_TRUST_MAJORITY CheckInconsistAction = 8 // Trust the one with latest (pool map or epoch) information. Keep the latest data. CheckInconsistAction_CIA_TRUST_LATEST CheckInconsistAction = 9 // Trust the one with oldest (pool map or epoch) information. Rollback to old version. CheckInconsistAction_CIA_TRUST_OLDEST CheckInconsistAction = 10 // Trust EC parity shard. CheckInconsistAction_CIA_TRUST_EC_PARITY CheckInconsistAction = 11 // Trust EC data shard. CheckInconsistAction_CIA_TRUST_EC_DATA CheckInconsistAction = 12 )
func (CheckInconsistAction) Descriptor ¶
func (CheckInconsistAction) Descriptor() protoreflect.EnumDescriptor
func (CheckInconsistAction) Enum ¶
func (x CheckInconsistAction) Enum() *CheckInconsistAction
func (CheckInconsistAction) EnumDescriptor
deprecated
func (CheckInconsistAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckInconsistAction.Descriptor instead.
func (CheckInconsistAction) Number ¶
func (x CheckInconsistAction) Number() protoreflect.EnumNumber
func (CheckInconsistAction) String ¶
func (x CheckInconsistAction) String() string
func (CheckInconsistAction) Type ¶
func (CheckInconsistAction) Type() protoreflect.EnumType
type CheckInconsistClass ¶
type CheckInconsistClass int32
Kinds of DAOS global inconsistency.
const ( // Consistent cases. CheckInconsistClass_CIC_NONE CheckInconsistClass = 0 // Only a subset of the pool services are present but we will have a quorum. // Default action: CIA_IGNORE. CheckInconsistClass_CIC_POOL_LESS_SVC_WITH_QUORUM CheckInconsistClass = 1 // Only a subset of the pool services are present, and we don't have a quorum. // Default action: CIA_INTERACT. CheckInconsistClass_CIC_POOL_LESS_SVC_WITHOUT_QUORUM CheckInconsistClass = 2 // More members are reported than the pool service was created with. // Default action: CIA_DISCARD. Remove unrecognized pool service. CheckInconsistClass_CIC_POOL_MORE_SVC CheckInconsistClass = 3 // Engine(s) claim the pool which is not registered to MS. // Default action: CIA_READD. Register the pool to the MS. CheckInconsistClass_CIC_POOL_NONEXIST_ON_MS CheckInconsistClass = 4 // Pool is registered to MS but not claimed by any engine. // Default action: CIA_DISCARD. De-register pool from MS. CheckInconsistClass_CIC_POOL_NONEXIST_ON_ENGINE CheckInconsistClass = 5 // Svcl list stored in MS does not match the actual PS membership. // Default action: CIA_TRUST_PS. Refresh svcl list in MS DB. CheckInconsistClass_CIC_POOL_BAD_SVCL CheckInconsistClass = 6 // The pool label recorded by MS does not match the pool label property from PS. // Default action: CIA_TRUST_PS. Refresh label in MS DB. CheckInconsistClass_CIC_POOL_BAD_LABEL CheckInconsistClass = 7 // An engine has some allocated storage but does not appear in pool map. // Default action: CIA_DISCARD. Associated files and blobs will be deleted from the engine. CheckInconsistClass_CIC_ENGINE_NONEXIST_IN_MAP CheckInconsistClass = 8 // An engine has some allocated storage and is marked as down/downout in pool map. // Default action: CIA_IGNORE. It can be reintegrated after CR scan. CheckInconsistClass_CIC_ENGINE_DOWN_IN_MAP CheckInconsistClass = 9 // An engine is referenced in pool map, but no storage is actually allocated on this engine. // Default action: CIA_DISCARD. Evict the rank from pool map, give left things to rebuild. CheckInconsistClass_CIC_ENGINE_HAS_NO_STORAGE CheckInconsistClass = 10 // Containers that have storage allocated on engine but does not exist in the PS. // Default action: CIA_DISCARD. Destrory the unrecognized container. CheckInconsistClass_CIC_CONT_NONEXIST_ON_PS CheckInconsistClass = 11 // The container label recorded by PS does not match the container label property. // Default action: CIA_TRUST_PS. Refresh label property on related target(s). CheckInconsistClass_CIC_CONT_BAD_LABEL CheckInconsistClass = 12 // The DTX is corrupted, some participant RDG(s) may be lost. // Default action: CIA_INTERACT. CheckInconsistClass_CIC_DTX_CORRUPTED CheckInconsistClass = 13 // The DTX entry on leader does not exist, then not sure the status. // Default action: CIA_DISCARD. It is equal to abort the DTX and may lost data on related // shard, then we may found data inconsistency in subseqeunt CR scan phase, at that time, // such data inconsistency will be fixed. CheckInconsistClass_CIC_DTX_ORPHAN CheckInconsistClass = 14 // The checksum information is lost. // Default action: CIA_READD. We have to trust the data and recalculate the checksum. If // data is corrupted, then we may hit data inconsistency in subseqeunt CR scan phase, at // that time, such data inconsistency will be fixed. CheckInconsistClass_CIC_CSUM_LOST CheckInconsistClass = 15 // Checksum related inconsistency or data corruption. // Default action: CIA_DISCARD. Then we will hit data lost in subseqeunt CR scan phase, // at that time, such data inconsistency will be fixed. CheckInconsistClass_CIC_CSUM_FAILURE CheckInconsistClass = 16 // Replicated object lost some replica(s). // Default action: CIA_READD. Copy from another valid replica. CheckInconsistClass_CIC_OBJ_LOST_REP CheckInconsistClass = 17 // EC object lost parity or data shard(s). // Default action: CIA_READD. Trust other available shards and recalculate the lost one(s). CheckInconsistClass_CIC_OBJ_LOST_EC_SHARD CheckInconsistClass = 18 // EC object lost too many shards that exceeds its redundancy. // Default action: CIA_INTERACT. Ask the admin to decide whether keep or remove the object. CheckInconsistClass_CIC_OBJ_LOST_EC_DATA CheckInconsistClass = 19 // Data inconsistency among replicas // Default action: CIA_TRUST_LATEST. Try to keep the latest data. If all have the same epoch, // then ask the admin (CIA_INTERACT) to decide which one will be trusted. CheckInconsistClass_CIC_OBJ_DATA_INCONSIST CheckInconsistClass = 20 // Unknown inconsistency. // Default action: CIA_IGNORE. CheckInconsistClass_CIC_UNKNOWN CheckInconsistClass = 100 )
func (CheckInconsistClass) Descriptor ¶
func (CheckInconsistClass) Descriptor() protoreflect.EnumDescriptor
func (CheckInconsistClass) Enum ¶
func (x CheckInconsistClass) Enum() *CheckInconsistClass
func (CheckInconsistClass) EnumDescriptor
deprecated
func (CheckInconsistClass) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckInconsistClass.Descriptor instead.
func (CheckInconsistClass) Number ¶
func (x CheckInconsistClass) Number() protoreflect.EnumNumber
func (CheckInconsistClass) String ¶
func (x CheckInconsistClass) String() string
func (CheckInconsistClass) Type ¶
func (CheckInconsistClass) Type() protoreflect.EnumType
type CheckInstStatus ¶
type CheckInstStatus int32
The status of DAOS check instance.
const ( CheckInstStatus_CIS_INIT CheckInstStatus = 0 // DAOS check has never been run. CheckInstStatus_CIS_RUNNING CheckInstStatus = 1 // DAOS check is still in process. CheckInstStatus_CIS_COMPLETED CheckInstStatus = 2 // All passes have been done for all required pools. CheckInstStatus_CIS_STOPPED CheckInstStatus = 3 // DAOS check has been explicitly stopped, do not allow to rejoin. CheckInstStatus_CIS_FAILED CheckInstStatus = 4 // DAOS check auto stopped for some unrecoverable failure, do not rejoin. CheckInstStatus_CIS_PAUSED CheckInstStatus = 5 // DAOS check has been paused because engine exit, allow to rejoin. CheckInstStatus_CIS_IMPLICATED CheckInstStatus = 6 // Check on the engine exit for other engine failure, do not rejoin. )
func (CheckInstStatus) Descriptor ¶
func (CheckInstStatus) Descriptor() protoreflect.EnumDescriptor
func (CheckInstStatus) Enum ¶
func (x CheckInstStatus) Enum() *CheckInstStatus
func (CheckInstStatus) EnumDescriptor
deprecated
func (CheckInstStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckInstStatus.Descriptor instead.
func (CheckInstStatus) Number ¶
func (x CheckInstStatus) Number() protoreflect.EnumNumber
func (CheckInstStatus) String ¶
func (x CheckInstStatus) String() string
func (CheckInstStatus) Type ¶
func (CheckInstStatus) Type() protoreflect.EnumType
type CheckPoolStatus ¶
type CheckPoolStatus int32
The pool status for DAOS check.
const ( CheckPoolStatus_CPS_UNCHECKED CheckPoolStatus = 0 // DAOS check has not started against this pool. CheckPoolStatus_CPS_CHECKING CheckPoolStatus = 1 // The pool is being checked. CheckPoolStatus_CPS_CHECKED CheckPoolStatus = 2 // DAOS check has successfully completed all the passes on this pool. CheckPoolStatus_CPS_FAILED CheckPoolStatus = 3 // DAOS check could not be completed due to some unrecoverable failure. CheckPoolStatus_CPS_PAUSED CheckPoolStatus = 4 // Checking the pool has been paused because engine exit. CheckPoolStatus_CPS_PENDING CheckPoolStatus = 5 // Waiting for the decision from the admin. CheckPoolStatus_CPS_STOPPED CheckPoolStatus = 6 // DAOS check on the pool has been stopped explicitly. CheckPoolStatus_CPS_IMPLICATED CheckPoolStatus = 7 // Check on the pool is stopped because of other pool or engine failure. )
func (CheckPoolStatus) Descriptor ¶
func (CheckPoolStatus) Descriptor() protoreflect.EnumDescriptor
func (CheckPoolStatus) Enum ¶
func (x CheckPoolStatus) Enum() *CheckPoolStatus
func (CheckPoolStatus) EnumDescriptor
deprecated
func (CheckPoolStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckPoolStatus.Descriptor instead.
func (CheckPoolStatus) Number ¶
func (x CheckPoolStatus) Number() protoreflect.EnumNumber
func (CheckPoolStatus) String ¶
func (x CheckPoolStatus) String() string
func (CheckPoolStatus) Type ¶
func (CheckPoolStatus) Type() protoreflect.EnumType
type CheckReport ¶
type CheckReport struct { Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // DAOS Check event sequence, unique for the instance. Class CheckInconsistClass `protobuf:"varint,2,opt,name=class,proto3,enum=chk.CheckInconsistClass" json:"class,omitempty"` // Inconsistency class Action CheckInconsistAction `protobuf:"varint,3,opt,name=action,proto3,enum=chk.CheckInconsistAction" json:"action,omitempty"` // The action taken to repair the inconsistency // Repair result: zero is for repaired successfully. // // negative value if failed to repair. // positive value is for CIA_IGNORE or dryrun mode. // // It is meaningless if the action is CIA_INTERACT. Result int32 `protobuf:"varint,4,opt,name=result,proto3" json:"result,omitempty"` Rank uint32 `protobuf:"varint,5,opt,name=rank,proto3" json:"rank,omitempty"` // Inconsistency happened on which rank if applicable. Target uint32 `protobuf:"varint,6,opt,name=target,proto3" json:"target,omitempty"` // Inconsistency happened on which target in the rank if applicable. PoolUuid string `protobuf:"bytes,7,opt,name=pool_uuid,json=poolUuid,proto3" json:"pool_uuid,omitempty"` // The consistency is in which pool if applicable. PoolLabel string `protobuf:"bytes,8,opt,name=pool_label,json=poolLabel,proto3" json:"pool_label,omitempty"` // The pool label, if available. ContUuid string `protobuf:"bytes,9,opt,name=cont_uuid,json=contUuid,proto3" json:"cont_uuid,omitempty"` // The consistency is in which container if applicable. ContLabel string `protobuf:"bytes,10,opt,name=cont_label,json=contLabel,proto3" json:"cont_label,omitempty"` // The container label, if available. Objid string `protobuf:"bytes,11,opt,name=objid,proto3" json:"objid,omitempty"` // The consistency is in which object if applicable. Dkey string `protobuf:"bytes,12,opt,name=dkey,proto3" json:"dkey,omitempty"` // The consistency is in which dkey if applicable. Akey string `protobuf:"bytes,13,opt,name=akey,proto3" json:"akey,omitempty"` // The consistency is in which akey if applicable. Timestamp string `protobuf:"bytes,14,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // The time of report (and repair) the inconsistency. Msg string `protobuf:"bytes,15,opt,name=msg,proto3" json:"msg,omitempty"` // Information to describe the inconsistency in detail. ActChoices []CheckInconsistAction `` // Interactive mode options (first is suggested). /* 130-byte string literal not displayed */ ActDetails []string `protobuf:"bytes,17,rep,name=act_details,json=actDetails,proto3" json:"act_details,omitempty"` // Details for each potential action (length should match actions). ActMsgs []string `protobuf:"bytes,18,rep,name=act_msgs,json=actMsgs,proto3" json:"act_msgs,omitempty"` // Formatted messages containing details for each action choice. // contains filtered or unexported fields }
DAOS check engine reports the found inconsistency and repair result to control plane. If the repair action is CIA_INTERACT, then the control plane will reply current dRPC firstly, and then interact with the admin for the repair decision in another section and tell DAOS check engine via another DRPC_METHOD_MGMT_CHK_ACT dRPC call.
If the CheckReport::msg is not enough to help admin to make the decision, then we may have to leverage DAOS debug tools to dump more information from related target.
func (*CheckReport) Descriptor
deprecated
func (*CheckReport) Descriptor() ([]byte, []int)
Deprecated: Use CheckReport.ProtoReflect.Descriptor instead.
func (*CheckReport) GetActChoices ¶
func (x *CheckReport) GetActChoices() []CheckInconsistAction
func (*CheckReport) GetActDetails ¶
func (x *CheckReport) GetActDetails() []string
func (*CheckReport) GetActMsgs ¶
func (x *CheckReport) GetActMsgs() []string
func (*CheckReport) GetAction ¶
func (x *CheckReport) GetAction() CheckInconsistAction
func (*CheckReport) GetAkey ¶
func (x *CheckReport) GetAkey() string
func (*CheckReport) GetClass ¶
func (x *CheckReport) GetClass() CheckInconsistClass
func (*CheckReport) GetContLabel ¶
func (x *CheckReport) GetContLabel() string
func (*CheckReport) GetContUuid ¶
func (x *CheckReport) GetContUuid() string
func (*CheckReport) GetDkey ¶
func (x *CheckReport) GetDkey() string
func (*CheckReport) GetMsg ¶
func (x *CheckReport) GetMsg() string
func (*CheckReport) GetObjid ¶
func (x *CheckReport) GetObjid() string
func (*CheckReport) GetPoolLabel ¶
func (x *CheckReport) GetPoolLabel() string
func (*CheckReport) GetPoolUuid ¶
func (x *CheckReport) GetPoolUuid() string
func (*CheckReport) GetRank ¶
func (x *CheckReport) GetRank() uint32
func (*CheckReport) GetResult ¶
func (x *CheckReport) GetResult() int32
func (*CheckReport) GetSeq ¶
func (x *CheckReport) GetSeq() uint64
func (*CheckReport) GetTarget ¶
func (x *CheckReport) GetTarget() uint32
func (*CheckReport) GetTimestamp ¶
func (x *CheckReport) GetTimestamp() string
func (*CheckReport) ProtoMessage ¶
func (*CheckReport) ProtoMessage()
func (*CheckReport) ProtoReflect ¶
func (x *CheckReport) ProtoReflect() protoreflect.Message
func (*CheckReport) Reset ¶
func (x *CheckReport) Reset()
func (*CheckReport) String ¶
func (x *CheckReport) String() string
type CheckScanPhase ¶
type CheckScanPhase int32
DAOS check engine scan phases.
const ( CheckScanPhase_CSP_PREPARE CheckScanPhase = 0 // Initial phase, prepare to start check on related engines. CheckScanPhase_CSP_POOL_LIST CheckScanPhase = 1 // Pool list consolidation. CheckScanPhase_CSP_POOL_MBS CheckScanPhase = 2 // Pool membership. CheckScanPhase_CSP_POOL_CLEANUP CheckScanPhase = 3 // Pool cleanup. CheckScanPhase_CSP_CONT_LIST CheckScanPhase = 4 // Container list consolidation. CheckScanPhase_CSP_CONT_CLEANUP CheckScanPhase = 5 // Container cleanup. CheckScanPhase_CSP_DTX_RESYNC CheckScanPhase = 6 // DTX resync and cleanup. CheckScanPhase_CSP_OBJ_SCRUB CheckScanPhase = 7 // RP/EC shards consistency verification with checksum scrub if have. CheckScanPhase_CSP_REBUILD CheckScanPhase = 8 // Object rebuild. CheckScanPhase_CSP_AGGREGATION CheckScanPhase = 9 // EC aggregation & VOS aggregation. CheckScanPhase_CSP_DONE CheckScanPhase = 10 // All done. )
func (CheckScanPhase) Descriptor ¶
func (CheckScanPhase) Descriptor() protoreflect.EnumDescriptor
func (CheckScanPhase) Enum ¶
func (x CheckScanPhase) Enum() *CheckScanPhase
func (CheckScanPhase) EnumDescriptor
deprecated
func (CheckScanPhase) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckScanPhase.Descriptor instead.
func (CheckScanPhase) Number ¶
func (x CheckScanPhase) Number() protoreflect.EnumNumber
func (CheckScanPhase) String ¶
func (x CheckScanPhase) String() string
func (CheckScanPhase) Type ¶
func (CheckScanPhase) Type() protoreflect.EnumType
type Fault ¶
type Fault struct { Class CheckInconsistClass `protobuf:"varint,1,opt,name=class,proto3,enum=chk.CheckInconsistClass" json:"class,omitempty"` Strings []string `protobuf:"bytes,2,rep,name=strings,proto3" json:"strings,omitempty"` Uints []uint32 `protobuf:"varint,3,rep,packed,name=uints,proto3" json:"uints,omitempty"` Ints []int32 `protobuf:"varint,4,rep,packed,name=ints,proto3" json:"ints,omitempty"` // contains filtered or unexported fields }
func (*Fault) Descriptor
deprecated
func (*Fault) GetClass ¶
func (x *Fault) GetClass() CheckInconsistClass
func (*Fault) GetStrings ¶
func (*Fault) ProtoMessage ¶
func (*Fault) ProtoMessage()
func (*Fault) ProtoReflect ¶
func (x *Fault) ProtoReflect() protoreflect.Message