Merge pull request #9259 from parth-gr/deviceClass

osd: update existing OSDs with deviceClass
This commit is contained in:
Sébastien Han authored and GitHub committed 2021-11-29 18:06:08 +01:00
commit 83f7c2be87
1 file changed
+3 -1
+3 -1
View File
@@ -126,7 +126,9 @@ func (c *updateConfig) updateExistingOSDs(errs *provisionErrors) {
}
// backward compatibility for old deployments
if osdInfo.DeviceClass == "" {
// Checking DeviceClass with None too, because ceph-volume lvm list return crush device class as None
// Tracker https://tracker.ceph.com/issues/53425
if osdInfo.DeviceClass == "" || osdInfo.DeviceClass == "None" {
deviceClassInfo, err := cephclient.OSDDeviceClasses(c.cluster.context, c.cluster.clusterInfo, []string{strconv.Itoa(osdID)})
if err != nil {
logger.Errorf("failed to get device class for existing deployment %q. %v", depName, err)