Comment 5 for bug 1277204

Revision history for this message
Phil Day (philip-day) wrote : RE: [Bug 1277204] Re: notification topics no longer configurable

Thanks Andera,

I've added what I found so far to the bug report. I think there are at least two issues here:

Setup.cfg has mis-spelt the backwards compatibility names

But even using the mis-spelt name produces a stack trace when Nova tries to send a message

> -----Original Message-----
> From: <email address hidden> [mailto:<email address hidden>] On Behalf
> Of Andrea Rosa
> Sent: 07 February 2014 12:09
> To: Day, Phil
> Subject: [Bug 1277204] Re: notification topics no longer configurable
>
> I confirm that nova doesn't publish notifications at all, it seems that nova is
> not loading the plugin correctly.
>
> I did a small test I added an non-existing notification_driver in
> nova.conf:
>
> notification_driver =
> oslo.messaging.notify._impl_messaging:MessagingDriverFALSE
>
> Then I restarted nova-api and I can see that the new param is there but not
> used at all as nova-api is not complaining:
> 2014-02-07 12:06:51.719 DEBUG nova.openstack.common.service [-]
> notification_driver =
> ['oslo.messaging.notify._impl_messaging:MessagingDriverFALSE'] from
> (pid=7229) log_opt_values /opt/stack/oslo.config/oslo
> /config/cfg.py:1911
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1277204
>
> Title:
> notification topics no longer configurable
>
> Status in OpenStack Compute (Nova):
> New
> Status in Messaging API for OpenStack:
> New
>
> Bug description:
> The recent change to oslo messaging seems to have removed the ability
> to specify a list of topics for notifications. This is a critical
> feature for systems which provide multiple message streams for billing
> and monitoring.
>
>
> To reproduce:
>
> 1) Create a devstack system
>
> 2) Add the following lines to the [DEFAULT] section of nova.conf:
> notification_driver = nova.openstack.common.notifier.rpc_notifier
> notification_topics = notifications,monitor
> notify_on_state_change = vm_and_task_state
> notify_on_any_change = True
> instance_usage_audit = True
> instance_usage_audit_period = hour
>
> 3) Restart all the n-* services
>
> 4) Look at the info queues in rabbit
> sudo rabbitmqctl list_queues | grep info
> notifications.info 15
>
> 5) Create an instance
> ubuntu@devstack-net-cache:/mnt/devstack$ nova boot --image cirros-
> 0.3.1-x86_64-uec --flavor 1 phil2
>
> 6) Look at the info queues in rabbit
> sudo rabbitmqctl list_queues | grep info
> notifications.info 17
>
>
> Messages are being added to the "notifications" queue, but not to the
> monitor queue
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1277204/+subscriptions