Skip to content

Commit

Permalink
ceph: only use realPath on encryption
Browse files Browse the repository at this point in the history
The encryption scenario needs to use the /dev path instead of /mnt so
that the udev call from c-v can succeed.

Closes: #5996
Signed-off-by: Sébastien Han <seb@redhat.com>
  • Loading branch information
leseb committed Aug 19, 2020
1 parent 713d3ec commit dc339e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/ceph/osd/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func getAvailableDevices(context *clusterd.Context, agent *OsdAgent) (*DeviceOsd
// 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 {
if agent.pvcBacked && isEncrypted {
matchedDevice.Name = device.RealPath
}
if matched {
Expand Down

0 comments on commit dc339e8

Please sign in to comment.