X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopendaylight-infra-copy-ssh-keys.sh;h=493f776b7549cda38814220fa9dfcf1ab70c63b6;hb=4f6fc327eb4e6a1c66b9327fa555868d3bdd6c61;hp=cce9296371d1d054be7425e656f7d0a872b3902a;hpb=0a3c84bce0b23dfa756cf4ebfa275eabc344b1b3;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-copy-ssh-keys.sh b/jjb/opendaylight-infra-copy-ssh-keys.sh index cce929637..493f776b7 100644 --- a/jjb/opendaylight-infra-copy-ssh-keys.sh +++ b/jjb/opendaylight-infra-copy-ssh-keys.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -11,9 +11,6 @@ echo "----------> Copy ssh public keys to csit lab" -# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091 -source "/tmp/v/openstack/bin/activate" - function copy-ssh-keys-to-slave() { RETRIES=60 for j in $(seq 1 $RETRIES); do @@ -24,6 +21,11 @@ function copy-ssh-keys-to-slave() { break elif [ "$j" -eq $RETRIES ]; then echo "SSH not responding on ${i} after $RETIRES tries. Giving up." + + server=$(openstack port list -f value -c device_id --fixed-ip ip-address="${i}") + echo "Dumping console logs for $server ${i}" + openstack console log show "$server" + exit 1 else echo "SSH not responding on ${i}. Retrying in 10 seconds..."