diff options
author | liyuenan <liyuenan@huawei.com> | 2016-12-12 10:46:18 +0800 |
---|---|---|
committer | liyuenan <liyuenan@huawei.com> | 2016-12-14 17:20:42 +0800 |
commit | 02c0322f87efe8ff1f5c54c1414833910e87431e (patch) | |
tree | c8e1300c44cc07e7d778b75fd752645e46c3aaf0 /deploy | |
parent | 8563de45cd6dce04affcd9a52dacd76dad27ecae (diff) |
Print information about openstack deployed.
Change-Id: I80a379bcb5851ef2b29a52c8d45450dd1d36ade0
Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy/compass_vm.sh | 7 | ||||
-rwxr-xr-x | deploy/launch.sh | 25 |
2 files changed, 29 insertions, 3 deletions
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh index 61e27051..adc936fc 100755 --- a/deploy/compass_vm.sh +++ b/deploy/compass_vm.sh @@ -263,3 +263,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 "" + |