Merge pull request #44348 from soumyakoduri/wip-skoduri-lc-teuthology

rgw/qa: Add test suite for lifecycle cases

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2022-02-04 11:04:13 -05:00 committed by GitHub
commit a2d2ed2d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 53 additions and 0 deletions

View File

1
qa/suites/rgw/lifecycle/.qa Symbolic link
View File

@ -0,0 +1 @@
../.qa

View File

@ -0,0 +1,9 @@
roles:
- [mon.a, osd.0, osd.1, osd.2, mgr.0, client.0]
openstack:
- volumes: # attached to each instance
count: 1
size: 10 # GB
overrides:
rgw:
frontend: beast

View File

@ -0,0 +1,14 @@
overrides:
ceph:
wait-for-scrub: false
conf:
client:
setuser: ceph
setgroup: ceph
debug rgw: 20
rgw crypt s3 kms backend: testing
rgw crypt s3 kms encryption keys: testkey-1=YmluCmJvb3N0CmJvb3N0LWJ1aWxkCmNlcGguY29uZgo= testkey-2=aWIKTWFrZWZpbGUKbWFuCm91dApzcmMKVGVzdGluZwo=
rgw crypt require ssl: false
rgw lc debug interval: 10
rgw:
storage classes: LUKEWARM, FROZEN

View File

@ -0,0 +1 @@
.qa/distros/supported-random-distro$

View File

@ -0,0 +1,20 @@
tasks:
- install:
- ceph:
- rgw: [client.0]
- s3tests:
client.0:
force-branch: ceph-master
rgw_server: client.0
storage classes: LUKEWARM, FROZEN
extra_attrs: ["lifecycle"]
lc_debug_interval: 10
overrides:
ceph:
conf:
client:
debug rgw: 20
rgw lc debug interval: 10
storage classes: LUKEWARM, FROZEN
rgw:
storage classes: LUKEWARM, FROZEN

View File

@ -356,6 +356,14 @@ def configure(ctx, config):
if slow_backend:
s3tests_conf['fixtures']['slow backend'] = slow_backend
storage_classes = properties.get('storage classes')
if storage_classes:
s3tests_conf['s3 main']['storage_classes'] = storage_classes
lc_debug_interval = properties.get('lc_debug_interval')
if lc_debug_interval:
s3tests_conf['s3 main']['lc_debug_interval'] = lc_debug_interval
(remote,) = ctx.cluster.only(client).remotes.keys()
remote.run(
args=[