New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osd: Add cephcluster status for deprecated osds to replace #14187
Conversation
@travisn Do you recall whether OSD on PVC is created about all configurations in main. If unsure, I can help you to verify it. In addition, it's better to describe what lvm mode and raw mode are. Since OSD modes are not explained well in both rook (and ceph!), most users would not know about them at all. In addtion, it's better to write down replaced OSDs will be created as raw mode without any modification of CephCluster CR. |
I could not find how to create new OSDs on PVCs in LVM mode in the current code base. Even encrypted OSDs or OSDs with a metadata device are using raw mode when on PVCs. But I will look again to see if I missed any scenarios. If it is still possible to create new OSDs like this, then I need to be more limited about this deprecation message.
I will think more about this message. But I don't think they need to fully understand these mode, it is just important to know that we recommend they replace them. |
57c6c0f
to
312ddef
Compare
Based on feedback, renaming the output and making it more efficient to avoid duplicating the message. Now the output is: storage:
deprecatedOSDs:
LVM-based OSDs on a PVC are deprecated, see documentation on replacing OSDs:
- 0
- 1
- 2
deviceClasses:
- name: hdd |
LVM-based OSDs on PVCs are legacy and are not well tested. Therefore, we add status to the cephcluster CR that at least gives a clue that the OSDs should be replaced. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
312ddef
to
3628e83
Compare
@satoru-takeuchi Looking again into the OSD creation, all OSDs on PVCs appear to always be created in raw mode. See here inside the initializeBlockPVC() method: rook/pkg/daemon/ceph/osd/volume.go Lines 237 to 239 in 5e3d623
I cannot find in my testing or in the code anywhere that lvm-mode OSDs can be created on PVCs. Therefore, I propose we declare them officially deprecated and with this status request that they be replaced, as they will be difficult to support. But if there is still some scenario where we will need to support these type of OSDs, at least this status does not prevent them from running. |
osd: Add cephcluster status for deprecated osds to replace (backport #14187)
osd: Add cephcluster status for deprecated osds to replace (backport #14187)
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:
Checklist: