X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopendaylight-infra-copy-ssh-keys.sh;fp=jjb%2Fopendaylight-infra-copy-ssh-keys.sh;h=5436930ee7fe5d1eea1d56de0a49f97653b7fd2e;hb=b0b0eafa61fdd30bff0efcdc46959be5ec6c5239;hp=0fad4bf1c1b16ead99e20714f58c6687afa307e4;hpb=914188cb2e13e9e12cfe15ec969d584ad3d67683;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-copy-ssh-keys.sh b/jjb/opendaylight-infra-copy-ssh-keys.sh index 0fad4bf1c..5436930ee 100644 --- a/jjb/opendaylight-infra-copy-ssh-keys.sh +++ b/jjb/opendaylight-infra-copy-ssh-keys.sh @@ -16,18 +16,10 @@ function copy-ssh-keys-to-slave() { done } -# TODO: Remove condition when we no longer use JClouds plugin -if [ -z "$JCLOUDS_IPS" ]; then - # If JCLOUDS_IPS is not set then we will spawn instances with - # OpenStack Heat. - source $WORKSPACE/.venv-openstack/bin/activate - CONTROLLER_IPS=`openstack --os-cloud rackspace stack show -f json -c outputs $STACK_NAME | jq -r '.outputs[] | select(.output_key=="vm_0_ips") | .output_value[]'` - MININET_IPS=`openstack --os-cloud rackspace stack show -f json -c outputs $STACK_NAME | jq -r '.outputs[] | select(.output_key=="vm_1_ips") | .output_value[]'` - ADDR=($CONTROLLER_IPS $MININET_IPS) -else - echo "OpenStack IPS are ${JCLOUDS_IPS}" - IFS=',' read -ra ADDR <<< "${JCLOUDS_IPS}" -fi +source $WORKSPACE/.venv-openstack/bin/activate +CONTROLLER_IPS=`openstack --os-cloud rackspace stack show -f json -c outputs $STACK_NAME | jq -r '.outputs[] | select(.output_key=="vm_0_ips") | .output_value[]'` +MININET_IPS=`openstack --os-cloud rackspace stack show -f json -c outputs $STACK_NAME | jq -r '.outputs[] | select(.output_key=="vm_1_ips") | .output_value[]'` +ADDR=($CONTROLLER_IPS $MININET_IPS) pids="" for i in "${ADDR[@]}"; do