Modified to work with the new asynchronous buckt logging commit
mechanism.
Fixes: https://tracker.ceph.com/issues/71365
Signed-off-by: Nithya Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit
ec113ccbca1dcb3c34fce4f47e9ec26b58d30259)
time.sleep(roll_time/2)
client.put_object(Bucket=src_bucket_name, Key='myobject', Body=randcontent())
+ # It can take up to 10s for the bucket logging manager to detect a new commit list
+ time.sleep(11)
response = client.list_objects_v2(Bucket=log_bucket_name)
keys = _get_keys(response)
assert len(keys) == 1
time.sleep(roll_time)
client.put_object(Bucket=src_bucket_name, Key='myobject', Body=randcontent())
-
+ time.sleep(5)
response = client.list_objects_v2(Bucket=log_bucket_name)
keys = _get_keys(response)
assert len(keys) > 1