diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-05-03 07:29:53 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-05-03 08:10:50 -0700 |
commit | 36e42dd5d85a34302e8245be30cecfbc5fbf79ca (patch) | |
tree | 103a5a8e22cc89c0ea76fd2374e4caca359833ed /deployment/heat/onap-oom/scripts/deploy.sh | |
parent | 11c9874f6aa84e8f3ab03f9bec84c8b0c5033003 (diff) |
Add output values for k8s IP addresses
Change-Id: I546da00d39c68dc5c1b5dc233ed102c29174bdc3
Issue-ID: INT-381
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/scripts/deploy.sh')
-rwxr-xr-x | deployment/heat/onap-oom/scripts/deploy.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deployment/heat/onap-oom/scripts/deploy.sh b/deployment/heat/onap-oom/scripts/deploy.sh index a28368212..8ab79a2c8 100755 --- a/deployment/heat/onap-oom/scripts/deploy.sh +++ b/deployment/heat/onap-oom/scripts/deploy.sh @@ -49,5 +49,7 @@ for n in $(seq 1 10); do done ROBOT_POD=$(ssh -o StrictHostKeychecking=no -i ~/.ssh/onap_key ubuntu@$RANCHER_IP 'sudo su -c "kubectl --namespace onap get pods"' | grep robot | sed 's/ .*//') LOG_DIR=$(ssh -o StrictHostKeychecking=no -i ~/.ssh/onap_key ubuntu@$RANCHER_IP "sudo su -c \"kubectl exec $ROBOT_POD --namespace onap -- ls -1t /share/logs | head -1\"") -wget --user=robot --password=robot -r -np -nH --cut-dirs=2 -R "index.html*" -P $WORKSPACE/archives/ http://$RANCHER_IP:30209/logs/$LOG_DIR/ + +K8S_IP=$(openstack stack output show onap-oom k8s_1_vm_ip -c output_value -f value) +wget --user=robot --password=robot -r -np -nH --cut-dirs=2 -R "index.html*" -P $WORKSPACE/archives/ http://$K8S_IP:30209/logs/$LOG_DIR/ exit 0 |