Do not fail when saving databases

Nova now has multiple databases, let's add them to the list
nova-api nova_cell0 nova_cell1

Since it's hard to detect which set of databases are present,
we should disable bailing out when trying to save these.

Change-Id: I075eb5a88113acfa36519e2c6e2aab87836be065
This commit is contained in:
Davanum Srinivas 2017-08-12 11:49:10 -04:00
parent 1e3a981a6c
commit 377780e774
2 changed files with 3 additions and 1 deletions

View File

@ -37,9 +37,11 @@ function save_mysql_dbs {
set +o xtrace &&
source $dir/stackrc &&
echo ${DATABASE_USER:-root})
set +e
for db in $DATABASES_TO_SAVE; do
mysqldump -u$database_user -p$mysql_pass $db >$SAVE_DIR/$db.sql.$release
done
set -e
}
# register a database we should save

View File

@ -1,4 +1,4 @@
if is_service_enabled nova; then
register_project_for_upgrade nova
register_db_to_save nova
register_db_to_save nova nova-api nova_cell0 nova_cell1
fi