Add ResellerAdmin role for ceph-rgw

ResellerAdmin role is used to give users object storage administration role
in their projects.

It is required to pass object storage quotas tests[1] of DefCore (OpenStack
Powered) certification test suite.

[1] tempest.api.object_storage.test_account_quotas*
Related-Bug: #1700729

Change-Id: Id976827aa7da271e54b77476f175f06bd1a00cc8
This commit is contained in:
Xinliang Liu 2018-08-08 13:46:02 +08:00
parent 8247b6f3e4
commit 943e41d2cb
2 changed files with 11 additions and 0 deletions

View File

@ -30,3 +30,13 @@
auth: "{{ openstack_ceph_rgw_auth }}"
endpoint_type: "{{ openstack_interface }}"
run_once: True
- name: Creating the ResellerAdmin role
kolla_toolbox:
module_name: "os_keystone_role"
module_args:
name: "ResellerAdmin"
region_name: "{{ openstack_region_name }}"
auth: "{{ openstack_ceph_rgw_auth }}"
endpoint_type: "{{ openstack_interface }}"
run_once: True

View File

@ -40,6 +40,7 @@ rgw_keystone_admin_project = service
rgw_keystone_admin_domain = default
rgw_keystone_api_version = 3
rgw_keystone_accepted_roles = admin, {{ keystone_default_user_role }}
rgw_keystone_accepted_admin_roles = ResellerAdmin
rgw_swift_versioning_enabled = true
{% endif %}
keyring = /etc/ceph/ceph.client.radosgw.keyring