aboutsummaryrefslogtreecommitdiffstats
path: root/test/ete/scripts
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2018-07-17 20:55:13 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-17 20:55:13 +0000
commitfb4b8fb98af42e61dff04a335809c268da1eb006 (patch)
tree65ba74647eda605bf65a2935d0d84c10cb898e01 /test/ete/scripts
parent2718f330d973d8814b6fad5c634260240d7b9d97 (diff)
parent8ca410be989d3fe80a03b253db5a170d3386c4cb (diff)
Merge "Add script to report docker versions on HEAT"
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