diff options
author | 2018-07-17 20:55:13 +0000 | |
---|---|---|
committer | 2018-07-17 20:55:13 +0000 | |
commit | fb4b8fb98af42e61dff04a335809c268da1eb006 (patch) | |
tree | 65ba74647eda605bf65a2935d0d84c10cb898e01 /test/ete/scripts/get-docker-versions.sh | |
parent | 2718f330d973d8814b6fad5c634260240d7b9d97 (diff) | |
parent | 8ca410be989d3fe80a03b253db5a170d3386c4cb (diff) |
Merge "Add script to report docker versions on HEAT"
Diffstat (limited to 'test/ete/scripts/get-docker-versions.sh')
-rwxr-xr-x | test/ete/scripts/get-docker-versions.sh | 10 |
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 |