Bug 1779158

Summary: [RGW]: Put object ACL fails due to missing content length
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tejas <tchandra>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3CC: cbodley, ceph-eng-bugs, kbader, mbenjamin, sweil, tserlin
Target Milestone: z2   
Target Release: 3.3   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.12-84.el7cp Ubuntu: ceph_12.2.12-77redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-19 17:58:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tejas 2019-12-03 12:34:35 UTC
Description of problem:
   
# ceph -v
ceph version 12.2.12-83.el7cp (4b34b893d114fdf8fcbf17368a3702cbfcf668d6) luminous (stable)

]# aws s3api put-object-acl --endpoint http://magna068:8080 --bucket test1 --key file1 --acl public-read

An error occurred (MissingContentLength) when calling the PutObjectAcl operation: Unknown

This appears to be a regression as this error is not seen on teuthology runs on build 12.2.12-82.el7cp
Could this be a regression to the fix in https://bugzilla.redhat.com/show_bug.cgi?id=1775588 ?

Observed the same issue on teuthology runs on the latest ceph version 12.2.12-83.el7cp:

2019-12-03 07:30:45,552.552 INFO:teuthology.orchestra.run.extensa030.stderr:GOT UNWANTED ERROR MissingContentLength
2019-12-03 07:30:45,552.552 INFO:teuthology.orchestra.run.extensa030.stderr:Traceback (most recent call last):
2019-12-03 07:30:45,552.552 INFO:teuthology.orchestra.run.extensa030.stderr:  File "/home/ubuntu/cephtest/s3-tests/virtualenv/bin/s3tests-test-readwrite", line 11, in <module>
2019-12-03 07:30:45,553.553 INFO:teuthology.orchestra.run.extensa030.stderr:    load_entry_point('s3tests', 'console_scripts', 's3tests-test-readwrite')()
2019-12-03 07:30:45,553.553 INFO:teuthology.orchestra.run.extensa030.stderr:  File "/home/ubuntu/cephtest/s3-tests/s3tests/readwrite.py", line 265, in main
2019-12-03 07:30:45,553.553 INFO:teuthology.orchestra.run.extensa030.stderr:    common.nuke_bucket(bucket)
2019-12-03 07:30:45,553.553 INFO:teuthology.orchestra.run.extensa030.stderr:  File "/home/ubuntu/cephtest/s3-tests/s3tests/common.py", line 47, in nuke_bucket
2019-12-03 07:30:45,553.553 INFO:teuthology.orchestra.run.extensa030.stderr:    bucket.set_canned_acl('private')
2019-12-03 07:30:45,553.553 INFO:teuthology.orchestra.run.extensa030.stderr:  File "/home/ubuntu/cephtest/s3-tests/virtualenv/lib/python2.7/site-packages/boto/s3/bucket.py", line 909, in set_canned_acl

Comment 9 errata-xmlrpc 2019-12-19 17:58:49 UTC
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.

https://access.redhat.com/errata/RHSA-2019:4353