Nova: Disable instance usage audit by default

When instance usage audit is enabled, nova periodically sends
the compute.instance.exists notifications. These notifications were
supposed to be consumed by Telemetry services but Telemetry services
are no longer enabled by default.

This change disables the feature to get rid of these unused
notifications. The feature can be still enabled by the new
NovaInstanceUsageAudit parameter.

Closes-Bug: #1955631
Change-Id: Iba00aa67c89d04b495fef8544fd3125b96941806
This commit is contained in:
Takashi Kajinami 2021-12-23 18:38:21 +09:00 committed by Brent Eagles
parent b3e8e218f8
commit a8a24184d7
4 changed files with 22 additions and 2 deletions

View File

@ -788,6 +788,12 @@ parameters:
description: If set to true and if EnableInternalTLS is enabled, it will
set the libvirt URI's transport to tls and configure the
relevant keys for libvirt.
NovaInstanceUsageAudit:
type: boolean
default: false
description: >
Enable periodic compute.instance.exists notifications, which are consumed
by Telemetry service.
# DEPRECATED: the following options are deprecated and are currently maintained
# for backwards compatibility. They will be removed in future release.
@ -1113,8 +1119,6 @@ outputs:
nova::cinder::region_name: {get_param: KeystoneRegion}
nova::compute::rbd::libvirt_rbd_secret_key: {get_param: CephClientKey}
nova::compute::rbd::libvirt_rbd_secret_uuid: {get_param: CephClusterFSID}
nova::compute::instance_usage_audit: true
nova::compute::instance_usage_audit_period: 'hour'
nova::compute::consecutive_build_service_disable_threshold: {get_param: NovaAutoDisabling}
nova::compute::live_migration_wait_for_vif_plug: {get_param: NovaLiveMigrationWaitForVIFPlug}
nova::migration::libvirt::live_migration_permit_post_copy:
@ -1156,6 +1160,10 @@ outputs:
if:
- nova_libvirt_max_queues_set
- {get_attr: [RoleParametersValue, value, nova_libvirt_max_queues]}
- if:
- {get_param: NovaInstanceUsageAudit}
- nova::compute::instance_usage_audit: true
nova::compute::instance_usage_audit_period: 'hour'
- if:
- glance_enable_rbd_download_set
- nova::glance::enable_rbd_download: {get_attr: [RoleParametersValue, value, nova_glance_enable_rbd_download]}

View File

@ -16,6 +16,7 @@ resource_registry:
parameter_defaults:
NotificationDriver: 'messagingv2'
NovaInstanceUsageAudit: true
# uncomment the next two lines when using ceph
# GnocchiRbdPoolName: 'metrics'
# GnocchiBackend: 'rbd'

View File

@ -12,3 +12,4 @@ parameter_defaults:
CeilometerQdrPublishEvents: true
CeilometerQdrPublishMetrics: true
NotificationDriver: 'messagingv2'
NovaInstanceUsageAudit: true

View File

@ -0,0 +1,10 @@
---
features:
- |
The new ``NovaInstanceUsageAudit`` parameter has been added.
fixes:
- |
The periodic notifications of instance usage by Nova is now disabled by
default. These notifications are not consumed unless Telemtry services are
enabled.