- # get the dependencies - temporary fix for RC0
- [[ -d $WORKSPACE/$INSTALLER/build ]] || mkdir -p $WORKSPACE/$INSTALLER/build
- cp /home/jenkins/Downloads/opnfv_iso/* $WORKSPACE/$INSTALLER/build/
+ # verify we are in venv
+ if [[ ! $(which python | grep venv) ]]; then
+ echo "Unable to activate venv...Exiting"
+ exit 1
+ fi
+
+ python $WORKSPACE/releng/utils/lab-reconfiguration/reconfigUcsNet.py -i $ucs_host -u $ucs_user -p $ucs_password -f $WORKSPACE/releng/utils/lab-reconfiguration/foreman.yaml
+
+ # while undergoing reboot
+ sleep 30
+
+ # check to see if slave is back up
+ ping_counter=0
+ ping_flag=0
+ while [ "$ping_counter" -lt 20 ]; do
+ if [[ $(ping -c 5 172.30.10.72) ]]; then
+ ping_flag=1
+ break
+ fi
+ ((ping_counter++))
+ sleep 10
+ done
+
+ if [ "$ping_flag" -eq 1 ]; then
+ echo "Slave is pingable, now wait 60 seconds for services to start"
+ sleep 60
+ else
+ echo "Slave did not come back up after reboot: please check opnfv-jump-2"
+ exit 1
+ fi
+
+ set +o nounset
+ deactivate