blob: 8da1eeb97a550da54617d85408245ee10acfff24 [file] [log] [blame]
Anthony Youngccd4ea32011-11-08 17:25:12 -06001#!/bin/bash
Anthony Young1277eab2011-11-10 14:06:13 -08002# Echo commands, exit on error
3set -o xtrace
4set -o errexit
Anthony Youngccd4ea32011-11-08 17:25:12 -06005
Anthony Young1277eab2011-11-10 14:06:13 -08006TOP_DIR=$(cd ../../.. && pwd)
7HEAD_IP=`cat $TOP_DIR/addresses | grep HEAD | cut -d "=" -f2`
DennyZhang23178a92013-10-22 17:07:32 -05008die_if_not_set $LINENO HEAD_IP "Failure retrieving HEAD_IP"
Anthony Young1277eab2011-11-10 14:06:13 -08009ssh stack@$HEAD_IP 'cd devstack && source openrc && cd exercises && ./floating_ips.sh'