From 7880904d15c1dbbea5c26ece1a30eb0850bf10ab Mon Sep 17 00:00:00 2001 From: Jacky Hu Date: Mon, 26 Feb 2018 18:36:59 +0800 Subject: [PATCH] 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 --- stack.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stack.sh b/stack.sh index 1d1f12e116..1803169e2d 100755 --- a/stack.sh +++ b/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 # ===============