Move init_grenade_db to base release installation

init_grenade_db will clean the db file. If we are running grenade -t
we expect the db have resources saved at base run. so move it down to
run only for base installation.

Change-Id: I39fcee54db08c163352d314d68e014191a43d07c
Closes-bug: #1488008
This commit is contained in:
Yongfeng Du 2015-08-25 14:24:35 +08:00
parent 2eaf7fb2f8
commit c215ce2d90
1 changed files with 3 additions and 3 deletions

View File

@ -184,9 +184,6 @@ source $GRENADE_DIR/functions
# scripts.
export TOP_DIR=$TARGET_DEVSTACK_DIR
# Initialize grenade_db local storage, used for resource tracking
init_grenade_db
# Install 'Base' Build of OpenStack
# =================================
@ -208,6 +205,9 @@ load_settings
# Run the base install of the environment
if [[ "$RUN_BASE" == "True" ]]; then
# Initialize grenade_db local storage, used for resource tracking
init_grenade_db
echo_summary "Running base stack.sh"
cd $BASE_DEVSTACK_DIR
GIT_BASE=$GIT_BASE ./stack.sh