summaryrefslogtreecommitdiffstats
path: root/tests/vHello_VES.sh
diff options
context:
space:
mode:
authorbryan <bryan.sullivan@att.com>2017-03-07 08:16:46 -0800
committerbryan <bryan.sullivan@att.com>2017-03-07 08:16:46 -0800
commit93bf70421d2a8abbfbc3889e3e65b0ca4447673f (patch)
tree2e4b082b7396d0891ea6930a789d6c82d5cdac83 /tests/vHello_VES.sh
parentaaaa9301f4ddb0d48926cccf7cd89be196b383cb (diff)
Setup monitor before agents (otherwise they exit)
JIRA: VES-1 Setup config drive for LB agent access to UUID. Change-Id: Ieb877d48007bf02c01a6b763143347ab69207924 Signed-off-by: bryan <bryan.sullivan@att.com>
Diffstat (limited to 'tests/vHello_VES.sh')
-rw-r--r--tests/vHello_VES.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/vHello_VES.sh b/tests/vHello_VES.sh
index 62a266c..116ba14 100644
--- a/tests/vHello_VES.sh
+++ b/tests/vHello_VES.sh
@@ -307,6 +307,11 @@ start() {
assert "models-tacker-vnfd-002 (artifacts creation)" true
assert "models-tacker-vnfd-003 (user_data creation)" true
+ echo "$0: $(date) setup Monitor in VDU4 at ${vdu_ip[4]}"
+ scp -i /opt/tacker/vHello -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /opt/tacker/blueprints/tosca-vnfd-hello-ves/start.sh ubuntu@${vdu_ip[4]}:/home/ubuntu/start.sh
+ scp -i /opt/tacker/vHello -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /opt/tacker/blueprints/tosca-vnfd-hello-ves/monitor.py ubuntu@${vdu_ip[4]}:/home/ubuntu/monitor.py
+ ssh -i /opt/tacker/vHello -t -t -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@${vdu_ip[4]} "nohup bash /home/ubuntu/start.sh monitor ${vdu_id[1]} ${vdu_id[2]} ${vdu_id[3]} hello world > ~/monitor.log &"
+
echo "$0: $(date) Execute agent startup script in the VNF VMs"
for i in $vnf_vdui; do
ssh -i /opt/tacker/vHello -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@${vdu_ip[$i]} "sudo chown ubuntu /home/ubuntu"
@@ -315,11 +320,6 @@ start() {
ubuntu@${vdu_ip[$i]} "nohup bash /home/ubuntu/start.sh agent ${vdu_id[$i]} ${vdu_ip[4]} hello world > /dev/null 2>&1 &"
done
- echo "$0: $(date) setup Monitor in VDU4 at ${vdu_ip[4]}"
- scp -i /opt/tacker/vHello -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /opt/tacker/blueprints/tosca-vnfd-hello-ves/start.sh ubuntu@${vdu_ip[4]}:/home/ubuntu/start.sh
- scp -i /opt/tacker/vHello -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /opt/tacker/blueprints/tosca-vnfd-hello-ves/monitor.py ubuntu@${vdu_ip[4]}:/home/ubuntu/monitor.py
- ssh -i /opt/tacker/vHello -t -t -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@${vdu_ip[4]} "bash /home/ubuntu/start.sh monitor ${vdu_id[1]} ${vdu_id[2]} ${vdu_id[3]} hello world"
-
echo "$0: $(date) Startup complete. VDU addresses:"
echo "web server 1: ${vdu_ip[1]}"
echo "web server 2: ${vdu_ip[2]}"