heat engine : add heat_waitcondition_server_url

Add config option for waitcondition server, since metadata
and waitcondition notifications are no longer handled by the
same API

Change-Id: Idc1b39c6c60b8473316fe4861f0f060568540b09
Signed-off-by: Steven Hardy <shardy@redhat.com>
This commit is contained in:
Steven Hardy 2012-10-25 14:50:28 +01:00
parent c8ec051a67
commit 0ba94dcc7a
4 changed files with 13 additions and 1 deletions

View File

@ -193,6 +193,7 @@ The heat engine configuration file should be updated with the address of the bri
::
sudo sed -i -e "/heat_metadata_server_url/ s/127\.0\.0\.1/${BRIDGE_IP}/" /etc/heat/heat-engine.conf
sudo sed -i -e "/heat_waitcondition_server_url/ s/127\.0\.0\.1/${BRIDGE_IP}/" /etc/heat/heat-engine.conf
Launch the Heat services
------------------------

View File

@ -21,6 +21,14 @@ heat_stack_user_role = heat_stack_user
# NOTE : change this from 127.0.0.1 !!
heat_metadata_server_url = http://127.0.0.1:8000
# URL for instances to connect for notification
# of waitcondition events (ie via cfn-signal)
# e.g the IP of the bridge device connecting the
# instances with the host and the bind_port of
# the heat-metadata API
# NOTE : change this from 127.0.0.1 !!
heat_waitcondition_server_url = http://127.0.0.1:8002
# Log to this file. Make sure the user running heat-api has
# permissions to write to this file!
log_file = /var/log/heat/engine.log

View File

@ -80,6 +80,9 @@ cfg.IntOpt('osapi_volume_listen_port',
cfg.StrOpt('heat_metadata_server_url',
default="",
help='URL of the Heat metadata server'),
cfg.StrOpt('heat_waitcondition_server_url',
default="",
help='URL of the Heat waitcondition server'),
cfg.StrOpt('heat_stack_user_role',
default="heat_stack_user",
help='Keystone role for heat template-defined users'),

View File

@ -40,7 +40,7 @@ class WaitConditionHandle(resource.Resource):
def handle_create(self):
self.instance_id = '%s/stacks/%s/resources/%s' % \
(cfg.CONF.heat_metadata_server_url,
(cfg.CONF.heat_waitcondition_server_url,
self.stack.id,
self.name)