Don't fail boot if opencas config is missing

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2020-01-13 10:42:19 +01:00
parent e435f3017a
commit 7cdb71d5b7

View File

@ -109,7 +109,8 @@ def settle(timeout, interval):
not_initialized = opencas.wait_for_startup(timeout, interval) not_initialized = opencas.wait_for_startup(timeout, interval)
except Exception as e: except Exception as e:
eprint(e) eprint(e)
exit(1) # Don't fail the boot if we're missing the config
exit(0)
if not_initialized: if not_initialized:
eprint("Open CAS initialization failed. Couldn't set up all required devices") eprint("Open CAS initialization failed. Couldn't set up all required devices")