Hi all,
Some useful information
>> >> >> What do the following return?
>> >> >> >> >> >> $ radosgw-admin zone get
root@ctrl1:~# radosgw-admin zone get
{
"id": "8bfdf8a3-c165-44e9-9ed6-deff8a5d852f",
"name": "default",
"domain_root": "default.rgw.meta:root",
"control_pool": "default.rgw.control",
"gc_pool": "default.rgw.log:gc",
"lc_pool": "default.rgw.log:lc",
"log_pool": "default.rgw.log",
"intent_log_pool": "default.rgw.log:intent",
"usage_log_pool": "default.rgw.log:usage",
"reshard_pool": "default.rgw.log:reshard",
"user_keys_pool": "default.rgw.meta:users.keys",
"user_email_pool": "default.rgw.meta:users.email",
"user_swift_pool": "default.rgw.meta:users.swift",
"user_uid_pool": "default.rgw.meta:users.uid",
"otp_pool": "default.rgw.otp",
"system_key": {
"access_key": "",
"secret_key": ""
},
"placement_pools": [
{
"key": "default-placement",
"val": {
"index_pool": "default.rgw.buckets.index",
"data_pool": "default.rgw.buckets.data",
"data_extra_pool": "default.rgw.buckets.non-ec",
"index_type": 0,
"compression": ""
}
}
],
"metadata_heap": "",
"realm_id": ""
}
>> >> >> radosgw-admin user info --uid="0611e8fdb62b4b2892b62c7e7bf3767f$0611e8fdb62b4b2892b62c7e7bf3767f" --debug-ms=1 --debug-rgw=20 --debug-objecter=20 --log-to-stderr
https://etherpad.openstack.org/p/loPctEQWFU
>> >> >> >> >> >> $ rados lspools
root@ctrl1:~# rados lspools
cinder-volumes-sas
ephemeral-volumes
.rgw.root
rgw1
defaults.rgw.buckets.data
default.rgw.control
default.rgw.meta
defaults.rgw.buckets.index
default.rgw.log
cinder-volumes-nvme
default.rgw.buckets.index
images
default.rgw.buckets.data
Best Regards / Kind Regards
Dilip Renkila
Den ons 26 dec. 2018 kl 22:29 skrev Dilip Renkila <dilip.renkila@xxxxxxxxxx>:
Hi all,I have a ceph radosgw deployment as openstack swift backend with multitenancy enabled in rgw.I can create containers and store data through swift api.I am trying to retrieve user data from radosgw-admin cli tool for an user. I am able to get only admin user info but no one else.$ radosgw-admin user info --uid="0611e8fdb62b4b2892b62c7e7bf3767f$0611e8fdb62b4b2892b62c7e7bf3767f"could not fetch user info: no user info saved$ radosgw-admin user list["0611e8fdb62b4b2892b62c7e7bf3767f$0611e8fdb62b4b2892b62c7e7bf3767f","32a7cd9b37bb40168200bae69015311a$32a7cd9b37bb40168200bae69015311a","2eea218eea984dd68f1378ea21c64b83$2eea218eea984dd68f1378ea21c64b83","admin","032f07e376404586b53bb8c3bfd6d1d7$032f07e376404586b53bb8c3bfd6d1d7","afcf7fc3fd5844ea920c2028ebfa5832$afcf7fc3fd5844ea920c2028ebfa5832","5793054cd0fe4a018e959eb9081442a8$5793054cd0fe4a018e959eb9081442a8","d4f6c1bd190d40feb8379625bcf2bc39$d4f6c1bd190d40feb8379625bcf2bc39","8f411343b44143d2b116563c177ed93d$8f411343b44143d2b116563c177ed93d","0a49f61d66644fb2a10d664d5b79b1af$0a49f61d66644fb2a10d664d5b79b1af","a1dd449c9ce64345af2a7fb05c4aa21f$a1dd449c9ce64345af2a7fb05c4aa21f","a5442064c50a4b9bbf854d15748f99d4$a5442064c50a4b9bbf854d15748f99d4"]Debug output$ radosgw-admin user info --uid="0611e8fdb62b4b2892b62c7e7bf3767f$0611e8fdb62b4b2892b62c7e7bf3767f" --debug_rgw=20 --log-to-stderr2018-12-26 22:25:10.722 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bfe20 obj=.rgw.root:default.realm state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.722 7fbc24ff9700 2 RGWDataChangesLog::ChangesRenewThread: start2018-12-26 22:25:10.726 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bf3d0 obj=.rgw.root:converted state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.730 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bee50 obj=.rgw.root:default.realm state=0x5571718e35a0 s->prefetch_data=02018-12-26 22:25:10.730 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bef40 obj=.rgw.root:zonegroups_names.default state=0x5571718e35a0 s->prefetch_data=02018-12-26 22:25:10.730 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.730 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.730 7fbc4999e740 20 rados->read r=0 bl.length=462018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate: got zonegroup_info.b7493bbe-a638-4950-a4d5-716919e5d1502018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate: got zonegroup_info.23e74943-f594-44cb-a3bb-3a2150804dd32018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate: got zone_info.9be46480-91cb-437b-87e1-eb6eff8627672018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate: got zone_info.8bfdf8a3-c165-44e9-9ed6-deff8a5d852f2018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate: got zone_names.default2018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate: got zonegroups_names.default2018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45befa0 obj=.rgw.root:zone_names.default state=0x5571718e35a0 s->prefetch_data=02018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.742 7fbc4999e740 20 rados->read r=0 bl.length=462018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45befa0 obj=.rgw.root:zone_info.8bfdf8a3-c165-44e9-9ed6-deff8a5d852f state=0x5571718e35a0 s->prefetch_data=02018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.742 7fbc4999e740 20 rados->read r=0 bl.length=7362018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45befa0 obj=.rgw.root:zonegroups_names.default state=0x5571718e35a0 s->prefetch_data=02018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.742 7fbc4999e740 20 rados->read r=0 bl.length=462018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45befa0 obj=.rgw.root:zonegroup_info.23e74943-f594-44cb-a3bb-3a2150804dd3 state=0x5571718e35a0 s->prefetch_data=02018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.746 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.746 7fbc4999e740 20 rados->read r=0 bl.length=3372018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bff10 obj=.rgw.root:region_map state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.746 7fbc4999e740 10 cannot find current period zonegroup using local zonegroup2018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bfc60 obj=.rgw.root:default.realm state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bfd50 obj=.rgw.root:zonegroups_names.default state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.746 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.750 7fbc4999e740 20 rados->read r=0 bl.length=462018-12-26 22:25:10.750 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bfe20 obj=.rgw.root:zonegroup_info.23e74943-f594-44cb-a3bb-3a2150804dd3 state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.750 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.750 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.750 7fbc4999e740 20 rados->read r=0 bl.length=3372018-12-26 22:25:10.750 7fbc4999e740 20 zonegroup default2018-12-26 22:25:10.750 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bff10 obj=.rgw.root:period_config.default state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.750 7fbc4999e740 10 Cannot find current period zone using local zone2018-12-26 22:25:10.750 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bfce0 obj=.rgw.root:default.realm state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.750 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bfdd0 obj=.rgw.root:zone_names.default state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.754 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.754 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.754 7fbc4999e740 20 rados->read r=0 bl.length=462018-12-26 22:25:10.754 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bfea0 obj=.rgw.root:zone_info.8bfdf8a3-c165-44e9-9ed6-deff8a5d852f state=0x5571718d9000 s->prefetch_data=02018-12-26 22:25:10.754 7fbc4999e740 20 get_system_obj_state: s->obj_tag was set empty2018-12-26 22:25:10.754 7fbc4999e740 20 rados->read ofs=0 len=5242882018-12-26 22:25:10.754 7fbc4999e740 20 rados->read r=0 bl.length=7362018-12-26 22:25:10.754 7fbc4999e740 20 zone default2018-12-26 22:25:10.758 7fbc06fdd700 20 reqs_thread_entry: start2018-12-26 22:25:10.758 7fbc04fd9700 20 reqs_thread_entry: start2018-12-26 22:25:10.758 7fbc4999e740 20 init_complete bucket index max shards: 162018-12-26 22:25:10.758 7fbbeeffd700 20 reqs_thread_entry: start2018-12-26 22:25:10.758 7fbc4999e740 20 get_system_obj_state: rctx=0x7ffcd45bfd70 obj=default.rgw.meta:users.uid:0611e8fdb62b4b2892b62c7e7bf3767f-bash611e8fdb62b4b2892b62c7e7bf3767f state=0x5571718e35a0 s->prefetch_data=0could not fetch user info: no user info savedfinally ceph.conf file[client.rgw.ctrl1]host = ctrl1keyring = /var/lib/ceph/radosgw/ceph-rgw.ctrl1/keyringlog file = /var/log/ceph/ceph-rgw-ctrl1.logrgw frontends = civetweb port=10.70.1.1:8080 num_threads=100debug_rgw=20[client.rgw.ctrl2]host = ctrl2keyring = /var/lib/ceph/radosgw/ceph-rgw.ctrl2/keyringlog file = /var/log/ceph/ceph-rgw-ctrl2.logrgw frontends = civetweb port=10.70.1.2:8080 num_threads=100[client.rgw.ctrl3]host = ctrl3keyring = /var/lib/ceph/radosgw/ceph-rgw.ctrl3/keyringlog file = /var/log/ceph/ceph-rgw-ctrl3.logrgw frontends = civetweb port=10.70.1.3:8080 num_threads=100# Please do not change this file directly since it is managed by Ansible and will be overwritten[global]cluster network = 10.60.0.0/22fsid = 6cb9b9ca-7cdd-4200-a311-5b132ddc89f7mon host = 10.70.1.1,10.70.1.2,10.70.1.3mon initial members = ctrl1,ctrl2,ctrl3public network = 10.70.0.0/22rgw bucket default quota max objects = 1638400rgw override bucket index max shards = 16mon_max_pg_per_osd = 500# Keystone informationrgw_keystone_url = <url>rgw keystone api version = 3rgw_keystone_admin_user = <username>rgw_keystone_admin_password = <passoerd>rgw_keystone_admin_domain = defaultrgw_keystone_admin_project = servicergw_keystone_accepted_roles = admin,user,project-admin,cloud-adminrgw_keystone_token_cache_size = 0rgw_keystone_revocation_interval = 0rgw_keystone_make_new_tenants = truergw_keystone_implicit_tenants = truergw_swift_account_in_url = truergw_s3_auth_use_keystone = truergw_keystone_verify_ssl = falsemon_pg_warn_max_object_skew = 1000rgw enable usage log = truergw usage log tick interval = 30rgw usage log flush threshold = 1024rgw usage max shards = 32rgw usage max user shards = 1[mon]mgr initial modules = dashboard, prometheus[osd]bluestore_block_db_size = 20000000000I think this is strange. Why doesn't rgw store user info ?Best Regards / Kind RegardsDilip RenkilaLinux / Unix SysAdmin
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com