Update TryMCP deployment scripts

* drop global network params, which can be delivired with ISO;
* show OpenStack UI endpoints with creds;
* set error level for scripts;

Change-Id: I86617a03c8027e8b46a43c4093ec781d1359cc32
Related-Prod: PROD-30834
diff --git a/predefine-vm/define-slave-vm.sh b/predefine-vm/define-slave-vm.sh
index 246bf6d..1f4e8c8 100755
--- a/predefine-vm/define-slave-vm.sh
+++ b/predefine-vm/define-slave-vm.sh
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -e
+
 functionsFile="$(pwd)/functions.sh"
 
 if [[ ! -f ${functionsFile} ]]; then
@@ -116,3 +118,11 @@
 
 virsh define $(pwd)/${SLAVE_VM_NAME}-vm.xml
 virsh autostart ${SLAVE_VM_NAME}
+
+openstackAIOFile=$(isoinfo -i ${VM_CONFIG_DISK} -J -f | grep -w "setup_aio.yml")
+openstackScheme=$(isoinfo -i ${VM_CONFIG_DISK} -J -x ${openstackAIOFile} | grep -w 'cluster_public_protocol' | cut -f 2 -d ':' | tr -d ' ')
+openstackAddress=$(isoinfo -i ${VM_CONFIG_DISK} -J -x ${allocationDataFile} | grep -w 'aio_node_address' | cut -f 2 -d ':' | tr -d ' ')
+secretsFile=$(isoinfo -i ${VM_CONFIG_DISK} -J -f | grep -w "infra/secrets.yml")
+openstackPassword=$(isoinfo -i ${VM_CONFIG_DISK} -J -x ${secretsFile} | grep -w 'keystone_admin_password_generated' | cut -f 2 -d ':' | tr -d ' ')
+echo "Once OpenStack deploy job is finished successfully OpenStack UI will be available on: ${openstackScheme}://${openstackAddress}:8078"
+echo "Login creds are: admin / ${openstackPassword}"