diff options
author | Dan Smith <dansmith@redhat.com> | 2018-03-06 10:47:58 -0800 |
---|---|---|
committer | Dan Smith <dansmith@redhat.com> | 2018-03-07 10:35:32 -0800 |
commit | 64635ba18d76057fdc81a459a9a5366044f7441a (patch) | |
tree | da1b98ae3873ec3f96827b20675e4242e2cc26f0 /gate | |
parent | 9d5757c6e13dfca333a8eae9fc4cb4f14dfd6e50 (diff) | |
download | nova-64635ba18d76057fdc81a459a9a5366044f7441a.tar.gz |
Run post-test archive against cell1
Change-Id: I4af326fe66f0cf24ede8a8b7a8ce0e528c4f437c
Diffstat (limited to 'gate')
-rwxr-xr-x | gate/post_test_hook.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gate/post_test_hook.sh b/gate/post_test_hook.sh index e696b795cd..320c839db5 100755 --- a/gate/post_test_hook.sh +++ b/gate/post_test_hook.sh @@ -6,7 +6,7 @@ function archive_deleted_rows { # NOTE(danms): Run this a few times to make sure that we end # up with nothing more to archive for i in `seq 30`; do - $MANAGE db archive_deleted_rows --verbose --max_rows 1000 + $MANAGE $* db archive_deleted_rows --verbose --max_rows 1000 RET=$? if [[ $RET -gt 1 ]]; then echo Archiving failed with result $RET @@ -18,12 +18,21 @@ function archive_deleted_rows { done } -archive_deleted_rows +BASE=${BASE:-/opt/stack} +source ${BASE}/new/devstack/functions-common +source ${BASE}/new/devstack/lib/nova +cell_conf=$(conductor_conf 1) +# NOTE(danms): We need to pass the main config to get the api db +# bits, and then also the cell config for the cell1 db (instead of +# the cell0 config that is in the main config file). Later files +# take precedence. +conf="--config-file $NOVA_CONF --config-file $cell_conf" + +archive_deleted_rows $conf set -e # We need to get the admin credentials to run the OSC CLIs for Placement. set +x -BASE=${BASE:-/opt/stack} source $BASE/new/devstack/openrc admin set -x |