From 9860876f5dbb07826b680143a4e111ad580053fe Mon Sep 17 00:00:00 2001 From: Amrith Kumar Date: Wed, 8 Apr 2015 15:37:58 -0400 Subject: [PATCH] perform install_infra sooner in stack.sh The install_infra() call needs to be done earlier since pip_install_gr() depends on it. Also the fact that python module names are supposed to be lower case but some use camel case is a problem (for example with XenAPI). Change-Id: I7012d77134fa0d9c746d87e837934e7dcb337e5c Closes-Bug: #1441820 --- inc/python | 2 +- stack.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/python b/inc/python index c7cbb52884..3d329b59a9 100644 --- a/inc/python +++ b/inc/python @@ -137,7 +137,7 @@ function pip_install { # get_from_global_requirements function get_from_global_requirements { local package=$1 - local required_pkg=$(grep -h ^${package} $REQUIREMENTS_DIR/global-requirements.txt | cut -d\# -f1) + local required_pkg=$(grep -i -h ^${package} $REQUIREMENTS_DIR/global-requirements.txt | cut -d\# -f1) if [[ $required_pkg == "" ]]; then die $LINENO "Can't find package $package in requirements" fi diff --git a/stack.sh b/stack.sh index 69b76a9e19..9ecc49c7ca 100755 --- a/stack.sh +++ b/stack.sh @@ -714,6 +714,9 @@ fi # Extras Pre-install # ------------------ +# Install required infra support libraries +install_infra + # Phase: pre-install run_phase stack pre-install @@ -733,9 +736,6 @@ fi echo_summary "Installing OpenStack project source" -# Install required infra support libraries -install_infra - # Install Oslo libraries install_oslo