Skip to content

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

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

rgw/restore: Add rgw_restore_processor_period config option to determine restore time#686
soumyakoduri merged 1 commit intoceph: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

Copy link
Copy Markdown
Contributor

@thotz thotz left a comment

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
Copy link
Copy Markdown
Contributor

thotz commented Sep 19, 2025

Rebase all into one single commit?

@soumyakoduri
Copy link
Copy Markdown
Contributor Author

Rebase all into one single commit?

yes.. finally got the tests consistently passing

http://pulpito.front.sepia.ceph.com/soumyakoduri-2025-09-18_19:22:48-rgw:cloud-transition-wip-skoduri-restore-tests-distro-default-smithi/

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 <skoduri@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants