rgw is not accepting ACL edits via python-swiftclient on Red Hat Ceph Storage 2.0

Solution Verified - Updated -

Issue

  • After a container creation ACL settings cannot be modified on the container:
# swift post rhtest01
# swift post rhtest01 -r ".r:*"
# swift stat rhtest01
                      Account: v1
                    Container: rhtest01
                      Objects: 0
                        Bytes: 0
                     Read ACL:
                    Write ACL:
                      Sync To:
                     Sync Key:
                Accept-Ranges: bytes
             X-Storage-Policy: default-placement
X-Container-Bytes-Used-Actual: 0
                   Connection: Keep-Alive
                  X-Timestamp: 0.00000
                   X-Trans-Id: tx000000000000000000056-0058345db7-507a9-default
                 Content-Type: text/plain; charset=utf-8

[root@mi-foo-bs2017 neutron-n-2 ~(openstack_exampleuser)]# swift post rhtest02 -r ".r:*"

[root@mi-foo-bs2017 neutron-n-2 ~(openstack_exampleuser)]# swift stat rhtest02
                      Account: v1
                    Container: rhtest02
                      Objects: 0
                        Bytes: 0
                     Read ACL: .r:*
                    Write ACL:
                      Sync To:
                     Sync Key:
                Accept-Ranges: bytes
                   X-Trans-Id: tx000000000000000000058-0058345dc2-507a9-default
             X-Storage-Policy: default-placement
X-Container-Bytes-Used-Actual: 0
                   Connection: Keep-Alive
                  X-Timestamp: 0.00000
                 Content-Type: text/plain; charset=utf-8
[root@mi-foo-bs2017 neutron-n-2 ~(openstack_exampleuser)]# swift post rhtest02 -r ""
[root@mi-foo-bs2017 neutron-n-2 ~(openstack_exampleuser)]# swift stat rhtest02
                      Account: v1
                    Container: rhtest02
                      Objects: 0
                        Bytes: 0
                     Read ACL: .r:*
                    Write ACL:
                      Sync To:
                     Sync Key:
                Accept-Ranges: bytes
                   X-Trans-Id: tx000000000000000000059-0058345dca-507a9-default
             X-Storage-Policy: default-placement
X-Container-Bytes-Used-Actual: 0
                   Connection: Keep-Alive
                  X-Timestamp: 0.00000
                 Content-Type: text/plain; charset=utf-8

Environment

  • Red Hat Ceph Storage 2.0
  • OpenStack Swift
  • RadosGW

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content