diff options
author | 2017-08-29 10:03:37 +0500 | |
---|---|---|
committer | 2017-09-23 14:56:19 +0000 | |
commit | bc25086681c0bdd3ffc94ee6af478708a7dd8803 (patch) | |
tree | 72e251679d0a95cbeaeca4be368a52f97f968134 | |
parent | 50c132fa9d563f6a4d81938814937da2dfa957ca (diff) |
Log Horizon URL, admin username and password on console.
Added so that user need not traverse files for these parameters
JIRA: RELENG-221
Change-Id: I1c445ea34ef9494d5bef3a6cba0c8d40bacba29f
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
-rwxr-xr-x | xci/xci-deploy.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh index c985c7dd..95856105 100755 --- a/xci/xci-deploy.sh +++ b/xci/xci-deploy.sh @@ -272,3 +272,24 @@ if grep -q 'failed=1\|unreachable=1' $LOG_PATH/opnfv-setup-openstack.log; then exit 1 fi echo "Info: OpenStack installation is successfully completed!" + +#------------------------------------------------------------------------------- +# - Getting OpenStack login information +#------------------------------------------------------------------------------- +echo "Info: Openstack login details" +echo "-----------------------------------------------------------------------" +OS_USER_CONFIG=$XCI_PATH/file/$XCI_FLAVOR/openstack_user_config.yml +python -c \ +"import yaml +if '$XCI_FLAVOR' is 'aio': + print 'Horizon UI is available at https://192.168.122.2' +else: + host_info = open('$OS_USER_CONFIG', 'r') + net_config = yaml.safe_load(host_info) + print 'Info: Horizon UI is available at https://{}' \ + .format(net_config['global_overrides']['external_lb_vip_address'])" +USERNAME=$(ssh -q root@192.168.122.2 awk "/OS_USERNAME=./" openrc) +PASSWORD=$(ssh -q root@192.168.122.2 awk "/OS_PASSWORD=./" openrc) +echo "Info: Admin username - ${USERNAME##*=}" +echo "Info: Admin password - ${PASSWORD##*=}" +echo "Info: It is recommended to change the default password."
\ No newline at end of file |