Ask Your Question
1

OS::Ceilometer::Alarm error

asked 2013-10-25 11:25:42 -0500

cloud gravatar image

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?

edit retag flag offensive close delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-25 23:02:25 -0500

asalkeld gravatar image

I am not sure the grizzly version of ceilometer will work. Do you have the following servers running: ceilometer-alarm-evaluator ceilometer-alarm-notifier

I'd suggest a new version of Ceilometer.

edit flag offensive delete publish link more

Comments

Are the ceilometer alarm evaluatior and ceilometer alarm notifier , the services or they are ceilometer api?

cloud ( 2013-10-28 15:34:36 -0500 )edit

they are ceilometer services, not a part of the api. They figure out what state an alarm is in and post the webhook if the alarm changes state.

asalkeld ( 2013-10-29 17:47:20 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2013-10-25 11:25:42 -0500

Seen: 288 times

Last updated: Oct 25 '13