Ask Your Question
0

BadRequest: Unknown attribute for argument data: threshold_rule (HTTP 400) - Heat Autoscale

asked 2019-04-17 07:04:59 -0600

hariprasath M gravatar image

updated 2019-04-17 07:05:26 -0600

Hi

I am trying to auto scale instances using Heat, Ceilometer and Aodh services. While using the Heat script instance got successfully created and alarm is not getting generated for the created instance.

Getting the below error in

heat-engine.log

2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource Traceback (most recent call last):
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 918, in _action_recorder
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     yield
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 1026, in _do_action
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     yield self.action_handler_task(action, args=handler_args)
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/scheduler.py", line 329, in wrapper
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     step = next(subtask)
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 971, in action_handler_task
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     handler_data = handler(*args)
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resources/openstack/aodh/alarm.py", line 183, in handle_create
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     alarm = self.client().alarm.create(props)
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/aodhclient/v2/alarm.py", line 102, in create
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     data=jsonutils.dumps(alarm)).json()
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/aodhclient/v2/base.py", line 41, in _post
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     return self.client.api.post(*args, **kwargs)
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 310, in post
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     return self.request(url, 'POST', **kwargs)
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/aodhclient/client.py", line 38, in request
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource     raise exceptions.from_response(resp, url, method)
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource BadRequest: Unknown attribute for argument data: threshold_rule (HTTP 400) (Request-ID: req-01dd1002-0743-4a08-90a0-205a851d047b)
2019-04-17 17:12:50.462 29485 ERROR heat.engine.resource 
2019-04-17 17:12:50.580 29479 INFO heat.engine.stack [req-359e5a0f-874a-413a-aa83-c3a34622104e - admin - default default] Stack CREATE FAILED (teststack): Resource CREATE failed: BadRequest: resources.cpu_alarm_high: Unknown attribute for argument data: threshold_rule (HTTP 400) (Request-ID: req-76ff2904-badd-4090-b529-d125609009dc)
2019-04-17 17:12:50.638 29485 INFO heat.engine.stack [req-359e5a0f-874a-413a-aa83-c3a34622104e - admin - default default] Stack CREATE FAILED (teststack): Resource CREATE failed: BadRequest: resources.cpu_alarm_low: Unknown attribute for argument data: threshold_rule ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-19 08:31:17 -0600

hariprasath M gravatar image

updated 2019-04-19 08:34:06 -0600

Hi

Actually we have to use

type: OS::Aodh::GnocchiAggregationByResourcesAlarm

or should mention appropriate type in OS::Aodh::XXX

Previously I was tried with OS::Ceilometer::Alarm and that is what the Issue in resources filed.

Regards,

Hariprasath M

edit flag offensive delete link more

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: 2019-04-17 07:04:59 -0600

Seen: 140 times

Last updated: Apr 19