Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

rgw/restore: Add rgw_restore_processor_period config option to determine restore time - #686

Merged
soumyakoduri merged 1 commit into
ceph:masterfrom
soumyakoduri:wip-skoduri-restore-restart
Sep 23, 2025
Merged

soumyakoduri merged 1 commit into
ceph:masterfrom
soumyakoduri:wip-skoduri-restore-restart

Conversation

@soumyakoduri

Copy link
Copy Markdown
Contributor

With ceph/ceph#64933 , now the restore requests are processed asynchronously even for cloud-s3 tier types. This change includes option rgw_restore_processor_period to determine restore time before verifying in the tests.

Comment thread s3tests_boto3/functional/test_s3.py Outdated
# check_request_timeout(client.get_object, Bucket=bucket, Key=key)
response = client.get_object(Bucket=bucket, Key=key)
time.sleep(2)
# time.sleep(2*restore_period)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this being comment out from the testcase, please remove it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

# Iterate over the contents to find the StorageClass
if 'StorageClass' in response:
assert response['StorageClass'] == sc
else: # storage class should be STANDARD

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any specific reason why it is removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed like it wasn't necessary but I see this check was added on to check transition but to verify response has StorageClass if not for STANDARD.

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-restore-restart branch 2 times, most recently from 7c5635c to 9e5cef8 Compare September 12, 2025 19:46
@adamemerson
adamemerson requested a review from thotz September 13, 2025 18:16
@adamemerson

Copy link
Copy Markdown
Contributor

@thotz Please re-revies

@thotz thotz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it passes teutology cases for cloud restore/transition. Then I am okay to merge this change

@thotz

thotz commented Sep 19, 2025

Copy link
Copy Markdown
Contributor

Rebase all into one single commit?

@soumyakoduri

Copy link
Copy Markdown
Contributor Author

This adjusts restore period as per ceph/ceph#64933

Also deleting lifecycle post transition so that temp restored files
remain for a while without being re-transitioned immeditately.

Signed-off-by: Soumya Koduri <[email protected]>
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-restore-restart branch from b98887e to deab93b Compare September 22, 2025 06:42
@soumyakoduri
soumyakoduri merged commit 4e55e7b into ceph:master Sep 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants