@@ -5627,11 +5627,9 @@ def wrapper(*args, **kwargs): # pylint: disable=too-many-statements # noqa: PL
5627
5627
5628
5628
5629
5629
class SisyphusMonkey (Nemesis ):
5630
- NEMESIS_SELECTOR = None
5631
-
5632
5630
def __init__ (self , * args , ** kwargs ):
5633
5631
super ().__init__ (* args , ** kwargs )
5634
- self .build_list_of_disruptions_to_execute (nemesis_selector = self . nemesis_selector )
5632
+ self .build_list_of_disruptions_to_execute ()
5635
5633
self .shuffle_list_of_disruptions ()
5636
5634
5637
5635
def disrupt (self ):
@@ -6068,35 +6066,6 @@ def _random_disrupt(self):
6068
6066
self .execute_disrupt_method (bound_method )
6069
6067
6070
6068
6071
- class LimitedChaosMonkey (SisyphusMonkey ):
6072
- # Limit the nemesis scope:
6073
- # - NodeToolCleanupMonkey
6074
- # - DecommissionMonkey
6075
- # - DrainerMonkey
6076
- # - RefreshMonkey
6077
- # - StopStartMonkey
6078
- # - MajorCompactionMonkey
6079
- # - ModifyTableMonkey
6080
- # - EnospcMonkey
6081
- # - StopWaitStartMonkey
6082
- # - HardRebootNodeMonkey
6083
- # - SoftRebootNodeMonkey
6084
- # - TruncateMonkey
6085
- # - TopPartitions
6086
- # - MgmtCorruptThenRepair
6087
- # - MgmtRepair
6088
- # - NoCorruptRepairMonkey
6089
- # - SnapshotOperations
6090
- # - AbortRepairMonkey
6091
- # - MgmtBackup
6092
- # - MgmtBackupSpecificKeyspaces
6093
- # - AddDropColumnMonkey
6094
- # - PauseLdapNemesis
6095
- # - ToggleLdapConfiguration
6096
-
6097
- NEMESIS_SELECTOR = "limited"
6098
-
6099
-
6100
6069
CLOUD_LIMITED_CHAOS_MONKEY = ['disrupt_nodetool_cleanup' ,
6101
6070
'disrupt_nodetool_drain' , 'disrupt_nodetool_refresh' ,
6102
6071
'disrupt_stop_start_scylla_server' , 'disrupt_major_compaction' ,
@@ -6491,59 +6460,6 @@ def disrupt(self):
6491
6460
self .disrupt_network_start_stop_interface ()
6492
6461
6493
6462
6494
- class DisruptiveMonkey (SisyphusMonkey ):
6495
- # Limit the nemesis scope:
6496
- # - ValidateHintedHandoffShortDowntime
6497
- # - CorruptThenRepairMonkey
6498
- # - CorruptThenRebuildMonkey
6499
- # - RestartThenRepairNodeMonkey
6500
- # - StopStartMonkey
6501
- # - MultipleHardRebootNodeMonkey
6502
- # - HardRebootNodeMonkey
6503
- # - SoftRebootNodeMonkey
6504
- # - StopWaitStartMonkey
6505
- # - NodeTerminateAndReplace
6506
- # - EnospcMonkey
6507
- # - DecommissionMonkey
6508
- # - NodeRestartWithResharding
6509
- # - DrainerMonkey
6510
-
6511
- NEMESIS_SELECTOR = "disruptive"
6512
-
6513
-
6514
- class NonDisruptiveMonkey (Nemesis ):
6515
- # Limit the nemesis scope:
6516
- # - NodeToolCleanupMonkey
6517
- # - SnapshotOperations
6518
- # - RefreshMonkey
6519
- # - RefreshBigMonkey -
6520
- # - NoCorruptRepairMonkey
6521
- # - MgmtRepair
6522
- NEMESIS_SELECTOR = "not disruptive"
6523
-
6524
-
6525
- class NetworkMonkey (SisyphusMonkey ):
6526
- # Limit the nemesis scope:
6527
- # - RandomInterruptionNetworkMonkey
6528
- # - StopStartInterfacesNetworkMonkey
6529
- # - BlockNetworkMonkey
6530
-
6531
- NEMESIS_SELECTOR = "networking"
6532
-
6533
-
6534
- class GeminiChaosMonkey (SisyphusMonkey ):
6535
- # Limit the nemesis scope to use with gemini
6536
- # - StopStartMonkey
6537
- # - RestartThenRepairNodeMonkey
6538
-
6539
- NEMESIS_SELECTOR = "run_with_gemini"
6540
-
6541
-
6542
- class GeminiNonDisruptiveChaosMonkey (SisyphusMonkey ):
6543
-
6544
- NEMESIS_SELECTOR = "run_with_gemini and not disruptive"
6545
-
6546
-
6547
6463
class ScyllaOperatorBasicOperationsMonkey (Nemesis ):
6548
6464
"""
6549
6465
Selected number of nemesis that is focused on scylla-operator functionality
@@ -6638,12 +6554,8 @@ def disrupt(self):
6638
6554
self .disrupt_repair_streaming_err ()
6639
6555
6640
6556
6641
- COMPLEX_NEMESIS = [NoOpMonkey , ChaosMonkey ,
6642
- LimitedChaosMonkey ,
6643
- ScyllaCloudLimitedChaosMonkey ,
6644
- AllMonkey , MdcChaosMonkey ,
6645
- DisruptiveMonkey , NonDisruptiveMonkey , GeminiNonDisruptiveChaosMonkey ,
6646
- GeminiChaosMonkey , NetworkMonkey , SisyphusMonkey ,
6557
+ COMPLEX_NEMESIS = [NoOpMonkey , ChaosMonkey , ScyllaCloudLimitedChaosMonkey ,
6558
+ AllMonkey , MdcChaosMonkey , SisyphusMonkey ,
6647
6559
DisruptKubernetesNodeThenReplaceScyllaNode ,
6648
6560
DisruptKubernetesNodeThenDecommissionAndAddScyllaNode ,
6649
6561
CategoricalMonkey ]
@@ -6706,21 +6618,6 @@ def disrupt(self):
6706
6618
self .disrupt_start_stop_validation_compaction ()
6707
6619
6708
6620
6709
- class FreeTierSetMonkey (SisyphusMonkey ):
6710
- """Nemesis set for testing Scylla Cloud free tier.
6711
-
6712
- Disruptions that can be caused by random failures and user actions and human operator:
6713
- - doesn't include any topology changes (scale up/down, decommission)
6714
- - doesn't include manager backup/repairs
6715
- - doesn't include k8s nodes related (i.e. one title as exclusive)"""
6716
-
6717
- def __init__ (self , * args , ** kwargs ):
6718
- # skip SisyphusMonkey __init__ to not repeat build disruption logic, but still we want to run Nemesis class __init__
6719
- super (SisyphusMonkey , self ).__init__ (* args , ** kwargs ) # pylint: disable=bad-super-call
6720
- self .build_list_of_disruptions_to_execute (nemesis_selector = 'free_tier_set' )
6721
- self .shuffle_list_of_disruptions ()
6722
-
6723
-
6724
6621
class SlaIncreaseSharesDuringLoad (Nemesis ):
6725
6622
disruptive = False
6726
6623
sla = True
@@ -6862,20 +6759,6 @@ def disrupt(self):
6862
6759
self .disrupt_grow_shrink_zero_nodes ()
6863
6760
6864
6761
6865
- class ZeroTokenSetMonkey (SisyphusMonkey ):
6866
- """Nemesis set for testing Scylla with configured zero nodes
6867
-
6868
- Disruptions that can be caused by random failures and user actions with
6869
- zero node configured
6870
- """
6871
-
6872
- def __init__ (self , * args , ** kwargs ):
6873
- super (SisyphusMonkey , self ).__init__ (* args , ** kwargs ) # pylint: disable=bad-super-call
6874
- self .use_all_nodes_as_target = True
6875
- self .build_list_of_disruptions_to_execute (nemesis_selector = 'zero_node_changes' )
6876
- self .shuffle_list_of_disruptions ()
6877
-
6878
-
6879
6762
class SerialRestartOfElectedTopologyCoordinatorNemesis (Nemesis ):
6880
6763
6881
6764
disruptive = True
0 commit comments