summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-19 18:15:42 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-19 18:15:42 +0900
commitfe0f78ff802a48951f2f5771cdd38b263f49a0c6 (patch)
treee3b9721ba1414c41f26413303d8151b9dc0173ce
parentd0c8723c26613391a3a7cab2e887d3f6e0e03a0c (diff)
fix the way to get controller IPs
Change-Id: I5c449ac13d804aa1a65c703fc1e6b0caa70ff142 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-rwxr-xr-xtests/run.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 42600dac..abbe2485 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -215,8 +215,10 @@ start_consumer() {
# avoid some network problems dpends on infra and installers.
# This tunnel will be terminated by stop_consumer() or after 10 mins passed.
if [[ "$INSTALLER_TYPE" == "apex" ]] ; then
- CONTROLLER_IPS=$(nova list | grep ' overcloud-controller-[0-9] ' \
- | sed -e 's/^.*ctlplane=//' -e 's/ *|$//')
+ CONTROLLER_IPS=$(sudo ssh $ssh_opts $INSTALLER_IP \
+ "source stackrc; \
+ nova list | grep ' overcloud-controller-[0-9] ' \
+ | sed -e 's/^.*ctlplane=//' -e 's/ *|\$//'")
fi
if [[ -z "$CONTROLLER_IPS" ]]; then
echo "ERROR: Could not get CONTROLLER_IPS."