From 1d9c5f914c77f4b8e6804ad7a1a40f9c8c40d34e Mon Sep 17 00:00:00 2001 From: Michal Stachowski Date: Fri, 26 Jun 2015 18:20:32 +0200 Subject: [PATCH] Add missing openstack.env vars and export to heat Heat failed on heat-keystone-setup-domain because it requires openrc style of env vars. Also, genenv missed Keystone port env vars. There are several openrc instances that are using the keystone public port, bug filed: https://bugs.launchpad.net/kolla/+bug/1469209 Change-Id: I03b57c43c38fb3ebded4d6f206161cf02fb4883d Closes-Bug: #1469003 Co-Authored-by: Jeff Peeler --- docker/common/heat/heat-base/config-heat.sh | 9 ++++++--- docker/common/heat/heat-engine/start.sh | 1 + docs/integration-guide.md | 3 ++- tools/genenv | 9 +++++++-- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/docker/common/heat/heat-base/config-heat.sh b/docker/common/heat/heat-base/config-heat.sh index 9275e5645a..843221ccdd 100755 --- a/docker/common/heat/heat-base/config-heat.sh +++ b/docker/common/heat/heat-base/config-heat.sh @@ -17,14 +17,17 @@ set -e check_required_vars HEAT_DB_PASSWORD HEAT_KEYSTONE_PASSWORD \ HEAT_API_CFN_URL_HOST HEAT_API_CFN_SERVICE_PORT \ KEYSTONE_PUBLIC_SERVICE_HOST KEYSTONE_PUBLIC_SERVICE_PORT \ - RABBITMQ_SERVICE_HOST MARIADB_SERVICE_HOST \ - HEAT_DOMAIN_PASS + KEYSTONE_PUBLIC_SERVICE_PORT RABBITMQ_SERVICE_HOST \ + MARIADB_SERVICE_HOST HEAT_DOMAIN_PASS fail_unless_db dump_vars +# this should use the keystone admin port +# https://bugs.launchpad.net/kolla/+bug/1469209 cat > /openrc < Glance registry service host KEYSTONE_ADMIN_PASSWORD= KEYSTONE_ADMIN_SERVICE_HOST= - IP Address of Keystone Host - KEYSTONE_ADMIN_SERVICE_PORT=<5000> - Port where Keystone operates + KEYSTONE_ADMIN_SERVICE_PORT=<35357> - Port where Keystone admin endpoint operates. KEYSTONE_ADMIN_TOKEN= - A token used to access Keystone KEYSTONE_AUTH_PROTOCOL= - The keystone authentication protocol KEYSTONE_DB_PASSWORD= - The password used to access Keystone in the DB KEYSTONE_PUBLIC_SERVICE_HOST= - The IP address where Keystone is running + KEYSTONE_PUBLIC_SERVICE_PORT=<5000> - Port which keystone uses for public service. MARIADB_ROOT_PASSWORD= - defines the MariaDB root password MARIADB_SERVICE_HOST= - The IP Address where Mariadb is running MARIADB_MAX_CONNECTIONS=<151> - The maximum number of connections to the MariaDB server diff --git a/tools/genenv b/tools/genenv index 535d7356cc..e4cf50195b 100755 --- a/tools/genenv +++ b/tools/genenv @@ -102,7 +102,9 @@ KEYSTONE_ADMIN_TOKEN=$PASSWORD KEYSTONE_DB_PASSWORD=kolla KEYSTONE_ADMIN_PASSWORD=$PASSWORD KEYSTONE_PUBLIC_SERVICE_HOST=$HOST_IP +KEYSTONE_PUBLIC_SERVICE_PORT=5000 KEYSTONE_ADMIN_SERVICE_HOST=$HOST_IP +KEYSTONE_ADMIN_SERVICE_PORT=35357 KEYSTONE_AUTH_PROTOCOL=http # Glance @@ -229,8 +231,10 @@ CINDER_ENABLED_BACKEND=lvm57 # Here we define pairs hostname:priority. Priorities have to be unique KEEPALIVED_HOST_PRIORITIES=host1:100,host2:99 +# this should use the keystone admin port +# https://bugs.launchpad.net/kolla/+bug/1469209 cat > ./openrc <