-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support different regions in disrupt_mgmt_restore nemesis #9492
Support different regions in disrupt_mgmt_restore nemesis #9492
Conversation
1f7af20
to
dfcfc38
Compare
@@ -22,7 +22,7 @@ instance_type_monitor: 't3.xlarge' | |||
|
|||
root_disk_size_runner: 120 | |||
|
|||
nemesis_class_name: 'SisyphusMonkey' | |||
nemesis_class_name: 'MgmtRestore' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reminder to put this back
@@ -5,7 +5,7 @@ def lib = library identifier: 'sct@snapshot', retriever: legacySCM(scm) | |||
|
|||
managerPipeline( | |||
backend: 'aws', | |||
region: 'us-west-2', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is for testing purposes ? or by mistake ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's by purpose, otherwise the test would fail because of region and backup bucket misconfiguration.
Before, the test was passing as backup_bucket_region
parameter was set to us-east-1
(means that manager agent had this region in configuration) and we used backups from the bucket at the same region.
@fruch I'm not done with this PR yet. |
dfcfc38
to
8722d45
Compare
Manager versions lower than 3.2 are outdated, not supported and not tested currently. I'd never expect them to be tested again.
For now, we can't set different region_name and backup_bucket_region. Thus, it makes sense to get rid of backup_bucket_region and just use region_name instead. Additionally, fix the region of ubuntu22-backup-test to us-east-1 to work with backups from us-east-1 s3 bucket.
8722d45
to
36704a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but we should test this with a multidc case
All backup snapshots has been duplicated into eu-west-1 region to make disrupt_mgmt_restore test functional for this region as well. This fix adjusts yaml file with snapshots configuration and the flow nemesis uses to choose the snapshot for the test.
According to comment (1), set ks strategy and rf is not needed if restoring the schema within one DC. It should be brought back after implementation of (2) which will unblock schema restore into a different DC. For now, it's possible to restore schema only within one DC. Refs: #1: scylladb/scylla-manager#4041 issuecomment-2565489699 #2: scylladb/scylla-manager#4049
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.
e546534
to
0bc578b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@dimakr Could you please take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
in #9492 some code changed to assume `region_name` always exists and when not using AWS, it doesn't exist (or it's empty) switch to retriving it in a safer way Ref: #9492 (cherry picked from commit 7d51938) # Conflicts: # mgmt_cli_test.py # mgmt_upgrade_test.py # sdcm/cluster.py # sdcm/cluster_k8s/eks.py
It's backport to the Haven't checked the |
Retrieve `region_name` in a safer way, since in AWS it might not exist or is empty. Follow-up to scylladb#9698. refs: scylladb#9492, scylladb#9698
Retrieve `region_name` in a safer way, since in AWS it might not exist or is empty. Follow-up to scylladb#9698. refs: scylladb#9492, scylladb#9698
Retrieve `region_name` in a safer way, since in AWS it might not exist or is empty. Follow-up to scylladb#9698. refs: scylladb#9492, scylladb#9698 (cherry picked from commit 36976cc)
Retrieve `region_name` in a safer way, since in AWS it might not exist or is empty. Follow-up to scylladb#9698. refs: scylladb#9492, scylladb#9698 (cherry picked from commit 36976cc)
Retrieve `region_name` in a safer way, since in AWS it might not exist or is empty. Follow-up to scylladb#9698. refs: scylladb#9492, scylladb#9698 (cherry picked from commit 36976cc)
Closes scylladb/scylla-manager#4041
Changes:
Testing
PR pre-checks (self review)
backport
labels