rook / rook

Storage Orchestration for Kubernetes
https://rook.io
Apache License 2.0
12.01k stars 2.65k forks source link

osd: Add cephcluster status for deprecated osds to replace (backport #14187) #14195

Closed mergify[bot] closed 2 weeks ago

mergify[bot] commented 2 weeks ago

To follow up from #14100, we add status to the cephcluster CR that at least gives a clue that the OSDs should be replaced. LVM-based OSDs on PVCs are legacy and are not well tested, so this is a small attempt to raise that fact in the status, even while we still attempt to keep them running.

This will result in status on the CephCluster such as:

  status:
    storage:
      deviceClasses:
      - name: hdd
      legacyOSDs:
      - id: 0
        reason: LVM-based OSD on a PVC (id=0) is deprecated and should be replaced
      - id: 1
        reason: LVM-based OSD on a PVC (id=1) is deprecated and should be replaced
      - id: 2
        reason: LVM-based OSD on a PVC (id=2) is deprecated and should be replaced
      osd:
        storeType:
          bluestore: 3

Checklist: