Project

General

Profile

Actions

Bug #79866

closed
CB SK

FAILED s3tests/functional/test_s3.py::test_lifecycle_cloud_multiple_transition

Bug #79866: FAILED s3tests/functional/test_s3.py::test_lifecycle_cloud_multiple_transition

Added by Casey Bodley 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
cloud-transition
Fixed In:
v21.3.0-2887-g8c05c6c179
Released In:
Upkeep Timestamp:
2026-09-03T14:07:48+00:00

Description

recent examples:
https://qa-proxy.ceph.com/teuthology/cbodley-2026-08-24_20:23:05-rgw-wip-79803-distro-default-trial/510028/teuthology.log
https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-08-25_01:47:41-rgw-wip-oozmen-valkey-testing-2026-08-25-0017-distro-default-trial/511165/teuthology.log

=================================== FAILURES ===================================
___________________ test_lifecycle_cloud_multiple_transition ___________________

    @pytest.mark.lifecycle
    @pytest.mark.lifecycle_transition
    @pytest.mark.cloud_transition
    @pytest.mark.fails_on_aws
    @pytest.mark.fails_on_dbstore
    def test_lifecycle_cloud_multiple_transition():
        cloud_sc = get_cloud_storage_class()
        if cloud_sc == None:
            pytest.skip('[s3 cloud] section missing cloud_storage_class')

        retain_head_object = get_cloud_retain_head_object()
        target_path = get_cloud_target_path()
        target_sc = get_cloud_target_storage_class()

        sc1 = get_cloud_regular_storage_class()

        if (sc1 == None):
            pytest.skip('[s3 cloud] section missing storage_class')

        sc = ['STANDARD', sc1, cloud_sc]

        keys=['expire1/foo', 'expire1/bar', 'keep2/foo', 'keep2/bar']
        bucket_name = _create_objects(keys=keys)
        client = get_client()
        rules=[{'ID': 'rule1', 'Transitions': [{'Days': 1, 'StorageClass': sc1}], 'Prefix': 'expire1/', 'Status': 'Enabled'},
               {'ID': 'rule2', 'Transitions': [{'Days': 5, 'StorageClass': cloud_sc}], 'Prefix': 'expire1/', 'Status': 'Enabled'},
               {'ID': 'rule3', 'Expiration': {'Days': 9}, 'Prefix': 'expire1/', 'Status': 'Enabled'}]
        lifecycle = {'Rules': rules}
        client.put_bucket_lifecycle_configuration(Bucket=bucket_name, LifecycleConfiguration=lifecycle)

        # Get list of all keys
        response = client.list_objects(Bucket=bucket_name)
        init_keys = _get_keys(response)
        assert len(init_keys) == 4

        lc_interval = get_lc_debug_interval()

        # Wait for first expiration (plus fudge to handle the timer window)
        time.sleep(4*lc_interval)
        expire1_keys = list_bucket_storage_class(client, bucket_name)
        assert len(expire1_keys['STANDARD']) == 2
        assert len(expire1_keys[sc[1]]) == 2
        assert len(expire1_keys[sc[2]]) == 0

        # Wait for next expiration cycle
        time.sleep(7*lc_interval)
        expire1_keys = list_bucket_storage_class(client, bucket_name)
        assert len(expire1_keys['STANDARD']) == 2
        assert len(expire1_keys[sc[1]]) == 0

        if (retain_head_object != None and retain_head_object == "true"):
>           assert len(expire1_keys[sc[2]]) == 2
E           assert 0 == 2
E            +  where 0 = len([])

s3tests/functional/test_s3.py:10083: AssertionError


Related issues 1 (0 open — 1 closed)

Related to rgw - Bug #81433: FAILED s3tests/functional/test_s3.py::test_lifecycle_cloud_multiple_transitionResolvedSoumya Koduri

Actions

CB Updated by Casey Bodley 3 months ago Actions #1

  • Tags (freeform) set to cloud-transition

SK Updated by Soumya Koduri 3 months ago Actions #2

test passed on the same branch - https://pulpito-ng.ceph.com/runs/soumyakoduri-2026-08-26_11:34:54-rgw:cloud-transition-wip-79803-distro-default-trial.
So the issue may be intermittent and probably related to wait interval. Will adjust it and re-confirm after couple of runs.

SK Updated by Soumya Koduri 3 months ago Actions #3

  • Pull request ID set to 71372

SK Updated by Soumya Koduri 3 months ago Actions #4

  • Status changed from New to Fix Under Review

JI Updated by J. Eric Ivancich 3 months ago Actions #5

  • Status changed from Fix Under Review to Resolved

UB Updated by Upkeep Bot 3 months ago Actions #6

  • Merge Commit set to 8c05c6c1798120115cce23bc6d844ce99ffe4d63
  • Fixed In set to v21.3.0-2887-g8c05c6c179
  • Upkeep Timestamp set to 2026-09-03T14:07:48+00:00

CB Updated by Casey Bodley about 2 months ago Actions #7

  • Related to Bug #81433: FAILED s3tests/functional/test_s3.py::test_lifecycle_cloud_multiple_transition added
Actions

Also available in: PDF Atom