diff options
author | Julia Kreger <juliaashleykreger@gmail.com> | 2022-09-30 11:26:17 -0700 |
---|---|---|
committer | Julia Kreger <juliaashleykreger@gmail.com> | 2022-10-13 10:54:55 -0700 |
commit | 9344eb22d1462457fb5b521a19856f9a6cb1088e (patch) | |
tree | 9b4fee3e11708c7ef8c28c788b4740f96fd4f780 /devstack/lib/ironic | |
parent | cbaa871b255d81594fa35ac21c5ed391f0f47b74 (diff) | |
download | ironic-9344eb22d1462457fb5b521a19856f9a6cb1088e.tar.gz |
Add upgrade check warning for allocations db
Adding an upgrade check to provide awareness to the state of
the database in regards if an unexpected engine is in use or
if the character set encoding is also not UTF8.
These will raise non-fatal warnings on the upgrade status
check.
Change-Id: Ide0eb4690a056be557e5ea7d5ba5f6be37b50d0a
Story: 2010384
Diffstat (limited to 'devstack/lib/ironic')
-rw-r--r-- | devstack/lib/ironic | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 08cccce7a..154dc665d 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -1924,6 +1924,11 @@ function init_ironic { # NOTE(rloo): We're not upgrading but want to make sure this command works, # even though we're not parsing the output of this command. $IRONIC_BIN_DIR/ironic-status upgrade check + + $IRONIC_BIN_DIR/ironic-status upgrade check && ret_val=$? || ret_val=$? + if [ $ret_val -gt 1 ] ; then + die $LINENO "The `ironic-status upgrade check` command returned an error. Cannot proceed." + fi } # _ironic_bm_vm_names() - Generates list of names for baremetal VMs. |