From 8cedbc195fdd6ec54cb180c2b0efdab8750dffa7 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 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 --- templates/nova.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index c9374e4..382eb36 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -237,6 +237,7 @@ verify_ssl_path = {{ snap_common }}/etc/ssl/certs/receive-ca-bundle.pem driver = messagingv2 [notifications] +notify_on_state_change = vm_and_task_state notification_format = versioned {%- endif %} From 81dcfe0df4804983d4ae7d26360dd5532ff4ea81 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 This is a follow up to the previous commit [1], which did not properly configured nova.conf to support Ceilometer notifications. On 2026.1, according to [2], all instance-related metric are collected by pollster, so theoretically, no nova.conf changes are needed at all. However, when enabled, Nova sends the legacy, unversioned notifications to Ceilometer, with the following meters, which are not available via pollster [4]: - memory - vcpus - disk.root.size - disk.ephemeral.size Without the Nova notifications enabled the above, flavor-based, meters will not be available. This is important because some external or third party billing systems may rely on that. This commit fixes missing nova.conf Ceilometer notification settings. [1] https://github.com/canonical/snap-openstack-hypervisor/pull/208 [2] https://docs.openstack.org/ceilometer/2026.1/admin/telemetry-measurements.html#openstack-compute [3] https://opendev.org/openstack/nova/src/branch/stable/2026.1/nova/compute/utils.py#L342 [4] https://opendev.org/openstack/nova/src/branch/stable/2026.1/nova/notifications/base.py#L337 Partial-bug: #2162762 Signed-off-by: Marcin Wilk --- templates/nova.conf.j2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index 382eb36..85015b1 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] @@ -230,7 +235,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] @@ -238,7 +243,7 @@ driver = messagingv2 [notifications] notify_on_state_change = vm_and_task_state -notification_format = versioned +notification_format = both {%- endif %} [oslo_messaging_rabbit]