ci: disallow to create osd on lv with metadata by accident
OSD on LV with metadata device is not supported. So we once we made
a fix to disallow this configuration. However, it's insuffucient
because we forgot to reset `matched` flag.
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 39cc6059f1)
This commit is contained in:
1 parent
06498701e3
commit
eabb8dad50
1 file changed
+1
@@ -499,6 +499,7 @@ func getAvailableDevices(context *clusterd.Context, agent *OsdAgent) (*DeviceOsd
|
||||
}
|
||||
if desiredDevice.MetadataDevice != "" {
|
||||
logger.Infof("logical volume %q is not picked because OSD on LV with metadata device is not allowed", device.Name)
|
||||
matched = false
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user