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:
parent
1e3a981a6c
commit
377780e774
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user