X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-get-slave-addresses.sh;h=98cd3db7b34038a182f2222752aad9157730587d;hb=a6a5ff9147b21654d54e33685ac05ae9e53556b0;hp=9f57dfc7ae72388bb329bfc6da15c2545330008c;hpb=3f313ec79d6e3a01899b60fb43736500e2cb6227;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-get-slave-addresses.sh b/jjb/integration/integration-get-slave-addresses.sh index 9f57dfc7a..98cd3db7b 100644 --- a/jjb/integration/integration-get-slave-addresses.sh +++ b/jjb/integration/integration-get-slave-addresses.sh @@ -1,4 +1,13 @@ -#!/bin/bash +#!/bin/bash -l + +# shellcheck disable=SC1090 +. ~/lf-env.sh + +lf-activate-venv --python python3 \ + python-heatclient \ + python-openstackclient \ + yq + # Get the Controller and Tools VM slave addresses set -x @@ -8,9 +17,6 @@ TOOLS_SYSTEM=() OPENSTACK_SYSTEM=() OPENSTACK_CONTROLLERS=() -OPENSTACK_VENV="/tmp/v/openstack" -# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091 -source $OPENSTACK_VENV/bin/activate mapfile -t ADDR <<< "$(openstack stack show -f json -c outputs "$STACK_NAME" | jq -r '.outputs[] | select(.output_key | match("^vm_[0-9]+_ips$")) | .output_value | .[]')" # The next two blocks of code will parse the list of vm IP's hostnames to determine which type of node