Run local script after nova cellsv2 is configured
If user try to create a server in local script before nova cells is configured, it will run into the following error: Host 'x' is not mapped to any cell. Change-Id: I4fe76865fd6e16d5beb5ed9e5d6a9f3542e990a5
This commit is contained in:
parent
8408edbdfd
commit
7880904d15
18
stack.sh
18
stack.sh
@ -1385,15 +1385,6 @@ run_phase stack extra
|
||||
merge_config_group $TOP_DIR/local.conf post-extra
|
||||
|
||||
|
||||
# Run local script
|
||||
# ----------------
|
||||
|
||||
# Run ``local.sh`` if it exists to perform user-managed tasks
|
||||
if [[ -x $TOP_DIR/local.sh ]]; then
|
||||
echo "Running user script $TOP_DIR/local.sh"
|
||||
$TOP_DIR/local.sh
|
||||
fi
|
||||
|
||||
# Sanity checks
|
||||
# =============
|
||||
|
||||
@ -1428,6 +1419,15 @@ if is_service_enabled n-api; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Run local script
|
||||
# ----------------
|
||||
|
||||
# Run ``local.sh`` if it exists to perform user-managed tasks
|
||||
if [[ -x $TOP_DIR/local.sh ]]; then
|
||||
echo "Running user script $TOP_DIR/local.sh"
|
||||
$TOP_DIR/local.sh
|
||||
fi
|
||||
|
||||
# Bash completion
|
||||
# ===============
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user