diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index c9374e4..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,14 +235,15 @@ 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] driver = messagingv2 [notifications] -notification_format = versioned +notify_on_state_change = vm_and_task_state +notification_format = both {%- endif %} [oslo_messaging_rabbit]