Change notification in OpenStack Python SDK

asked 2020-07-07 02:26:59 -0600

AnilJ gravatar image

So far, based on my understanding of OpenStack Python SDK, I do not see an API to receive and handle the change notification/events for the operations that happens on the cluster e.g. A new VM is added, an existing VM is deleted etc.

I see a documentation, which talks about emitting notifications over a message bus that indicate different events that occur within the service.

https://docs.openstack.org/ironic/latest/admin/notifications.html (Notifications in OpenStack)

  1. Does Openstack Python SDK support notification APIs?
  2. How do I receive/monitor notifications for VM related changes?
  3. How do I receive/monitor notifications for compute/hypervisor related changes?
  4. How do I receive/monitor notifications for Virtual Switch related changes?

Thanks,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-07-17 10:23:51 -0600

zaneb gravatar image

For the most part, OpenStack doesn't support notifications in "userspace" - i.e. through the API.

There is a notification bus intended to be used by cloud operators (note that it includes data about all tenants, and while the most sensitive information should be redacted, bugs do happen - so not suitable for exposing to users directly). This is what is referred to in the document you linked. Commonly these notifications are transmitted to the same RabbitMQ service used for internal RPC, although this is of course configurable.

For ordinary users, you basically have to poll everything.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-07-07 02:26:09 -0600

Seen: 24 times

Last updated: Jul 17