From 909824ac2b0a83158103ab5855856224b8d78b94 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Tue, 30 Nov 2021 16:03:18 +0400 Subject: [PATCH] Fix notifications for Cinder At the moment, the Cinder usage audit runs every 5 minutes which is excessive and causes load on the system. Also, it defaults to auditing an entire month which can take ages for large systems. This patch makes it run sanely at the 5th minute of ever hour and also runs the audit for the past hour only. Change-Id: I59d1230fa4d33a2cf0364ade1a710e65ef449057 Signed-off-by: Mohammed Naser --- cinder/Chart.yaml | 2 +- cinder/values.yaml | 3 ++- releasenotes/notes/cinder.yaml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cinder/Chart.yaml b/cinder/Chart.yaml index b1346894bc..a436a06621 100644 --- a/cinder/Chart.yaml +++ b/cinder/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Cinder name: cinder -version: 0.2.13 +version: 0.2.14 home: https://docs.openstack.org/cinder/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Cinder/OpenStack_Project_Cinder_vertical.png sources: diff --git a/cinder/values.yaml b/cinder/values.yaml index 6ac6502817..9882d30c17 100644 --- a/cinder/values.yaml +++ b/cinder/values.yaml @@ -69,7 +69,7 @@ images: jobs: volume_usage_audit: - cron: "*/5 * * * *" + cron: "5 * * * *" starting_deadline: 600 history: success: 3 @@ -859,6 +859,7 @@ conf: app_name: cinder-volume cinder: DEFAULT: + volume_usage_audit_period: hour resource_query_filters_file: /etc/cinder/resource_filters.json log_config_append: /etc/cinder/logging.conf use_syslog: false diff --git a/releasenotes/notes/cinder.yaml b/releasenotes/notes/cinder.yaml index 4421c99dff..db1b5c93dd 100644 --- a/releasenotes/notes/cinder.yaml +++ b/releasenotes/notes/cinder.yaml @@ -30,4 +30,5 @@ cinder: - 0.2.11 Update htk requirements repo - 0.2.12 Remove cinder v1/v2 defaults - 0.2.13 Upgrade default images to ussuri + - 0.2.14 Fix notifications ...