Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OS::Ceilometer::Alarm error

I have a grizzly version of openstack I recently installed newer version of heat (It should be havana) And I have grizzly version of ceilometer

Now when I run the template. (snippet of the template)

 launch:
    type: AWS::AutoScaling::LaunchConfiguration
    properties:
      ImageId: { get_param: ImageId }
      InstanceType: { get_param: InstanceType }
      KeyName:  { get_param: KeyName }

  WebServerGroup:
    Type: AWS::AutoScaling::AutoScalingGroup
    Properties:
      AvailabilityZones: {'Fn::GetAZs': ''}
      LaunchConfigurationName: {Ref: launch}
      MinSize: '1'
      MaxSize: '3'

  WebServerScaleUpPolicy:
    Type: AWS::AutoScaling::ScalingPolicy
    Properties:
      AdjustmentType: ChangeInCapacity
      AutoScalingGroupName: {Ref: WebServerGroup}
      Cooldown: '60'
      ScalingAdjustment: '1'

  WebServerScaleDownPolicy:
    Type: AWS::AutoScaling::ScalingPolicy
    Properties:
      AdjustmentType: ChangeInCapacity
      AutoScalingGroupName: {Ref: WebServerGroup}
      Cooldown: '60'
      ScalingAdjustment: '-1'

  CPUAlarmHigh:
    Type: AWS::CloudWatch::Alarm
    Properties:
      description: Scale-up if the average CPU > 50% for 1 minute
      meter_name: cpu_util
      statistic: avg
      period: '10'
      evaluation_periods: '1'
      threshold: '3'
      alarm_actions:
      - {"Fn::GetAtt": [WebServerScaleUpPolicy, AlarmUrl]}
      comparison_operator: gt

(This template is basically watching if cpu util is grater than 3 then scale up one more instance)

I run this template having ceilometer continuously run in the background. The alarm get created I can see it in ceilometer alarm-list but a new instance is never created.

What am i doing wrong? Also when i looked at my keystone user-list many additional users are create having the template name...Is it normal? or am i doing it incorrectly?