Feature request: Allow nova to publish versioned notification messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Fix Released
|
Wishlist
|
Sahid Orentino |
Bug Description
This is a feature request to update the nova charm so that it configures nova.conf to emit versioned notifications as well as unversioned and for the log driver to be added as a sink.
We understand that the unversioned versions are being picked up by Ceilometer, and that versioned were turned off because there was no rabbitmq subscriber to those events and thus they would stay on the messaging queue forever. We understand that a TTL has now been implemented in rabbitmq so that these messages will be gracefully discarded.
The combination of adding versioned notifications and writing these to nova log files will allow us to implement logic in Graylog to detect VM events such as startup/shutdown through consolidated logs.
This configuration worked successfully in our testing:
[notifications]
notification_format = both
[oslo_messaging
driver = messagingv2
transport_url = rabbit:
driver = log
Changed in charm-nova-compute: | |
status: | New → In Progress |
importance: | Undecided → Wishlist |
milestone: | none → 19.07 |
Changed in charm-nova-compute: | |
status: | Fix Committed → Fix Released |
There is a section- oslo-notificati ons [0] section in the template of nova.conf [1] which should do exactly what you are looking for I guess. I'm trying to figure out the right config.
[0] https:/ /github. com/openstack/ charm-nova- compute/ blob/master/ hooks/charmhelp ers/contrib/ openstack/ templates/ section- oslo-notificati ons /github. com/openstack/ charm-nova- compute/ blob/master/ templates/ rocky/nova. conf#L275
[1] https:/