KaaSCephOperationRequest OSD removal specification¶
This section describes the KaaSCephOperationRequest
CR specification used
to automatically create a CephOsdRemoveRequest
request. For the procedure
workflow, see Creating a Ceph OSD removal request.
Parameter |
Description |
---|---|
|
Describes the definition for the |
|
Defines spec:
kaasCephCluster:
name: kaas-mgmt
namespace: default
|
Parameter |
Description |
---|---|
|
Map of Kubernetes nodes that specifies how to remove Ceph OSDs: by host-devices or OSD IDs. For details, see KaaSCephOperationRequest ‘nodes’ parameters spec. |
|
Flag that indicates whether a request is ready to execute removal. Can only be manually enabled by the Operator. For example: spec:
osdRemove:
approve: true
|
|
Flag used to keep requests in handling and not to proceed to the next
request if the If the For example: spec:
osdRemove:
keepOnFail: true
|
|
Optional. Flag that marks a finished request, even if it failed, to keep it in history. It allows resuming the Ceph Controller reconciliation without removing the failed request. The flag is used only by Ceph Controller and has no effect on request processing. Can only be manually specified. For example: spec:
osdRemove:
resolved: true
|
|
Optional. Flag used to resume a failed request and proceed with Ceph OSD
removal if the spec:
osdRemove:
resumeFailed: true
|
Parameter |
Description |
---|---|
|
Flag used to clean up an entire node and drop it from the CRUSH map.
Mutually exclusive with |
|
List that describes devices to clean up by name or device path as they
were specified in
Warning Since Container Cloud 2.25.0, Mirantis does not recommend
setting device For details, see Addressing storage devices. |
|
List of Ceph OSD IDs to remove. Mutually exclusive with
|
Example of KaaSCephOperationRequest
with
spec.osdRemove.nodes
apiVersion: kaas.mirantis.com/v1alpha1
kind: KaaSCephOperationRequest
metadata:
name: remove-osd-request
namespace: default
spec:
kaasCephCluster:
name: kaas-mgmt
namespace: default
osdRemove:
nodes:
"node-a":
completeCleanUp: true
"node-b":
cleanupByOsdId: [1, 15, 25]
"node-c":
cleanupByDevice:
- name: "sdb"
- path: "/dev/disk/by-path/pci-0000:00:1c.5"
- path: "/dev/disk/by-id/scsi-SATA_HGST_HUS724040AL_PN1334PEHN18ZS"
The example above includes the following actions:
For
node-a
, full cleanup, including all OSDs on the node, node drop from the CRUSH map, and cleanup of all disks used for Ceph OSDs on this node.For
node-b
, cleanup of Ceph OSDs with IDs1
,15
, and25
along with the related disk information.For
node-c
, cleanup of the device with namesdb
, the device with path ID/dev/disk/by-path/pci-0000:00:1c.5
, and the device withby-id
/dev/disk/by-id/scsi-SATA_HGST_HUS724040AL_PN1334PEHN18ZS
, dropping of OSDs running on these devices.