From 944d8cb209f5f74d95d8d163205ae7470bbe14c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 19 Aug 2020 10:37:32 +0200 Subject: [PATCH] ceph: do not use realPath for osd on pvc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is fine to use /mnt/set1-data-0-k47mc, it looks like I thought there was an issue with udev but there is none... Closes: https://github.com/rook/rook/issues/5996 Signed-off-by: Sébastien Han --- pkg/daemon/ceph/osd/daemon.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/daemon/ceph/osd/daemon.go b/pkg/daemon/ceph/osd/daemon.go index a1d3d163e..33fe4d6fd 100644 --- a/pkg/daemon/ceph/osd/daemon.go +++ b/pkg/daemon/ceph/osd/daemon.go @@ -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 }