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:
Satoru Takeuchi authored and Mergify committed 2022-09-13 17:36:47 +00:00
1 parent 06498701e3
commit eabb8dad50
1 file changed
+1
+1
View File
@@ -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
}
}