Merge pull request #6120 from leseb/fix-5996

ceph: do not use realPath for osd on pvc
This commit is contained in:
Sébastien Han authored and GitHub committed 2020-08-19 17:33:46 +02:00
commit aa5362d48d
1 file changed
-6
-6
View File
@@ -438,12 +438,6 @@ func getAvailableDevices(context *clusterd.Context, agent *OsdAgent) (*DeviceOsd
}
matchedDevice = desiredDevice
// On PVC, we must use the real name not the /mnt name since c-v calls udev
// udevadm will fail with
// stderr Unknown device, --name=, --path=, or absolute path in /dev/ or /sys expected.
if agent.pvcBacked {
matchedDevice.Name = device.RealPath
}
if matched {
break
}