Skip to content

Commit

Permalink
Merge pull request #663 from anrao19/CEPH-10959
Browse files Browse the repository at this point in the history
[Tier-2] datalog trimming post restart of rgw service
  • Loading branch information
mergify[bot] authored Jan 16, 2025
2 parents 0422949 + 7977567 commit 710849a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# upload type: non multipart
# script: test_bilog_trimming.py
# polarion_id: CEPH-10959
config:
log_trimming: datalog
user_count: 1
bucket_count: 2
objects_count: 100
objects_size_range:
min: 5
max: 15
test_ops:
create_bucket: true
create_object: true
datalog_trim_post_rgw_restart: true
12 changes: 12 additions & 0 deletions rgw/v2/tests/s3_swift/test_bilog_trimming.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<input_yaml>
Note: Following yaml can be used
test_bilog_trimming.yaml
test_bilog_trim_archive.yaml
test_datalog_trimming.yaml
test_mdlog_trimming.yaml
test_datalog_trimming_post_rgw_restart.yaml
Operation:
Create an user
Expand Down Expand Up @@ -35,6 +39,7 @@
from v2.tests.s3_swift import reusable
from v2.utils.log import configure_logging
from v2.utils.test_desc import AddTestInfo
from v2.utils.utils import RGWService

log = logging.getLogger()
TEST_DATA_PATH = None
Expand Down Expand Up @@ -82,6 +87,13 @@ def test_exec(config, ssh_con):
config,
each_user,
)
if config.test_ops.get("datalog_trim_post_rgw_restart", False) is True:
rgw_service = RGWService()
log.info("trying to restart services")
srv_restarted = rgw_service.restart(ssh_con)
time.sleep(30)
if srv_restarted is False:
raise TestExecError("RGW service restart failed")

# test log trimming
reusable.test_log_trimming(bucket, config)
Expand Down

0 comments on commit 710849a

Please sign in to comment.