From 9b6c6a04a274940667c02063ebc39396bb16fcf1 Mon Sep 17 00:00:00 2001 From: Marcin Wilk Date: Tue, 18 Aug 2026 12:37:51 +0200 Subject: [PATCH 1/2] fix: update nova-compute notification config for telemetry meters Change notification_format from versioned to both so that Ceilometer receives unversioned notifications and Watcher receives versioned ones. Add notify_on_state_change = vm_and_task_state to enable instance lifecycle notifications like compute.instance.booting.time. Partial-bug: #2162762 Signed-off-by: Marcin Wilk (cherry picked from commit 63bb2db5f8974a97374d51ec9bd983fce22576fe) Signed-off-by: Munir Siddiqui --- templates/nova.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index 762ae6a..1a1e1d8 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -233,7 +233,8 @@ verify_ssl_path = {{ snap_common }}/etc/ssl/certs/receive-ca-bundle.pem driver = messagingv2 [notifications] -notification_format = versioned +notify_on_state_change = vm_and_task_state +notification_format = both {%- endif %} [oslo_messaging_rabbit] From 19d272544656b5c0b792227f57b753ca33a8b3ac Mon Sep 17 00:00:00 2001 From: Marcin Wilk Date: Mon, 31 Aug 2026 17:14:00 +0200 Subject: [PATCH 2/2] Fix ceilometer notification settings in the nova.conf Enable instance_usage_audit with an hourly period so nova-compute emits the periodic compute.instance.exists audit events that Ceilometer consumes. [0] This commit fixes missing nova.conf Ceilometer notification settings. [0] - https://docs.openstack.org/ceilometer/2024.1/install/install-compute-ubuntu.html#configure-compute-to-use-telemetry Partial-bug: #2162762 Signed-off-by: Marcin Wilk (cherry picked from commit 1a9a41cd1d599dd8678a34549257503c39904854) Signed-off-by: Munir Siddiqui --- templates/nova.conf.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index 1a1e1d8..3daa23d 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -36,6 +36,11 @@ ram_allocation_ratio = 1.0 {% if sev and sev.reserved_host_memory_mb -%} reserved_host_memory_mb = {{ sev.reserved_host_memory_mb }} {% endif %} +{% endif -%} + +{%- if telemetry.enable %} +instance_usage_audit = True +instance_usage_audit_period = hour {% endif %} [workarounds] @@ -226,7 +231,7 @@ password = {{ identity.password }} {% if ca and ca.bundle -%} verify_ssl_path = {{ snap_common }}/etc/ssl/certs/receive-ca-bundle.pem {% endif -%} -{% endif -%} +{% endif %} {% if telemetry.enable -%} [oslo_messaging_notifications]