Skip to content

Commit

Permalink
ceph: do not use realPath for osd on pvc
Browse files Browse the repository at this point in the history
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: #5996
Signed-off-by: Sébastien Han <seb@redhat.com>
  • Loading branch information
leseb committed Aug 19, 2020
1 parent 713d3ec commit 944d8cb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/daemon/ceph/osd/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 944d8cb

Please sign in to comment.