From 63533a0058f9e313dbd818fceb5551813f0a8950 Mon Sep 17 00:00:00 2001 From: Bryan Sullivan Date: Tue, 31 Oct 2017 07:20:28 -0700 Subject: Add log function; fix line endings JIRA: MODELS-23 Change-Id: Ie464181659db2d229dc83b9877dea2a64d6bb06b Signed-off-by: Bryan Sullivan --- tools/maas/deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/maas/deploy.sh') diff --git a/tools/maas/deploy.sh b/tools/maas/deploy.sh index 18373cc..1c0880f 100644 --- a/tools/maas/deploy.sh +++ b/tools/maas/deploy.sh @@ -29,17 +29,17 @@ function wait_node_status() { status=$(maas opnfv machines read hostname=$1 | jq -r ".[0].status_name") while [[ "x$status" != "x$2" ]]; do - echo "$1 status is $status ... waiting for it to be $2" + echo "$0 $(date): $1 status is $status ... waiting for it to be $2" sleep 30 status=$(maas opnfv machines read hostname=$1 | jq -r ".[0].status_name") done - echo "$1 status is $status" + echo "$0 $(date): $1 status is $status" } function release_nodes() { nodes=$1 for node in $nodes; do - echo "Releasing node $node" + echo "$0 $(date): Releasing node $node" id=$(maas opnfv machines read hostname=$node | jq -r '.[0].system_id') maas opnfv machines release machines=$id done @@ -48,7 +48,7 @@ function release_nodes() { function deploy_nodes() { nodes=$1 for node in $nodes; do - echo "Deploying node $node" + echo "$0 $(date): Deploying node $node" id=$(maas opnfv machines read hostname=$node | jq -r '.[0].system_id') maas opnfv machines allocate system_id=$id maas opnfv machine deploy $id -- cgit