CephOsdRemoveRequest OSD removal specification¶
Warning
This procedure is valid for MOSK clusters that use the MiraCeph custom
resource (CR), which is available since MOSK 25.2 to replace the unsupported
KaaSCephCluster resource. And MiraCeph will be automatically migrated
to CephDeployment in MOSK 26.1. For details, see Deprecation Notes:
KaaSCephCluster API on management clusters.
For the equivalent procedure with the unsupported KaaSCephCluster CR, refer
to the following section:
This section describes the CephOsdRemoveRequest CR specification.
For the procedure workflow, see Creating a Ceph OSD removal request.
CephOsdRemoveRequest parameters spec¶
Parameter |
Description |
|---|---|
|
Map of Kubernetes nodes that specifies how to remove Ceph OSDs: by host-devices or OSD IDs. For details, see CephOsdRemoveRequest 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:
approve: true
|
|
Flag used to keep requests in handling and not to proceed to the next
request if the If the For example: spec:
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:
resolved: true
|
|
Optional. Flag used to resume a failed request and proceed with Ceph OSD
removal if the spec:
resumeFailed: true
|
CephOsdRemoveRequest nodes parameters spec¶
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 Mirantis does not recommend setting device |
|
List of Ceph OSD IDs to remove. Mutually exclusive with
|
Example of CephOsdRemoveRequest with
spec.nodes
apiVersion: kaas.mirantis.com/v1alpha1
kind: CephOsdRemoveRequest
metadata:
name: remove-osd-request
namespace: ceph-lcm-mirantis
spec:
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, and25along 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.