6.7. Enabling Image service change notifications
You can enable notifications in the Image service (glance) for various events that occur during the image lifecycle.
These notifications provide telemetry data that you can use for the following:
- Auditing, troubleshooting, and monitoring operations
- Integrating with other services such as Ceilometer for metrics collection and processing
The Image service uses the RabbitMQ message broker software for notification delivery to a configured message queue. Services inherit global notificationsBus settings configured at the control plane level. Use this procedure only when you need to configure a dedicated RabbitMQ cluster for this service that differs from the global configuration.
Procedure
Open your
OpenStackControlPlaneCR file,openstack_control_plane.yaml, and add thenotificationsBusparameter to theglancetemplate to specify the RabbitMQ cluster name to use for requesting a transport URL.注意The
notificationsBusInstanceparameter is deprecated. Existing deployments that usenotificationsBusInstanceare automatically migrated to use thenotificationsBusinterface.kind: OpenStackControlPlane spec: ... glance: template: ... notificationsBus: cluster: rabbitmq customServiceConfig: | ...To turn off notifications, remove the
notificationsBusparameter from theglancetemplate and update the control plane.Update the control plane:
$ oc apply -f openstack_control_plane.yaml -n openstackWait until Red Hat OpenShift Container Platform (RHOCP) creates the resources related to the
OpenStackControlPlaneCR. Run the following command to check the status:$ oc get openstackcontrolplane -n openstackThe
OpenStackControlPlaneresources are created when the status is "Setup complete".提示Append the
-woption to the end of thegetcommand to track deployment progress.