aboutsummaryrefslogtreecommitdiffstats
path: root/test/ete/scripts
diff options
context:
space:
mode:
authorgwu <gary.i.wu@huawei.com>2018-07-17 10:54:45 -0700
committergwu <gary.i.wu@huawei.com>2018-07-17 10:54:45 -0700
commit8ca410be989d3fe80a03b253db5a170d3386c4cb (patch)
treeb11fad5220be1a2b0642bc86bf9c5d61d87168e7 /test/ete/scripts
parent58e716f9b3bb281b23df2d6dca3986b04ae2e159 (diff)
Add script to report docker versions on HEAT
Change-Id: I213c7600132a0066e1b615c89787525b679fcadb Issue-ID: INT-532 Signed-off-by: gwu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/ete/scripts')
-rwxr-xr-xtest/ete/scripts/get-docker-versions.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ete/scripts/get-docker-versions.sh b/test/ete/scripts/get-docker-versions.sh
new file mode 100755
index 000000000..9c6ad62b6
--- /dev/null
+++ b/test/ete/scripts/get-docker-versions.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+IFS=$'\n'
+SERVERS=$(openstack server list -f json | jq -r '.[] | .Name + " " + .Networks' )
+for SERVER in $SERVERS; do
+ NAME=$(echo $SERVER | cut -d ' ' -f 1)
+ IP_ADDR=$(echo $SERVER | cut -d ' ' -f 3)
+ echo $NAME=$IP_ADDR
+ ssh root@$IP_ADDR "docker ps -a | grep -v CONTAINER | LC_ALL=C sort"
+done