From 8ca410be989d3fe80a03b253db5a170d3386c4cb Mon Sep 17 00:00:00 2001 From: gwu Date: Tue, 17 Jul 2018 10:54:45 -0700 Subject: Add script to report docker versions on HEAT Change-Id: I213c7600132a0066e1b615c89787525b679fcadb Issue-ID: INT-532 Signed-off-by: gwu --- test/ete/scripts/get-docker-versions.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 test/ete/scripts/get-docker-versions.sh (limited to 'test') 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 -- cgit 1.2.3-korg