While creating the alarm for autoscaling through heat template getting below error

asked 2018-07-26 00:35:03 -0600

Below is my heat template for auto scaling :-

Blockquote

heat_template_version: 2014-10-16 description: A simple auto scaling group. parameters: cbam: type: json description: Data referenced in the template resources: group: type: OS::Heat::AutoScalingGroup properties: cooldown: 60 desired_capacity: 1 max_size: 3 min_size: 1 resource: type: OS::Nova::Server::NNOS properties: cbam: {get_param: cbam} scaleup_policy: type: OS::Heat::ScalingPolicy properties: adjustment_type: change_in_capacity auto_scaling_group_id: { get_resource: group } cooldown: 60 scaling_adjustment: 1 cpu_alarm_high: type: OS::Ceilometer::Alarm properties: meter_name: cpu_util statistic: avg period: 60 evaluation_periods: 1 threshold: 50 alarm_actions: - {get_attr: [scaleup_policy, alarm_url]} comparison_operator: gt

Blockquote

Error I am getting while executing the heat stack-create command :-

-26T05:29:06Z | | cpu_alarm_high | 35c8a331-7cfe-4573-ac4d-fdb10ae949f7 | BadRequest: resources.cpu_alarm_high: Unknown attribute for argument data: threshold_rule (HTTP 400) (Request-ID: req-d4d17474-235b-49a3-b72a-5078336fb0de) | CREATE_FAILED | 2018-07-26T05:29:08Z | | EnumEdgeStack | bcb6356a-22df-4449-abfb-a9c8a12debc0 | Resource CREATE failed: BadRequest: resources.cpu_alarm_high: Unknown attribute for argument data: threshold_rule (HTTP 400) (Request-ID: req-d4d17474-235b-49a3-b72a-5078336fb0de) | CREATE_FAILED | 2018-07-26T05:29:08Z |

edit retag flag offensive close merge delete