Skip to content

Commit d492e85

Browse files
authored
Merge pull request ceph#61930 from thotz/s3-tests-verify-restore
qa/rgw: add new teuthology for cloud restore s3 tests Reviewed-by: Casey Bodley <[email protected]> Reviewed-by: Adam Emerson <[email protected]> Reviewed-by: Soumya Koduri <[email protected]>
2 parents f6b9454 + 5a29f74 commit d492e85

File tree

6 files changed

+52
-0
lines changed

6 files changed

+52
-0
lines changed

qa/suites/rgw/cloud-transition/overrides.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ overrides:
1111
rgw sts key: abcdefghijklmnop
1212
rgw s3 auth use sts: true
1313
rgw lc debug interval: 10
14+
rgw_restore_debug_interval: 20
1415
rgw:
1516
storage classes: LUKEWARM, FROZEN
1617
frontend: beast
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
tasks:
2+
- install:
3+
- ceph:
4+
- rgw:
5+
storage classes: LUKEWARM, FROZEN
6+
client.0:
7+
port: 8000
8+
client.1:
9+
port: 8001
10+
- rgw-cloudtier:
11+
client.0:
12+
cloud_storage_class: CLOUDTIER-CLIENT0
13+
cloud_client: client.1
14+
cloud_regular_storage_class: LUKEWARM
15+
cloud_target_storage_class: FROZEN
16+
cloud_retain_head_object: "true"
17+
cloud_target_path: "teuthology-client0"
18+
cloud_allow_read_through: "true"
19+
cloud_read_through_restore_days: "1"
20+
cloudtier_user:
21+
# cloud-user creds to be created on cloud-client
22+
cloud_secret: "abcefgh"
23+
cloud_access_key: "12345678"
24+
- tox: [client.0]
25+
- s3tests:
26+
client.0:
27+
rgw_server: client.0
28+
storage classes: LUKEWARM, FROZEN
29+
extra_attrs: ["cloud_restore"]
30+
lc_debug_interval: 10
31+
rgw_restore_debug_interval: 20
32+
lifecycle_tests: True
33+
cloudtier_tests: True

qa/suites/rgw/cloud-transition/tasks/cloud_transition_s3tests.yaml renamed to qa/suites/rgw/cloud-transition/tasks/transition/cloud_transition_s3tests.yaml

File renamed without changes.

qa/tasks/rgw_cloudtier.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class RGWCloudTier(Task):
2828
cloud_target_storage_class:
2929
cloud_retain_head_object:
3030
cloud_target_path:
31+
cloud_allow_read_through:
32+
cloud_read_through_restore_days:
3133
cloudtier_user:
3234
cloud_secret:
3335
cloud_access_key:
@@ -64,6 +66,8 @@ def setup(self):
6466
cloud_target_path = client_config.get('cloud_target_path')
6567
cloud_target_storage_class = client_config.get('cloud_target_storage_class')
6668
cloud_retain_head_object = client_config.get('cloud_retain_head_object')
69+
cloud_allow_read_through = client_config.get('cloud_allow_read_through')
70+
cloud_read_through_restore_days = client_config.get('cloud_read_through_restore_days')
6771

6872
cloudtier_user = client_config.get('cloudtier_user')
6973
cloud_access_key = cloudtier_user.get('cloud_access_key')
@@ -85,6 +89,10 @@ def setup(self):
8589
tier_config_params += ",target_path=" + cloud_target_path
8690
if (cloud_target_storage_class != None):
8791
tier_config_params += ",target_storage_class=" + cloud_target_storage_class
92+
if (cloud_allow_read_through != None):
93+
tier_config_params += ",allow_read_through=" + cloud_allow_read_through
94+
if (cloud_read_through_restore_days != None):
95+
tier_config_params += ",read_through_restore_days=" + cloud_read_through_restore_days
8896

8997
log.info('Configuring cloud-s3 tier storage class type = %s', cloud_storage_class)
9098

qa/tasks/s3tests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ def configure(ctx, config):
368368
if lc_debug_interval:
369369
s3tests_conf['s3 main']['lc_debug_interval'] = lc_debug_interval
370370

371+
rgw_restore_debug_interval = properties.get('rgw_restore_debug_interval')
372+
if rgw_restore_debug_interval:
373+
s3tests_conf['s3 main']['rgw_restore_debug_interval'] = rgw_restore_debug_interval
374+
371375
if ctx.rgw_cloudtier is not None:
372376
log.info(' ctx.rgw_cloudtier config is %s ...', ctx.rgw_cloudtier.config)
373377
client_rgw_config = ctx.rgw_cloudtier.config.get(client)
@@ -389,6 +393,12 @@ def configure(ctx, config):
389393
s3tests_conf['s3 cloud']['target_path'] = cloud_target_path
390394
if (cloud_target_storage_class != None):
391395
s3tests_conf['s3 cloud']['target_storage_class'] = cloud_target_storage_class
396+
cloud_allow_read_through = client_rgw_config.get('cloud_allow_read_through')
397+
if (cloud_allow_read_through != None):
398+
s3tests_conf['s3 cloud']['allow_read_through'] = cloud_allow_read_through
399+
cloud_read_through_restore_days = client_rgw_config.get('cloud_read_through_restore_days')
400+
if (cloud_read_through_restore_days != None):
401+
s3tests_conf['s3 cloud']['read_through_restore_days'] = cloud_read_through_restore_days
392402

393403
(remote,) = ctx.cluster.only(client).remotes.keys()
394404
conf_fp = BytesIO()

0 commit comments

Comments
 (0)