Project

General

Profile

Actions

Bug #71348

closed

FAIL: test_restore_object_permanent

Added by Casey Bodley 12 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Urgent
Target version:
-
% 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

Related issues 1 (0 open1 closed)

Has duplicate rgw - Bug #71687: Failure in cloud restore testsDuplicateJiffin Tony Thottan

Actions
Actions #2

Updated by Soumya Koduri 11 months ago

  • Assignee changed from Soumya Koduri to Jiffin Tony Thottan
Actions #4

Updated by Casey Bodley 11 months ago

  • Status changed from New to Resolved
Actions #5

Updated by J. Eric Ivancich 11 months ago

  • Has duplicate Bug #71687: Failure in cloud restore tests added
Actions

Also available in: Atom PDF