summaryrefslogtreecommitdiffstats
path: root/tools/maas/deploy.sh
diff options
context:
space:
mode:
authorBryan Sullivan <bryan.sullivan@att.com>2017-10-31 07:20:28 -0700
committerBryan Sullivan <bryan.sullivan@att.com>2017-10-31 07:20:28 -0700
commit63533a0058f9e313dbd818fceb5551813f0a8950 (patch)
tree2ee24c53d5d4c61263f615d9910b620a093099f6 /tools/maas/deploy.sh
parent4518364b4ce515884eadf476ae6db021210bd7f0 (diff)
Add log function; fix line endings
JIRA: MODELS-23 Change-Id: Ie464181659db2d229dc83b9877dea2a64d6bb06b Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/maas/deploy.sh')
-rw-r--r--tools/maas/deploy.sh8
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