Skip to content

Commit

Permalink
fix(nemesis): skip disrupt_mgmt_restore if multiDC cluster
Browse files Browse the repository at this point in the history
disrupt_mgmt_restore doesn't support multiDC cluster configuration due
to the issues:
- scylladb/scylla-manager#3829
- scylladb/scylla-manager#4049

Thus, it should be skipped if both issues are opened and cluster
configuration is multiDC.

(cherry picked from commit 53fbf07)
mikliapko authored and fruch committed Jan 8, 2025
1 parent 50e343a commit 8010418
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sdcm/nemesis.py
Original file line number Diff line number Diff line change
@@ -2966,6 +2966,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'):

0 comments on commit 8010418

Please sign in to comment.