Actions
Bug #71348
closedFAIL: test_restore_object_permanent
% Done:
0%
Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
cloud-restore
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:
Description
rgw/cloud-restore failed on run and rerun of a wip branch:
https://qa-proxy.ceph.com/teuthology/cbodley-2025-05-16_15:24:02-rgw-wip-22168-distro-default-smithi/8286759/teuthology.log
https://qa-proxy.ceph.com/teuthology/cbodley-2025-05-16_19:44:29-rgw-wip-22168-distro-default-smithi/8286843/teuthology.log
i scheduled main for a baseline and saw the same failure:
https://pulpito.ceph.com/cbodley-2025-05-16_21:17:10-rgw:cloud-transition-main-distro-default-smithi/
=================================== FAILURES ===================================
________________________ test_restore_object_permanent _________________________
@pytest.mark.cloud_restore
@pytest.mark.fails_on_aws
@pytest.mark.fails_on_dbstore
def test_restore_object_permanent():
cloud_sc = get_cloud_storage_class()
if cloud_sc is None:
pytest.skip('[s3 cloud] section missing cloud_storage_class')
bucket = get_new_bucket()
client = get_client()
key = 'test_restore_perm'
data = 'permanent restore data'
# Put object
client.put_object(Bucket=bucket, Key=key, Body=data)
verify_object(client, bucket, key, data)
# Transition object to cloud storage class
rules = [{'ID': 'rule1', 'Transitions': [{'Days': 1, 'StorageClass': cloud_sc}], 'Prefix': '', 'Status': 'Enabled'}]
lifecycle = {'Rules': rules}
client.put_bucket_lifecycle_configuration(Bucket=bucket, LifecycleConfiguration=lifecycle)
lc_interval = get_lc_debug_interval()
time.sleep(10 * lc_interval)
# Verify object is transitioned
verify_transition(client, bucket, key, cloud_sc)
# Restore object permanently
client.restore_object(Bucket=bucket, Key=key, RestoreRequest={})
time.sleep(2)
# Verify object is restored permanently
> verify_transition(client, bucket, key, 'STANDARD')
s3tests_boto3/functional/test_s3.py:10009:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
client = <botocore.client.S3 object at 0x7f643a419de0>
bucket = 'test-zaiowwtpebxheo4s2kzz5937-2', key = 'test_restore_perm'
sc = 'STANDARD', version = None
def verify_transition(client, bucket, key, sc=None, version=None):
if (version != None):
response = client.head_object(Bucket=bucket, Key=key, VersionId=version)
else:
response = client.head_object(Bucket=bucket, Key=key)
# Iterate over the contents to find the StorageClass
if 'StorageClass' in response:
> assert response['StorageClass'] == sc
E AssertionError: assert 'CLOUDTIER-CLIENT0' == 'STANDARD'
E
E - STANDARD
E + CLOUDTIER-CLIENT0
s3tests_boto3/functional/test_s3.py:9631: AssertionError
Updated by Soumya Koduri 11 months ago
- Assignee changed from Soumya Koduri to Jiffin Tony Thottan
Updated by Jiffin Tony Thottan 11 months ago
Casey Bodley wrote in #note-1:
PR posted https://github.com/ceph/s3-tests/pull/657 but teutology is failing for me last two day against main
Updated by J. Eric Ivancich 11 months ago
- Has duplicate Bug #71687: Failure in cloud restore tests added
Actions