Project

General

Profile

Actions

Bug #58916

closed

dbstore: test_lifecycle_expiration_header_and_tags_head failure

Added by Casey Bodley about 1 year ago. Updated about 1 year ago.

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

0%

Source:
Tags:
dbstore lifecycle
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

http://qa-proxy.ceph.com/teuthology/cbodley-2023-03-03_13:50:55-rgw-wip-cbodley-testing-distro-default-smithi/7192297/teuthology.log
http://qa-proxy.ceph.com/teuthology/yuriw-2023-03-03_18:23:18-rgw-reef-distro-default-smithi/7193364/teuthology.log

2023-03-03T14:14:52.238 INFO:teuthology.orchestra.run.smithi042.stdout:=================================== FAILURES ===================================
2023-03-03T14:14:52.239 INFO:teuthology.orchestra.run.smithi042.stdout:________________ test_lifecycle_expiration_header_and_tags_head ________________
2023-03-03T14:14:52.239 INFO:teuthology.orchestra.run.smithi042.stdout:
2023-03-03T14:14:52.239 INFO:teuthology.orchestra.run.smithi042.stdout:    @pytest.mark.lifecycle
2023-03-03T14:14:52.239 INFO:teuthology.orchestra.run.smithi042.stdout:    @pytest.mark.lifecycle_expiration
2023-03-03T14:14:52.239 INFO:teuthology.orchestra.run.smithi042.stdout:    def test_lifecycle_expiration_header_and_tags_head():
2023-03-03T14:14:52.239 INFO:teuthology.orchestra.run.smithi042.stdout:        now = datetime.datetime.now(None)
2023-03-03T14:14:52.239 INFO:teuthology.orchestra.run.smithi042.stdout:        bucket_name = get_new_bucket()
2023-03-03T14:14:52.240 INFO:teuthology.orchestra.run.smithi042.stdout:        client = get_client()
2023-03-03T14:14:52.240 INFO:teuthology.orchestra.run.smithi042.stdout:        lifecycle={
2023-03-03T14:14:52.240 INFO:teuthology.orchestra.run.smithi042.stdout:            "Rules": [
2023-03-03T14:14:52.240 INFO:teuthology.orchestra.run.smithi042.stdout:            {
2023-03-03T14:14:52.240 INFO:teuthology.orchestra.run.smithi042.stdout:                "Filter": {
2023-03-03T14:14:52.240 INFO:teuthology.orchestra.run.smithi042.stdout:                    "And": {
2023-03-03T14:14:52.240 INFO:teuthology.orchestra.run.smithi042.stdout:                        "Tags": [
2023-03-03T14:14:52.240 INFO:teuthology.orchestra.run.smithi042.stdout:                            {
2023-03-03T14:14:52.241 INFO:teuthology.orchestra.run.smithi042.stdout:                                "Key": "key1",
2023-03-03T14:14:52.241 INFO:teuthology.orchestra.run.smithi042.stdout:                                "Value": "tag1" 
2023-03-03T14:14:52.241 INFO:teuthology.orchestra.run.smithi042.stdout:                            },
2023-03-03T14:14:52.241 INFO:teuthology.orchestra.run.smithi042.stdout:                            {
2023-03-03T14:14:52.241 INFO:teuthology.orchestra.run.smithi042.stdout:                                "Key": "key5",
2023-03-03T14:14:52.241 INFO:teuthology.orchestra.run.smithi042.stdout:                                "Value": "tag6" 
2023-03-03T14:14:52.241 INFO:teuthology.orchestra.run.smithi042.stdout:                            }
2023-03-03T14:14:52.242 INFO:teuthology.orchestra.run.smithi042.stdout:                        ]
2023-03-03T14:14:52.242 INFO:teuthology.orchestra.run.smithi042.stdout:                    }
2023-03-03T14:14:52.242 INFO:teuthology.orchestra.run.smithi042.stdout:                },
2023-03-03T14:14:52.242 INFO:teuthology.orchestra.run.smithi042.stdout:                "Status": "Enabled",
2023-03-03T14:14:52.242 INFO:teuthology.orchestra.run.smithi042.stdout:                "Expiration": {
2023-03-03T14:14:52.242 INFO:teuthology.orchestra.run.smithi042.stdout:                    "Days": 1
2023-03-03T14:14:52.242 INFO:teuthology.orchestra.run.smithi042.stdout:                },
2023-03-03T14:14:52.242 INFO:teuthology.orchestra.run.smithi042.stdout:                "ID": "rule1" 
2023-03-03T14:14:52.243 INFO:teuthology.orchestra.run.smithi042.stdout:                },
2023-03-03T14:14:52.243 INFO:teuthology.orchestra.run.smithi042.stdout:            ]
2023-03-03T14:14:52.243 INFO:teuthology.orchestra.run.smithi042.stdout:        }
2023-03-03T14:14:52.243 INFO:teuthology.orchestra.run.smithi042.stdout:        response = client.put_bucket_lifecycle_configuration(
2023-03-03T14:14:52.244 INFO:teuthology.orchestra.run.smithi042.stdout:            Bucket=bucket_name, LifecycleConfiguration=lifecycle)
2023-03-03T14:14:52.244 INFO:teuthology.orchestra.run.smithi042.stdout:        key1 = "obj_key1" 
2023-03-03T14:14:52.244 INFO:teuthology.orchestra.run.smithi042.stdout:        body1 = "obj_key1_body" 
2023-03-03T14:14:52.244 INFO:teuthology.orchestra.run.smithi042.stdout:        tags1={'TagSet': [{'Key': 'key1', 'Value': 'tag1'},
2023-03-03T14:14:52.244 INFO:teuthology.orchestra.run.smithi042.stdout:              {'Key': 'key5','Value': 'tag5'}]}
2023-03-03T14:14:52.244 INFO:teuthology.orchestra.run.smithi042.stdout:        response = client.put_object(Bucket=bucket_name, Key=key1, Body=body1)
2023-03-03T14:14:52.244 INFO:teuthology.orchestra.run.smithi042.stdout:        response = client.put_object_tagging(Bucket=bucket_name, Key=key1,Tagging=tags1)
2023-03-03T14:14:52.245 INFO:teuthology.orchestra.run.smithi042.stdout:
2023-03-03T14:14:52.245 INFO:teuthology.orchestra.run.smithi042.stdout:        # stat the object, check header
2023-03-03T14:14:52.245 INFO:teuthology.orchestra.run.smithi042.stdout:        response = client.head_object(Bucket=bucket_name, Key=key1)
2023-03-03T14:14:52.245 INFO:teuthology.orchestra.run.smithi042.stdout:        assert response['ResponseMetadata']['HTTPStatusCode'] == 200
2023-03-03T14:14:52.245 INFO:teuthology.orchestra.run.smithi042.stdout:>       assert check_lifecycle_expiration_header(response, datetime.datetime.now(None), 'rule1', 1)
2023-03-03T14:14:52.245 INFO:teuthology.orchestra.run.smithi042.stdout:E       assert False
2023-03-03T14:14:52.245 INFO:teuthology.orchestra.run.smithi042.stdout:E        +  where False = check_lifecycle_expiration_header({'AcceptRanges': 'bytes', 'ContentLength': 13, 'ContentType': 'binary/octet-stream', 'ETag': '"16420ea3cce6785e28147281232fcd05"', ...}, datetime.datetime(2023, 3, 3, 14, 14, 8, 727100), 'rule1', 1)
2023-03-03T14:14:52.246 INFO:teuthology.orchestra.run.smithi042.stdout:E        +    where datetime.datetime(2023, 3, 3, 14, 14, 8, 727100) = <built-in method now of type object at 0x7f140a855760>(None)
2023-03-03T14:14:52.246 INFO:teuthology.orchestra.run.smithi042.stdout:E        +      where <built-in method now of type object at 0x7f140a855760> = <class 'datetime.datetime'>.now
2023-03-03T14:14:52.246 INFO:teuthology.orchestra.run.smithi042.stdout:E        +        where <class 'datetime.datetime'> = datetime.datetime
2023-03-03T14:14:52.246 INFO:teuthology.orchestra.run.smithi042.stdout:
2023-03-03T14:14:52.246 INFO:teuthology.orchestra.run.smithi042.stdout:s3tests_boto3/functional/test_s3.py:8394: AssertionError

Related issues 1 (0 open1 closed)

Is duplicate of rgw - Bug #58551: failures in lifecycle testsResolvedSoumya Koduri

Actions
Actions #1

Updated by Casey Bodley about 1 year ago

  • Is duplicate of Bug #58551: failures in lifecycle tests added
Actions #2

Updated by Soumya Koduri about 1 year ago

This testcase was marked "fails_on_dbstore" (https://github.com/ceph/s3-tests/blob/ceph-quincy/s3tests_boto3/functional/test_s3.py#L9893) in ceph-quincy release, but probably got missed when pytest module changes were done. Will re-add the flag.

Actions #3

Updated by Soumya Koduri about 1 year ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Casey Bodley about 1 year ago

  • Status changed from Fix Under Review to Resolved
  • Backport deleted (reef)
Actions

Also available in: Atom PDF