Description of problem:
Enable lifecycle on a bucket and set the number of days to 0, which expires objects immediately. It returned XML error instead of deleting objects.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Set up a ceph 3.0 cluster.
2.Enable lifecycle on a bucket.
3.Set expiration for objects to 0 day(s).
4.Objects will get deleted immediately.
[root@magna118 ~]# python tc11198.py
Traceback (most recent call last):
File "tc11198.py", line 38, in <module>
File "/usr/lib/python2.7/site-packages/boto-2.48.0-py2.7.egg/boto/s3/bucket.py", line 1366, in configure_lifecycle
response.status, response.reason, body)
boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>redhat</BucketName><RequestId>tx0000000000000000001f7-0059bb820b-1077-default</RequestId><HostId>1077-default-default</HostId></Error>
Objects will expire immediately.
Test case: CEPH 11198 Specify the number of days in lifecycle rule to 0
Created attachment 1328402 [details]
Test case which sets expiration of 0 day
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.