Generalize IP to interact with ephermal heat

Removing hardcoded IP and Generalizing IP to interact with ephermal
heat so that we can cover cases where undercloud is deployed on
custom IP range.

Change-Id: I0f43faba02ef2d5ac60d104dee52b61156ea07dc
This commit is contained in:
Sandeep Yadav 2021-08-31 23:14:56 +05:30
parent bde5414a12
commit 7dd4ab75a6
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ configuration must be set in order to disable authentication::
unset OS_PROJECT_DOMAIN_NAME
unset OS_USER_DOMAIN_NAME
OS_AUTH_TYPE=none
OS_ENDPOINT=http://192.168.24.2:8006/v1/admin
IP=`cat /etc/hosts | grep "undercloud.localdomain undercloud$" | awk '{print $1}'`
OS_ENDPOINT=http://$IP:8006/v1/admin
Once the environment is configured, ``openstackclient`` work as expected
against the Heat API::