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.
  • Loading branch information
mikliapko committed Jan 2, 2025
1 parent 33594d2 commit 0bc578b
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
Expand Up @@ -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'):
Expand Down

0 comments on commit 0bc578b

Please sign in to comment.