aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2016-12-15 08:41:32 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-15 08:41:32 +0000
commite547df4ebe7df64d971326b110d8c36b1dd3e096 (patch)
treeb780a8bc4286fec705cea85d8db6464aa4a50fc6 /deploy
parent8a4b5bd61fc39c259952871c4447297f3184a0ba (diff)
parent02c0322f87efe8ff1f5c54c1414833910e87431e (diff)
Merge "Print information about openstack deployed."
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/compass_vm.sh7
-rwxr-xr-xdeploy/launch.sh25
2 files changed, 29 insertions, 3 deletions
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh
index b07b5081..4c6ba3fe 100755
--- a/deploy/compass_vm.sh
+++ b/deploy/compass_vm.sh
@@ -282,3 +282,10 @@ function wait_controller_nodes_ok() {
"
sleep 30
}
+
+function get_public_vip () {
+ ssh $ssh_args root@$MGMT_IP "
+ cd /var/ansible/run/openstack_newton_xenial-opnfv2
+ cat group_vars/all | grep -A 3 public_vip: | sed -n '2p' |sed -e 's/ ip: //g'
+ "
+}
diff --git a/deploy/launch.sh b/deploy/launch.sh
index 9031cb62..7d0e269c 100755
--- a/deploy/launch.sh
+++ b/deploy/launch.sh
@@ -111,9 +111,8 @@ if [[ "$DEPLOY_HOST" == "true" || $REDEPLOY_HOST == "true" ]]; then
echo $DHA
if [[ `echo $HOST_ROLES | grep opencontrail` ]]; then
ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
- installer_ip="192.168.200.2"
- vgw_ip=$(sshpass -p 'root' ssh $ssh_options root@$installer_ip 'cat /home/opencontrail1.rc')
- externet_cidr=$(sshpass -p 'root' ssh $ssh_options root@$installer_ip 'cat /home/opencontrail2.rc')
+ vgw_ip=$(sshpass -p 'root' ssh $ssh_options root@$MGMT_IP 'cat /home/opencontrail1.rc')
+ externet_cidr=$(sshpass -p 'root' ssh $ssh_options root@$MGMT_IP 'cat /home/opencontrail2.rc')
sudo ip route add $externet_cidr via $vgw_ip dev br-external 2>/dev/null
sleep 60
sudo python ${COMPASS_DIR}/deploy/reset_compute.py $TYPE $DHA
@@ -121,4 +120,24 @@ if [[ "$DEPLOY_HOST" == "true" || $REDEPLOY_HOST == "true" ]]; then
fi
fi
+public_vip=$(get_public_vip)
+set +x
+
figlet -ctf slant Installation Complete!
+echo ""
+echo "+-----------------+----------+--------------------------------+"
+echo "| Dashboard | Web | http://$public_vip/horizon |"
+echo "| | Domain | default |"
+echo "| | User | admin |"
+echo "| | Password | console |"
+echo "+-------------------------------------------------------------+"
+echo "| Compass | IP | $MGMT_IP |"
+echo "| Virtual Machine | User | root |"
+echo "| | Password | root |"
+echo "+-------------------------------------------------------------+"
+echo "| Openrc Path | admin | /opt/admin-openrc.sh |"
+echo "| | demo | /opt/demo-openrc.sh |"
+echo "+-----------------+----------+--------------------------------+"
+echo "NOTE: openrc file is in the controller nodes"
+echo ""
+