Ask Your Question
0

Heat resource-signal fails in standalone mode of installation

asked 2015-09-02 08:45:47 -0500

updated 2015-09-24 18:08:42 -0500

Steve Baker gravatar image

Template - native_waitcondition.yaml

I can execute the above template successfully and get back the signal from virtual server launched to Heat-api, whereas the same template doesn't work with standalone mode of Heat. On checking heat-engine.log, it suggests to configure below stack domain specific parameters.

stack_user_domain_name=
stack_domain_admin=
stack_domain_admin_password=

But how can these be configured to a particular keystone endpoint when we support multi openstack setups in standalone mode.

Heat-engine log:

2015-09-02 18:50:26.587 509 INFO heat.engine.resource [-] CREATE: HeatWaitConditionHandle "wait_handle" [349ae11520474d2a8e7abb591eaa39cf] Stack "test_wait_handle-4rcvw" [50fcc9b1-d7ec-405b-86b7-38ef911fc637]
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource Traceback (most recent call last):
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource   File "/opt/core/heat/heat/engine/resource.py", line 500, in _action_recorder
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource     yield
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource   File "/opt/core/heat/heat/engine/resource.py", line 570, in _do_action
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource     yield self.action_handler_task(action, args=handler_args)
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource   File "/opt/core/heat/heat/engine/scheduler.py", line 296, in wrapper
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource     step = next(subtask)
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource   File "/opt/core/heat/heat/engine/resource.py", line 541, in action_handler_task
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource     handler_data = handler(*args)
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource   File "/opt/core/heat/heat/engine/resources/openstack/heat/wait_condition_handle.py", line 73, in handle_create
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource     token = self._user_token()
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource   File "/opt/core/heat/heat/engine/resources/stack_user.py", line 65, in _user_token
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource     project_id=project_id, password=password)
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource   File "/opt/core/heat/heat/common/heat_keystoneclient.py", line 316, in stack_domain_user_token
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource     raise exception.Error(msg)
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource Error: Cannot get stack domain user token, no stack domain id configured, please fix your heat.conf
2015-09-02 18:50:26.587 509 TRACE heat.engine.resource

Heat standalone mode config used to test this usecase:

[DEFAULT]
debug = True
auth_encryption_key = b5e34948325a35a4e767c836c5bec87a
heat_watch_server_url = http://192.168.1.10:8003
heat_waitcondition_server_url = http://192.168.1.10:8000/v1/waitcondition
heat_metadata_server_url = http://192.168.1.10:8000
rabbit_password = xxxx
rabbit_hosts = localhost
rpc_backend = rabbit
deferred_auth_method=password

[auth_password]
multi_cloud=true
allowed_auth_uris=http://192.168.1.233:5000/v2.0
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-09-26 17:48:56 -0500

Steve Baker gravatar image

OS::Heat::WaitCondition needs a heat with full cloud integration since it needs to create a keystone user to provide the auth for the signalling.

Instead you should be able to switch your template to use OS::Heat::SwiftSignal and OS::Heat::SwiftSignalHandle. This is backed by Swift TempURLs and doesn't require the standalone heat to have service keystone credentials.

edit flag offensive delete link more

Comments

Thanks very much Steve. I will try out with OS::Heat::SwiftSignal and will come back. Meanwhile it would be great if you share some Heat templates reference with OS::Heat::SwiftSignal because i don't find such ones in heat-templates github repo.

jayaprakash gravatar imagejayaprakash ( 2015-10-01 00:44:36 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-09-02 08:45:47 -0500

Seen: 507 times

Last updated: Sep 26 '15