6 # check to see if ucs login info file exists
7 if [ -e ~/.ssh/ucs_creds ];then
8 source ~/.ssh/ucs_creds
10 echo "Unable to find UCS credentials for LF lab reconfiguration...Exiting"
15 echo "Cloning releng repo..."
16 if ! GIT_SSL_NO_VERIFY=true git clone https://gerrit.opnfv.org/gerrit/releng; then
17 echo "Unable to clone releng repo...Exiting"
22 echo "Starting the lab reconfiguration for $INSTALLER_TYPE..."
23 echo "--------------------------------------------------------"
27 $WORKSPACE/releng/utils/lab-reconfiguration/create_venv.sh
29 # disable nounset because 'activate' script contains unbound variable(s)
32 source $WORKSPACE/releng/utils/lab-reconfiguration/venv/bin/activate
33 # set nounset back again
36 # verify we are in venv
37 if [[ ! $(which python | grep venv) ]]; then
38 echo "Unable to activate venv...Exiting"
42 python $WORKSPACE/releng/utils/lab-reconfiguration/reconfigUcsNet.py -i $ucs_host -u $ucs_user -p $ucs_password -f $WORKSPACE/releng/utils/lab-reconfiguration/fuel.yaml
44 # while undergoing reboot
47 # check to see if slave is back up
50 while [ "$ping_counter" -lt 20 ]; do
51 if [[ $(ping -c 5 172.30.10.72) ]]; then
59 if [ "$ping_flag" -eq 1 ]; then
60 echo "Slave is pingable, now wait 180 seconds for services to start"
63 echo "Slave did not come back up after reboot: please check opnfv-jump-2"
71 echo "--------------------------------------------------------"