Ask Your Question
1

Configure Aodh alarm for server failure

asked 2016-10-07 08:19:08 -0500

zaneb gravatar image

updated 2018-03-14 08:45:15 -0500

I'd like to create an Aodh alarm (or a group of several alarms) that fires when a Nova server stops running because either the hypervisor it was running on failed or because somebody manually deletes it from Nova. Ideally, I'd like to be able to specify a single server or a group of servers to watch.

It looks like the Event alarm feature could be used for this purpose. Is there a worked example somewhere of how to set up an alarm to trigger in these situations?

Is there another way to create an alarm that triggers in these situations, based on Ceilometer data?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-02-27 16:41:37 -0500

zaneb gravatar image

I ended up using several event alarms to cover various possible actions:

  • Stopping the server from the Nova API
  • Deleting the server from the Nova API
  • Nova putting the server into the 'error' state for whatever reason

I created a Heat template to define these alarms (requires Ocata).

In the case of that template, the alarm action posts to Zaqar, and a subscription is used to trigger a Mistral workflow that tells Heat to replace the server.

edit flag offensive delete link more
0

answered 2016-10-07 08:25:38 -0500

If Nova (or any other tool) sends a notification using oslo.messaging, then in theory you can create an Aodh event alarm that triggers any action.

However, AFAIK nor Nova nor Ceilometer generates such events.

Then, you can use regular alarms (threshold based) if you can identify a threshold in Ceilometer/Gnocchi that maps to that event/problem.

edit flag offensive delete link more

Comments

IIRC Nova sends events like 'compute.instance.(stop|delete|resume' so it suppose to be doable to create event alarms based on this events. With regular alarms U'll need to configure insufficient data actions to get notifications when data stops flowing.

yprokule gravatar imageyprokule ( 2016-10-12 05:01:27 -0500 )edit

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-10-07 08:19:08 -0500

Seen: 594 times

Last updated: Mar 14 '18