Skip to content

Commit

Permalink
Merge pull request #6120 from leseb/fix-5996
Browse files Browse the repository at this point in the history
ceph: do not use realPath for osd on pvc
  • Loading branch information
leseb committed Aug 19, 2020
2 parents 1111f7b + 944d8cb commit aa5362d
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 aa5362d

Please sign in to comment.