From 0bc578b68ddb99678a151059295c572ab1d38148 Mon Sep 17 00:00:00 2001 From: Liapkovich Date: Thu, 2 Jan 2025 13:23:28 +0100 Subject: [PATCH] fix(nemesis): skip disrupt_mgmt_restore if multiDC cluster disrupt_mgmt_restore doesn't support multiDC cluster configuration due to the issues: - https://github.com/scylladb/scylla-manager/issues/3829 - https://github.com/scylladb/scylla-manager/issues/4049 Thus, it should be skipped if both issues are opened and cluster configuration is multiDC. --- sdcm/nemesis.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdcm/nemesis.py b/sdcm/nemesis.py index a533f2a297..e9451470a1 100644 --- a/sdcm/nemesis.py +++ b/sdcm/nemesis.py @@ -3047,6 +3047,14 @@ def execute_data_validation_thread(command_template, keyspace_name, number_of_ro stress_queue.append(read_thread) return stress_queue + skip_issues = [ + "https://github.com/scylladb/scylla-manager/issues/3829", + "https://github.com/scylladb/scylla-manager/issues/4049" + ] + is_multi_dc = len(self.cluster.params.get('region_name').split()) > 1 + if SkipPerIssues(skip_issues, params=self.tester.params) and is_multi_dc: + raise UnsupportedNemesis("MultiDC cluster configuration is not supported by this nemesis") + if not (self.cluster.params.get('use_mgmt') or self.cluster.params.get('use_cloud_manager')): raise UnsupportedNemesis('Scylla-manager configuration is not defined!') if self.cluster.params.get('cluster_backend') not in ('aws', 'k8s-eks'):