diff options
Diffstat (limited to 'tools/maas/deploy.sh')
-rw-r--r-- | tools/maas/deploy.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |