Bug #24532
open
rgw user max buckets not working
Added by hoan nv almost 6 years ago.
Updated almost 6 years ago.
Description
Hi all.
Currently, i want to set default max-bucket per user.
I see this config in radosgw.
rgw user max buckets = 10
It not working. I create a new user and max-bucket of this user is 1000.
Thanks
Maybe you should restart the radosgw. It works in my environment.
I restarted my radosgw admin.
I tested with rados gateway admin api, all config is working.
rgw_user_max_buckets=10
rgw bucket default quota max objects = 50
rgw bucket default quota max size = 1024000000
rgw user default quota max objects = 1000
rgw user default quota max size = 51200000
create user by :
admin api : work
radosgw-admin command : not work
sync user from keystone : not work
I used this config for ceph radosgw integrate with openstack keystone
rgw keystone api version = 3
rgw keystone url = http://10.5.8.124:5000
rgw keystone admin user = admin
rgw keystone admin password = admin
rgw keystone admin domain = default
rgw keystone admin project = admin
rgw_keystone_verify_ssl = false
rgw_keystone_accepted_roles = admin,_member_,user
rgw_keystone_token_cache_size = 10
rgw_keystone_revocation_interval = 300
rgw s3 auth use keystone = true
rgw_keystone_make_new_tenants = true
Thanks.
We have seen the same problem with:
rgw user default quota max size
rgw user default quota max objects
not being applied for users sync from Keystone.
I also see problems with "rgw user default quota max size" for OpenStack users. See: https://tracker.ceph.com/issues/24595
But it works for me for users created with "radosgw-admin command"
Where (which section) did you put the "rgw user max buckets" definition ?
@Massimo Sgaravatto
I put "rgw user max buckets" setting in radosgw section
[client.rgw.hoannv-ceph-luminous-zone-2-ceph-proxy]
host = hoannv-ceph-luminous-zone-2-rados-1
@hoannv hoannv
As far as I remember I had the same issue having that attribute in the radosgw section
Moving that attribute in the global section helped for the radosgw-admin command (but not for Openstack users)
I put my config to global section and it work. Great.
But i need openstack user which sync from keystone is applied this default quota.
What can i do?
Thanks
- Related to Bug #24595: rgw: default quota not set in radosgw for Openstack users added
Experiencing the same behavior with LDAP auth.
- Assignee set to Abhishek Lekshmanan
Also available in: Atom
PDF