diff --git a/plugins/actions/validate.py b/plugins/actions/validate.py index f990d8340..8ca428cc5 100644 --- a/plugins/actions/validate.py +++ b/plugins/actions/validate.py @@ -91,12 +91,13 @@ class ActionModule(ActionBase): notario.validate(host_vars, non_collocated_osd_scenario, defined_keys=True) if host_vars["osd_scenario"] == "lvm": - if host_vars.get("devices"): - notario.validate(host_vars, lvm_batch_scenario, defined_keys=True) - elif notario_store['osd_objectstore'] == 'filestore': - notario.validate(host_vars, lvm_filestore_scenario, defined_keys=True) - elif notario_store['osd_objectstore'] == 'bluestore': - notario.validate(host_vars, lvm_bluestore_scenario, defined_keys=True) + if not host_vars.get("osd_auto_discovery", False): + if host_vars.get("devices"): + notario.validate(host_vars, lvm_batch_scenario, defined_keys=True) + elif notario_store['osd_objectstore'] == 'filestore': + notario.validate(host_vars, lvm_filestore_scenario, defined_keys=True) + elif notario_store['osd_objectstore'] == 'bluestore': + notario.validate(host_vars, lvm_bluestore_scenario, defined_keys=True) except Invalid as error: display.vvvv("Notario Failure: %s" % str(error))