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:
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user