From 310a80d8e2ad9dc58fff4b82fad2db384cf7dd3e Mon Sep 17 00:00:00 2001 From: Lars Getwan Date: Mon, 16 Dec 2024 10:04:42 +0100 Subject: [PATCH] FIX Support Diagnostics housekeeping The diagnostics dump job splits collecting data into chunks and creates a tar for each chunk. The internal housekeeping, on the other hand, only keeps 5 tar files. So, when lots of options are selected to be included into the dump, the tars were deleted before they were collected. Reference: CMK-20621 The number of tars to keep is now set to 10. Change-Id: If96f97a95958824ffcc72deb44b70f9bc287e02c --- cmk/base/diagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmk/base/diagnostics.py b/cmk/base/diagnostics.py index 2a8c32fc794..0069e0abf33 100644 --- a/cmk/base/diagnostics.py +++ b/cmk/base/diagnostics.py @@ -136,7 +136,7 @@ def _format_error(error): class DiagnosticsDump: """Caring about the persistance of diagnostics dumps in the local site""" - _keep_num_dumps = 5 + _keep_num_dumps = 10 def __init__(self, parameters: DiagnosticsOptionalParameters | None = None) -> None: self.fixed_elements = self._get_fixed_elements()