From b142016d9723e1c16820b3cafa5027c633856d16 Mon Sep 17 00:00:00 2001 From: Lars Getwan Date: Mon, 16 Dec 2024 09:39:04 +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: I9bcbc1f66e2ffd034725e58b8e345e908d453704 --- 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 23f9d7d7d4e..90746a1695d 100644 --- a/cmk/base/diagnostics.py +++ b/cmk/base/diagnostics.py @@ -139,7 +139,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()