CephOsdRemoveTask#
The CephOsdRemoveTask object is used for Ceph Object Storage Daemon (OSD) lifecycle management (LCM). It allows the operator to manage the removal of OSDs from the cluster.
Spec#
The spec section describes what should be cleaned up:
nodes:A mapping of node names with specifications:completeCleanUp:Boolean flag for full node cleanup (including removal from the CRUSH map).dropFromCrush:Remove the OSD from the cluster without cleaning devices.cleanupStrayPartitions:Clean only stray partitions.cleanupByOsdId:List of OSD IDs to remove.cleanupByDevice:List of devices to clean (by name or path).
- Additional fields include
approve,resolved.
Example:
apiVersion: lcm.mirantis.com/v1alpha1
kind: CephOsdRemoveTask
metadata:
name: remove-osd-task
namespace: pelagia
spec:
nodes:
"node-a":
completeCleanUp: true
"node-b":
cleanupByOsd:
- id: 1
- id: 15
- id: 25
"node-c":
cleanupByDevice:
- device: "sdb"
- device: "/dev/disk/by-path/pci-0000:00:1c.5"
- device: "/dev/disk/by-id/scsi-SATA_HGST_HUS724040AL_PN1334PEHN18ZS"
"node-d":
dropFromCrush: true
Status#
The status section provides:
- phase: Current phase of the request (e.g., Pending, Processing, CompletedWithWarnings).
- phaseInfo: Additional information about the phase.
- removeInfo: Detailed mapping of what is scheduled for removal.
- failedStepID: Identifier of any failed step.
- messages: List of messages regarding request progress.
- conditions: Historical record of phase transitions and status changes.
Example:
status:
removeInfo:
cleanupMap:
"node-a":
completeCleanUp: true
hostRemoveStatus:
status: Removed
osdMapping:
"2":
removeStatus:
osdRemoveStatus:
status: Removed
deploymentRemoveStatus:
status: Removed
name: "rook-ceph-osd-2"
deviceCleanUpJob:
status: Finished
name: "job-name-for-osd-2"
deviceMapping:
"sdb":
path: "/dev/disk/by-path/pci-0000:00:0a.0"
partition: "/dev/ceph-a-vg_sdb/osd-block-b-lv_sdb"
type: "block"
class: "hdd"
zapDisk: true