osd: allow mpath_member filesystem for mpath disks

Multipath devices may have an FSTYPE=mpath_member even though
a valid device for creating an OSD. The device will be allowed
in this case when creating the OSD on a PV since it is a device
specifically provisioned for the OSD.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen committed 2022-12-09 09:42:27 -07:00
1 parent fc5f9e583e
commit 8a94bb20ae
1 file changed
+2
+2
View File
@@ -371,6 +371,8 @@ func getAvailableDevices(context *clusterd.Context, agent *OsdAgent) (*DeviceOsd
// This handles the case where the OSD deployment has been removed and the prepare
// job kicks in again to re-deploy the OSD.
continue
} else if device.Filesystem == "mpath_member" && agent.pvcBacked {
logger.Infof("allowing multipath disk %q with filesystem %q", device.Name, device.Filesystem)
} else {
logger.Infof("skipping device %q because it contains a filesystem %q", device.Name, device.Filesystem)
continue