mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
lifecycle: Adjust lc wait time
Adjust wait time to fix spurious failures reported - https://github.com/ceph/ceph/pull/40703#issuecomment-1060811704 http://qa-proxy.ceph.com/teuthology/mbenjamin-2022-02-23_15:42:19-rgw-wip-rgwlc-noreset-distro-basic-smithi/6703349/teuthology.log Signed-off-by: Soumya Koduri <skoduri@redhat.com>
This commit is contained in:
parent
e60dda8e1d
commit
2aa4a22c5a
1 changed files with 4 additions and 4 deletions
|
@ -10082,7 +10082,7 @@ def test_lifecycle_transition_single_rule_multi_trans():
|
||||||
bucket_name = _create_objects(keys=['expire1/foo', 'expire1/bar', 'keep2/foo',
|
bucket_name = _create_objects(keys=['expire1/foo', 'expire1/bar', 'keep2/foo',
|
||||||
'keep2/bar', 'expire3/foo', 'expire3/bar'])
|
'keep2/bar', 'expire3/foo', 'expire3/bar'])
|
||||||
client = get_client()
|
client = get_client()
|
||||||
rules=[{'ID': 'rule1', 'Transitions': [{'Days': 1, 'StorageClass': sc[1]}, {'Days': 6, 'StorageClass': sc[2]}], 'Prefix': 'expire1/', 'Status': 'Enabled'}]
|
rules=[{'ID': 'rule1', 'Transitions': [{'Days': 1, 'StorageClass': sc[1]}, {'Days': 7, 'StorageClass': sc[2]}], 'Prefix': 'expire1/', 'Status': 'Enabled'}]
|
||||||
lifecycle = {'Rules': rules}
|
lifecycle = {'Rules': rules}
|
||||||
client.put_bucket_lifecycle_configuration(Bucket=bucket_name, LifecycleConfiguration=lifecycle)
|
client.put_bucket_lifecycle_configuration(Bucket=bucket_name, LifecycleConfiguration=lifecycle)
|
||||||
|
|
||||||
|
@ -10094,7 +10094,7 @@ def test_lifecycle_transition_single_rule_multi_trans():
|
||||||
lc_interval = get_lc_debug_interval()
|
lc_interval = get_lc_debug_interval()
|
||||||
|
|
||||||
# Wait for first expiration (plus fudge to handle the timer window)
|
# Wait for first expiration (plus fudge to handle the timer window)
|
||||||
time.sleep(4*lc_interval)
|
time.sleep(5*lc_interval)
|
||||||
expire1_keys = list_bucket_storage_class(client, bucket_name)
|
expire1_keys = list_bucket_storage_class(client, bucket_name)
|
||||||
eq(len(expire1_keys['STANDARD']), 4)
|
eq(len(expire1_keys['STANDARD']), 4)
|
||||||
eq(len(expire1_keys[sc[1]]), 2)
|
eq(len(expire1_keys[sc[1]]), 2)
|
||||||
|
@ -10108,7 +10108,7 @@ def test_lifecycle_transition_single_rule_multi_trans():
|
||||||
eq(len(keep2_keys[sc[2]]), 0)
|
eq(len(keep2_keys[sc[2]]), 0)
|
||||||
|
|
||||||
# Wait for final expiration cycle
|
# Wait for final expiration cycle
|
||||||
time.sleep(5*lc_interval)
|
time.sleep(6*lc_interval)
|
||||||
expire3_keys = list_bucket_storage_class(client, bucket_name)
|
expire3_keys = list_bucket_storage_class(client, bucket_name)
|
||||||
eq(len(expire3_keys['STANDARD']), 4)
|
eq(len(expire3_keys['STANDARD']), 4)
|
||||||
eq(len(expire3_keys[sc[1]]), 0)
|
eq(len(expire3_keys[sc[1]]), 0)
|
||||||
|
@ -10212,7 +10212,7 @@ def test_lifecycle_noncur_transition():
|
||||||
eq(len(expire1_keys[sc[1]]), 0)
|
eq(len(expire1_keys[sc[1]]), 0)
|
||||||
eq(len(expire1_keys[sc[2]]), 4)
|
eq(len(expire1_keys[sc[2]]), 4)
|
||||||
|
|
||||||
time.sleep(4*lc_interval)
|
time.sleep(6*lc_interval)
|
||||||
expire1_keys = list_bucket_storage_class(client, bucket)
|
expire1_keys = list_bucket_storage_class(client, bucket)
|
||||||
eq(len(expire1_keys['STANDARD']), 2)
|
eq(len(expire1_keys['STANDARD']), 2)
|
||||||
eq(len(expire1_keys[sc[1]]), 0)
|
eq(len(expire1_keys[sc[1]]), 0)
|
||||||
|
|
Loading…
Reference in a new issue