Cannot create AutoScalingPolicy in Heat

Solution Verified - Updated -

Issue

"Create Failed
Resource Create Failed: Badrequest: Bad Request (Http 400)"

From the heat engine logs on the control nodes we see the following error:

2014-12-02 13:32:01.573 8969 WARNING heat.common.keystoneclient [-] stack_user_domain ID not set in heat.conf falling back to using default
2014-12-02 13:32:01.766 8969 WARNING heat.common.keystoneclient [-] stack_user_domain ID not set in heat.conf falling back to using default
2014-12-02 13:32:01.766 8969 WARNING heat.common.keystoneclient [-] Falling back to legacy non-domain project, configure domain in heat.conf
2014-12-02 13:32:01.771 8969 WARNING heat.common.keystoneclient [-] Falling back to legacy non-domain user create, configure domain in heat.conf
2014-12-02 13:32:01.835 8969 ERROR heat.engine.resource [-] CREATE : AutoScalingPolicy "scale_up_policy" Stack "TestScale" [39536e08-7541-4a67-8ddd-d4042cc9bcb2]
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource Traceback (most recent call last):
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 441, in _do_action
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     handle())
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resources/autoscaling.py", line 967, in handle_create
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     super(ScalingPolicy, self).handle_create()
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/signal_responder.py", line 46, in handle_create
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     super(SignalResponder, self).handle_create()
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/stack_user.py", line 38, in handle_create
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     self._create_user()
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/stack_user.py", line 51, in _create_user
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     project_id=self.stack.stack_user_project_id)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/common/heat_keystoneclient.py", line 323, in create_stack_domain_user
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     return self.create_stack_user(username=username, password=password)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/common/heat_keystoneclient.py", line 288, in create_stack_user
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     roles_list = self.client.roles.list()
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 324, in inner
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     return func(*args, **kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/v3/roles.py", line 108, in list
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     return super(RoleManager, self).list(**kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 71, in func
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     return f(*args, **new_kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 352, in list
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     self.collection_key)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 112, in _list
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     resp, body = self.client.get(url, **kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 589, in get
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     return self._cs_request(url, 'GET', **kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 581, in _cs_request
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     return self.request(url, method, **kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 563, in request
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     resp = super(HTTPClient, self).request(url, method, **kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/baseclient.py", line 21, in request
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     return self.session.request(url, method, **kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 324, in inner
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     return func(*args, **kwargs)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 317, in request
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource     raise exceptions.from_response(resp, method, url)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource BadRequest: Bad Request (HTTP 400)
2014-12-02 13:32:01.835 8969 TRACE heat.engine.resource
2014-12-02 13:32:01.887 8969 WARNING heat.engine.service [-] Stack create failed, status FAILED

Environment

  • Red Hat Enterprise Linux OpenStack Platform 5.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In