Fixes bug where heat container was not getting heat meta data

Heat container is having trouble accessing heat meta data.
Heat needs to have HEAT_CFN_API_SERVICE_HOST set in order
to properly receive meta data.

Closes-bug 1435288

Change-Id: Ia28ece3ae91ec7acc62cc86039612841ac487f36
This commit is contained in:
Ryan Hallisey 2015-03-23 08:15:00 -04:00
parent 07f5999276
commit 1aa0f7ce49
3 changed files with 10 additions and 5 deletions

View File

@ -61,8 +61,8 @@ crudini --set /etc/heat/heat.conf ec2authtoken auth_uri \
"${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0" "${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0"
# cfn # cfn
#crudini --set /etc/heat/heat.conf DEFAULT heat_metadata_server_url \ crudini --set /etc/heat/heat.conf DEFAULT heat_metadata_server_url \
# http://${HEAT_CFN_API_SERVICE_HOST}:8000 http://${HEAT_CFN_API_SERVICE_HOST}:8000
#crudini --set /etc/heat/heat.conf DEFAULT heat_waitcondition_server_url \ crudini --set /etc/heat/heat.conf DEFAULT heat_waitcondition_server_url \
# http://${HEAT_CFN_API_SERVICE_HOST}:8000/v1/waitcondition http://${HEAT_CFN_API_SERVICE_HOST}:8000/v1/waitcondition

View File

@ -67,13 +67,14 @@ all containers. This allows a simple method of ensuring every type of node
NOVA_DB_USER=<nova> - The name of the nova DB password NOVA_DB_USER=<nova> - The name of the nova DB password
NOVA_EC2_API_SERVICE_HOST=<IP> - The IP Address where the Nova EC2 API is hosted NOVA_EC2_API_SERVICE_HOST=<IP> - The IP Address where the Nova EC2 API is hosted
arn't these two the same? arn't these two the same?
NOVA_EC2_SERVICE_HOST=<IP> _ The IP Address wher ethe Nova EC2 service is hosted NOVA_EC2_SERVICE_HOST=<IP> _ The IP Address where the Nova EC2 service is hosted
NOVA_KEYSTONE_PASSWORD=<password> - The Nova keystone password NOVA_KEYSTONE_PASSWORD=<password> - The Nova keystone password
NOVA_KEYSTONE_USER=<nova> - The Nova keystone username NOVA_KEYSTONE_USER=<nova> - The Nova keystone username
HEAT_DB_NAME=<heat> - The heat DB name HEAT_DB_NAME=<heat> - The heat DB name
HEAT_DB_PASSWORD=<kolla> - The heat db password HEAT_DB_PASSWORD=<kolla> - The heat db password
HEAT_KEYSTONE_PASSWORD=<heat> - The keystone password for the heat user HEAT_KEYSTONE_PASSWORD=<heat> - The keystone password for the heat user
HEAT_API_SERVICE_HOST=<IP> - The IP Address where the Heat API service is hosted HEAT_API_SERVICE_HOST=<IP> - The IP Address where the Heat API service is hosted
HEAT_API_CFN_SERVICE_HOST=<IP> - The IP Address where Heat will contact the heat-engine in search for meta data
PUBLIC_INTERFACE=<eth1> - The nova public interface PUBLIC_INTERFACE=<eth1> - The nova public interface
PUBLIC_IP=<Host IP Address> - The IP Address of this host PUBLIC_IP=<Host IP Address> - The IP Address of this host
RABBITMQ_PASS=<rabbit> - The rabbitmq password used to join AMQP RABBITMQ_PASS=<rabbit> - The rabbitmq password used to join AMQP
@ -83,6 +84,8 @@ all containers. This allows a simple method of ensuring every type of node
RABBIT_USERID=<rabbit> - The RabbitMQ user id on the host RABBIT_USERID=<rabbit> - The RabbitMQ user id on the host
## Launching a container set ## Launching a container set
Pick out a simple container set and launch it as follows: Pick out a simple container set and launch it as follows:

View File

@ -70,6 +70,7 @@ HEAT_DB_NAME=heat
HEAT_DB_PASSWORD=kolla HEAT_DB_PASSWORD=kolla
HEAT_KEYSTONE_PASSWORD=heat HEAT_KEYSTONE_PASSWORD=heat
HEAT_API_SERVICE_HOST=$HOST_IP HEAT_API_SERVICE_HOST=$HOST_IP
HEAT_CFN_API_SERVICE_HOST=$HOST_IP
cat > ./openrc <<EOF cat > ./openrc <<EOF
export OS_AUTH_URL="http://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0" export OS_AUTH_URL="http://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0"
@ -121,4 +122,5 @@ RABBITMQ_SERVICE_HOST=$RABBITMQ_SERVICE_HOST
RABBITMQ_USER=$RABBIT_USER RABBITMQ_USER=$RABBIT_USER
RABBIT_PASSWORD=$RABBIT_PASSWORD RABBIT_PASSWORD=$RABBIT_PASSWORD
RABBIT_USERID=$RABBIT_USER RABBIT_USERID=$RABBIT_USER
HEAT_CFN_API_SERVICE_HOST=$HEAT_CFN_API_SERVICE_HOST
EOF EOF