Ask Your Question
0

How to make Nova send notifications?

asked 2014-12-11 09:37:32 -0600

updated 2014-12-12 02:01:49 -0600

Which options are needed in nova.conf to have notifications about instance create and delete appear in the notifications.info queue in AMQP? The nova.conf on the compute hosts should be updated too? Which nova services do I need to restart?

Oslo documentation, here: http://docs.openstack.org/icehouse/co... says to set notification_driver tonova.notifier.rabbit_notifier. I did that to no effect.

Ceilometer documentation (and other places) says to use this value: notification_driver=nova.openstack.common.notifier.rpc_notifier , that points to a file that no longer exists. Even the Ops guide seems to contain obsolete instructions (look at the StackTack section): http://docs.openstack.org/openstack-o...

Other values are suggested here and there, not one works. Adding print() in the code I can see some "update" notifications that are sent, but then I cannot see them from amqp.

EDIT: To clarify: I tried with nova.openstack.common.notifier.rpc_notifier. It does not work for me, I see notifications from Neutron, but nothing from nova. Anyway that option is deprecated and there is no such module in nova, just some compatibility code in Oslo.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-12-11 11:59:54 -0600

bishoy gravatar image

this is my conf in nova.conf on both controller and compute and I can see notifications.

  • notification_driver = nova.openstack.common.notifier.rpc_notifier
  • notification_topics = notifications

I hope that helps

edit flag offensive delete link more

Comments

For some reason, in RabbitMQ the binding between the nova exchange and the notifications.info queue was not there, so messages were not being routed. Once I fixed that, these options made it work.

venza gravatar imagevenza ( 2014-12-12 05:01:01 -0600 )edit
0

answered 2014-12-12 00:21:25 -0600

notification_driver = nova.openstack.common.notifier.rpc_notifier notification_topics = notifications

in nova.conf and restart nova-api

edit flag offensive delete link more

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: 2014-12-11 09:37:32 -0600

Seen: 1,215 times

Last updated: Dec 12 '14