Commit Graph

11 Commits

Author SHA1 Message Date
huangtianhua 8a4df57c37 Change namespace 'ceilometer' to 'aodh'
Change namespace of some files to '*aodh*' instead of '*ceilometer*'.

Blueprint migrate-to-use-aodh-for-alarms

Change-Id: I2c4d565ded5f9f7146b23479acd2702f976b8833
2016-07-04 03:22:49 +00:00
huangtianhua 4a79f7ca53 Migrate to aodh for OS::Ceilometer::Alarm
This changes:
1. use aodhclient to manage OS::Ceilometer::Alarm
resource, including create, update, delete, check, suspend,
resume and show.
2. rename OS::Ceilometer::Alarm to OS::Aodh::Alarm
3. considering to compatible with old templates with resource
OS::Ceilometer::Alarm, set resource_registry to map Ceilometer alarm
to Aodh alarm

Blueprint migrate-to-use-aodh-for-alarms

Change-Id: I6e2d14f15a345b927b53adc237cf2bf4010842f0
2016-06-29 02:50:27 +00:00
huangtianhua faec3a0962 Decouple hot and cfn for outputs
The changes including:
1. Avoid hard code of resource and output keys
2. Decouple hot and cfn for outputs

Change-Id: I1fd7e08ff5c699ddfcf98c81aed5f0d91c4248b3
2016-06-24 10:08:28 +00:00
Peter Razumovsky 1343598890 Add Dimensions Default in AWS_CloudWatch_Alarm.yaml
Relying on [1], property Dimensions isn't required, but
this template has no Default value for Dimensions
(thereby making it required). This patch fix that omission.
Besides that, parameters have wrong parsing, because if
parameter with type 'CommaDelimitedList' has default
value '', parameter's parsing result would be [u''] instead
of []. this is wrong, so this patch fix it.

[1] http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html

Change-Id: I259249659c8b5dc846432f8e08985b148b30d682
Closes-bug: #1386824
2014-11-20 17:05:17 +03:00
Rabi Mishra ce62bdc192 Fix default template for AWS::CloudWatch::Alarm with Ceilometer
Existing template assumes certain parameters to be delimited
strings rather than lists and uses 'Fn::Split' to convert them
to list. However, delimitedstring representations of parameters
are by default converted to list for CommaDelimitedList types.
Also includes change for CommaDelimitedList to accept empty string.

Change-Id: Ib566f1d098c575a80c4f1a975eaaaac93d70af34
Closes-Bug: #1316842
2014-06-03 09:48:33 +05:30
Angus Salkeld 4dc987eff3 Repeat Ceilometer alarm actions by default
The policy actions assume repeat_actions=true.

For the situation when cpu is high even when a new server is added.
Here we would expect yet-another server to be added but what currently
happens is the alarm will be stuck in the alarm state, but with no
further actions.

We need a default that it sane.

Closes-bug: #1242168
Related-bug: #1223347
Change-Id: I4c6a084076a0cc01ebd0d7431d3fac559161e947
2013-10-23 07:33:45 -10:00
Bartosz Górski 7afd1f4285 Rename counter_name to meter_name in alarm
In the newest ceilometer alarm version counter_name property was renamed to
meter_name. Right now heat uses old ceilometer client which still support
counter_name but newest ceilometer backend does not.

Change-Id: Ie7876119dc9b2a80d862f10de5f7265ad2a059f0
Closes-Bug: #1222830
2013-09-25 20:17:06 +00:00
Angus Salkeld 3734484056 Change the dbinstance to F19
The current template is based on F17 which is eol.

Closes-Bug #1215797
Change-Id: I888fba67dc8412c8b57243d76b45494a6beb91c4
2013-09-07 11:04:39 +12:00
Angus Salkeld 13b7f54ad8 Move dbinstance into a TemplateResource
The old dbinstance will soon be overtaken by the trove resource.
- The only reason for keeping this around is for people that don't
  have trove installed and want to use the AWS resource.
- Seperating it out into a TemplateResource really makes it easier
  for deployers and users to customise it.
- The old dbinstance did nothing "special" in python, and was really
  one of the first "TemplateResources" as it attempted to convert properties
  into parameters. Since this in now done a lot better in the TemplateResource
  lets just make use of that.

This will make it easier to migrate to other distros and versions.

Partial-Bug: #1215797
Change-Id: If72e1f40f67dc831551e0db8df8caaa002aaaeda
2013-09-07 11:04:39 +12:00
Angus Salkeld c60a60614b Rename OS::Metering::Alarm to OS::Ceilometer::Alarm
The other resources are named by project so this is to
try and be more consistent.

There is a mapping to allow the original name to work.

Change-Id: If60cc577a5a770bdaada70c7eae1ae3fc1776056
2013-08-27 09:01:38 +10:00
Angus Salkeld 8711651fc3 Add a CloudWatch::Alarm implementation based on Ceilometer
It's off by default for the moment so the current cloudwatch tests can run.

Change-Id: Ibdce9c9223969bdcb8f2368e98dc6ab1241b84df
2013-08-23 10:41:36 +10:00