From 822f19fc3d7f53e922ef8bffa30da36e924d9f41 Mon Sep 17 00:00:00 2001 From: KimMinSik Date: Tue, 13 Nov 2018 11:39:57 +0900 Subject: [PATCH] Nova generates versioned_notifications but no one consume Nova generates versioned_notifications but no one consume even ceilometer. versioned_notification queues will continuously increase if there is no consumer. https://docs.openstack.org/nova/latest/configuration/config.html#notifications https://docs.openstack.org/nova/latest/reference/notifications.html We can set notification_format to 'unversioned' in the nova.conf Change-Id: Id990633fb1816b3506778ccc0a9ae76bcb588e86 Closes-Bug: #1803019 --- defaults/main.yml | 2 ++ templates/nova.conf.j2 | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 97cd61e6..38547b2e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -22,6 +22,8 @@ nova_designate_enabled: False nova_notifications_designate: notifications_designate # Enable/Disable ceilometer configurations nova_ceilometer_enabled: False +# Enable/Disable nova versioned notification +nova_versioned_notification_enabled: False ## Verbosity Options debug: False diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index e3631c3a..fd062d26 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -73,7 +73,6 @@ force_config_drive = {{ nova_force_config_drive }} {% if nova_ceilometer_enabled %} instance_usage_audit = True instance_usage_audit_period = hour -notify_on_state_change = vm_and_task_state {% endif %} # Notifications @@ -168,6 +167,13 @@ service_metadata_proxy = {{ nova_metadata_proxy_enabled }} ovs_bridge = {{ nova_network_services[nova_network_type]['ovs_bridge'] }} {% endif %} +{% if nova_ceilometer_enabled %} +[notifications] +notify_on_state_change = vm_and_task_state +notification_format = {% if nova_versioned_notification_enabled %}both{% else %}unversioned{% endif %} +{% endif %} + + {% if nova_placement_service_enabled | bool %} # Placement [placement]