Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think the error message is reasonably clear. It says:

StackValidationFailed: Property error : cpu_alarm_high: alarm_actions ... is not a list

As documented here, the alarm_actions property must be a list (because there may be multiple actions). So modify your template to make that a list:

  cpu_alarm_high:
    type: OS::Ceilometer::Alarm
    properties:
      description: Scale-up if the average CPU > 50% for 1 minute
      meter_name: cpu_util
      statistic: avg
      period: 600
      evaluation_periods: 1
      threshold: 50
      alarm_actions: 
        - { get_attr: [web_server_scaleup_policy, alarm_url] }
      matching_metadata: { 'metadata.user_metadata.stack': { get_param: "OS::stack_id" } }
      comparison_operator: gt