Enable OpenStack notifications

Note

This page only applies for Fleio OpenStack Edition or Fleio Full Edition.

For Fleio to work, you need to make sure that the OpenStack services are sending notifications. Depending on the method you used to install OpenStack, notifications may not be enabled by default.

Based on the OpenStack services you are using here’s what you need to enable:

All services require the same configuration: driver = messagingv2, and Nova also needs notify_on_state_change = vm_and_task_state. Details below.

Keystone notifications

Keystone is the identity service used by OpenStack for authentication (authN) and high-level authorization (authZ).

Make sure that the following settings are included in the Keystone configuration file. File path is usually /etc/keystone/keystone.conf:

# ...
[oslo_messaging_notifications]
driver = messagingv2
# ...

Restart the Keystone services to apply the configuration change.

Nova notifications

Nova is the name of the OpenStack compute service.

Enable notifications in Nova configuration file, usually in /etc/nova/nova.conf:

[DEFAULT]
# ...
notify_on_state_change = vm_and_task_state
# ...
[oslo_messaging_notifications]
driver = messagingv2

Restart the Nova services to apply the configuration change.

Glance notifications

The OpenStack Image Service called Glance provides discovery, registration and delivery services for disk and server images. It has the ability to copy (or snapshot) a server image and then to store it promptly.

Enable notifications in Glance configuration file, usually in /etc/glance/glance-api.conf:

# ...
[oslo_messaging_notifications]
driver = messagingv2
# ...

Restart the Glance services to apply the configuration change.

Neutron notifications

OpenStack Neutron is an SDN networking project focused on delivering networking-as-a-service (NaaS) in virtual compute environments.

Make sure that the following settings are included in the Neutron configuration file. Neutron Configuration file path is usually /etc/neutron/neutron.conf:

# ...
[oslo_messaging_notifications]
driver = messagingv2
# ...

Restart the Neutron services to apply the configuration change.

Cinder notifications

Cinder is the code name for the OpenStack Block Storage service. OpenStack Block Storage provisions and manages block devices known as Cinder volumes.

Make sure that the following settings are included in the Cinder configuration file, usually /etc/cinder/cinder.conf:

# ...
[oslo_messaging_notifications]
driver = messagingv2
# ...

Restart the Cinder services to apply the configuration change.

Magnum, Trove, Heat notifications

If you are using one of the OpenStack projects below, you need to enable notifications for them as well:

  • Magnum

  • Trove

  • Heat

Edit the corresponding configuration file and add:

# ...
[oslo_messaging_notifications]
driver = messagingv2
# ...

Note

In order to process Magnum notifications, ‘magnum’ exchange must be added to notification exchanges in Fleio or fleio-collector.

Note

In order to process Trove notifications, ‘trove’ exchange must be added to notification exchanges in Fleio or fleio-collector.