[oslo] How to use library "oslo.messaging"
Dear all, I have a question about "library oslo.messaging". How can i use this librabry to write simple program listen event on Openstack (like Nova, Cinder)? I had read on docs, nova support "oslo_messaging_notifications" to send message via RabbitMQ, so I’m try to use this library but it seem very hard for me. *Nguyễn Bá Thành* *Mobile*: 0128 748 0391 *Email*: bathanhtlu@gmail.com
Thành Nguyễn Bá <bathanhtlu@gmail.com> writes:
Dear all, I have a question about "library oslo.messaging". How can i use this librabry to write simple program listen event on Openstack (like Nova, Cinder)? I had read on docs, nova support "oslo_messaging_notifications" to send message via RabbitMQ, so I’m try to use this library but it seem very hard for me.
*Nguyễn Bá Thành*
*Mobile*: 0128 748 0391
*Email*: bathanhtlu@gmail.com
There is a notification "listener" built into the library in the oslo_messaging.notify.listener module. The source file [1] includes a basic example of using it. You may also find the ceilometer source code interesting, since it consumes notifications using the "batch" listener [2]. [1] http://git.openstack.org/cgit/openstack/oslo.messaging/tree/oslo_messaging/n... [2] http://git.openstack.org/cgit/openstack/ceilometer/tree/ceilometer/messaging... -- Doug
On Mon, Dec 10, 2018 at 9:24 AM Thành Nguyễn Bá <bathanhtlu@gmail.com> wrote:
Dear all, I have a question about "library oslo.messaging". How can i use this librabry to write simple program listen event on Openstack (like Nova, Cinder)? I had read on docs, nova support "oslo_messaging_notifications" to send message via RabbitMQ, so I’m try to use this library but it seem very hard for me.
*Nguyễn Bá Thành*
*Mobile*: 0128 748 0391
*Email*: bathanhtlu@gmail.com
Nguyen - just following up to the wider group: I've got a few simple example clients/servers that do RPC and Notifications. Check them out on my git repo: https://github.com/kgiusti/oslo-messaging-clients If folks find them useful I'll be more than glad to move them to the oslo.messaging repo (an examples directory, perhaps?) -- Ken Giusti (kgiusti@gmail.com)
Ken Giusti <kgiusti@gmail.com> writes:
On Mon, Dec 10, 2018 at 9:24 AM Thành Nguyễn Bá <bathanhtlu@gmail.com> wrote:
Dear all, I have a question about "library oslo.messaging". How can i use this librabry to write simple program listen event on Openstack (like Nova, Cinder)? I had read on docs, nova support "oslo_messaging_notifications" to send message via RabbitMQ, so I’m try to use this library but it seem very hard for me.
*Nguyễn Bá Thành*
*Mobile*: 0128 748 0391
*Email*: bathanhtlu@gmail.com
Nguyen - just following up to the wider group:
I've got a few simple example clients/servers that do RPC and Notifications. Check them out on my git repo:
https://github.com/kgiusti/oslo-messaging-clients
If folks find them useful I'll be more than glad to move them to the oslo.messaging repo (an examples directory, perhaps?)
+1 -- maybe we can even include them in the published docs, if the code samples aren't too long
-- Ken Giusti (kgiusti@gmail.com)
-- Doug
With your help, my program has run :D. But when my program listen nova's notification topic, it receive 'instance.*' but it doesn't receive Flavor's Notification ('flavor.*'). This is my nova config: http://paste.openstack.org/show/737493/ Am i missing something? *Nguyễn Bá Thành* *Mobile*: 0128 748 0391 *Email*: bathanhtlu@gmail.com Vào Th 3, 11 thg 12, 2018 vào lúc 00:00 Ken Giusti <kgiusti@gmail.com> đã viết:
On Mon, Dec 10, 2018 at 9:24 AM Thành Nguyễn Bá <bathanhtlu@gmail.com> wrote:
Dear all, I have a question about "library oslo.messaging". How can i use this librabry to write simple program listen event on Openstack (like Nova, Cinder)? I had read on docs, nova support "oslo_messaging_notifications" to send message via RabbitMQ, so I’m try to use this library but it seem very hard for me.
*Nguyễn Bá Thành*
*Mobile*: 0128 748 0391
*Email*: bathanhtlu@gmail.com
Nguyen - just following up to the wider group:
I've got a few simple example clients/servers that do RPC and Notifications. Check them out on my git repo:
https://github.com/kgiusti/oslo-messaging-clients
If folks find them useful I'll be more than glad to move them to the oslo.messaging repo (an examples directory, perhaps?)
-- Ken Giusti (kgiusti@gmail.com)
participants (3)
-
Doug Hellmann
-
Ken Giusti
-
Thành Nguyễn Bá