diff --git a/doc/source/devstackGSG.rst b/doc/source/devstackGSG.rst index 60e5e2e..c8cd848 100644 --- a/doc/source/devstackGSG.rst +++ b/doc/source/devstackGSG.rst @@ -168,3 +168,19 @@ this are provided in :doc:`` This enables you to scale a resource that you define based on the triggering of an alarm. + +Aodh Tools +~~~~~~~~~ + + * delete_alarms + When collectd is restarted duplicate alarms can be created if the same + configuration is used. A delete alarms tool has been provided to allow + deletion of all alarms before collectd restart. + See :doc:`` + To delete all of the alarms, just run the following command prior to + restarting collectd: + + :: + + $ . tools/delete_alarms.sh + $ sudo service collectd restart diff --git a/releasenotes/notes/bug-1672296-08c84c38204b5c21.yaml b/releasenotes/notes/bug-1672296-08c84c38204b5c21.yaml new file mode 100644 index 0000000..03e95cb --- /dev/null +++ b/releasenotes/notes/bug-1672296-08c84c38204b5c21.yaml @@ -0,0 +1,8 @@ +--- + fixes: + - | + Partially fixes; + 'bug 1672296 https://bugs.launchpad.net/collectd-ceilometer-plugin/+bug/1672296'. + Included a delete_alarms tool so that all alarms can be delete manually + before collectd is restarted.Updated devstackGSG.rst to include + instructions on using this tool. diff --git a/tools/delete_alarms.sh b/tools/delete_alarms.sh new file mode 100644 index 0000000..fcf0eda --- /dev/null +++ b/tools/delete_alarms.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "collectd-aodh-plugin alarms are being deleted. This may take a few minutes.." +for alarm in `aodh alarm list | awk 'NR > 2 {print $2}'`; +do + aodh alarm delete $alarm +done +echo "All alarms created by the collectd-aodh plugin have been deleted"