On 12/26/18 4:58 PM, Dilip Renkila wrote:
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.renk...@linserv.se <mailto:dilip.renk...@linserv.se>>:

    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"
    ]


The general format of these objects names is 'tenant$uid', so you may need to specify them separately ie. radosgw-admin user info --tenant= --uid=



    Debug output
    $ radosgw-admin user info
    --uid="0611e8fdb62b4b2892b62c7e7bf3767f$0611e8fdb62b4b2892b62c7e7bf3767f"
    --debug_rgw=20 --log-to-stderr
    2018-12-26 22:25:10.722 7fbc4999e740 20 get_system_obj_state:
    rctx=0x7ffcd45bfe20 obj=.rgw.root:default.realm
    state=0x5571718d9000 s->prefetch_data=0
    2018-12-26 22:25:10.722 7fbc24ff9700  2
    RGWDataChangesLog::ChangesRenewThread: start
    2018-12-26 22:25:10.726 7fbc4999e740 20 get_system_obj_state:
    rctx=0x7ffcd45bf3d0 obj=.rgw.root:converted state=0x5571718d9000
    s->prefetch_data=0
    2018-12-26 22:25:10.730 7fbc4999e740 20 get_system_obj_state:
    rctx=0x7ffcd45bee50 obj=.rgw.root:default.realm
    state=0x5571718e35a0 s->prefetch_data=0
    2018-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=0
    2018-12-26 22:25:10.730 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.730 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.730 7fbc4999e740 20 rados->read r=0 bl.length=46
    2018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate:
    got zonegroup_info.b7493bbe-a638-4950-a4d5-716919e5d150
    2018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate:
    got zonegroup_info.23e74943-f594-44cb-a3bb-3a2150804dd3
    2018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate:
    got zone_info.9be46480-91cb-437b-87e1-eb6eff862767
    2018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate:
    got zone_info.8bfdf8a3-c165-44e9-9ed6-deff8a5d852f
    2018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate:
    got zone_names.default
    2018-12-26 22:25:10.742 7fbc4999e740 20 RGWRados::pool_iterate:
    got zonegroups_names.default
    2018-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=0
    2018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read r=0 bl.length=46
    2018-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=0
    2018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read r=0 bl.length=736
    2018-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=0
    2018-12-26 22:25:10.742 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.742 7fbc4999e740 20 rados->read r=0 bl.length=46
    2018-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=0
    2018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.746 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.746 7fbc4999e740 20 rados->read r=0 bl.length=337
    2018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state:
    rctx=0x7ffcd45bff10 obj=.rgw.root:region_map state=0x5571718d9000
    s->prefetch_data=0
    2018-12-26 22:25:10.746 7fbc4999e740 10  cannot find current
    period zonegroup using local zonegroup
    2018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state:
    rctx=0x7ffcd45bfc60 obj=.rgw.root:default.realm
    state=0x5571718d9000 s->prefetch_data=0
    2018-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=0
    2018-12-26 22:25:10.746 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.746 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.750 7fbc4999e740 20 rados->read r=0 bl.length=46
    2018-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=0
    2018-12-26 22:25:10.750 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.750 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.750 7fbc4999e740 20 rados->read r=0 bl.length=337
    2018-12-26 22:25:10.750 7fbc4999e740 20 zonegroup default
    2018-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=0
    2018-12-26 22:25:10.750 7fbc4999e740 10 Cannot find current period
    zone using local zone
    2018-12-26 22:25:10.750 7fbc4999e740 20 get_system_obj_state:
    rctx=0x7ffcd45bfce0 obj=.rgw.root:default.realm
    state=0x5571718d9000 s->prefetch_data=0
    2018-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=0
    2018-12-26 22:25:10.754 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.754 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.754 7fbc4999e740 20 rados->read r=0 bl.length=46
    2018-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=0
    2018-12-26 22:25:10.754 7fbc4999e740 20 get_system_obj_state:
    s->obj_tag was set empty
    2018-12-26 22:25:10.754 7fbc4999e740 20 rados->read ofs=0 len=524288
    2018-12-26 22:25:10.754 7fbc4999e740 20 rados->read r=0 bl.length=736
    2018-12-26 22:25:10.754 7fbc4999e740 20 zone default
    2018-12-26 22:25:10.758 7fbc06fdd700 20 reqs_thread_entry: start
    2018-12-26 22:25:10.758 7fbc04fd9700 20 reqs_thread_entry: start
    2018-12-26 22:25:10.758 7fbc4999e740 20 init_complete bucket index
    max shards: 16
    2018-12-26 22:25:10.758 7fbbeeffd700 20 reqs_thread_entry: start
    2018-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=0
    could not fetch user info: no user info saved

    finally ceph.conf file

    [client.rgw.ctrl1]
    host = ctrl1
    keyring = /var/lib/ceph/radosgw/ceph-rgw.ctrl1/keyring
    log file = /var/log/ceph/ceph-rgw-ctrl1.log
    rgw frontends = civetweb port=10.70.1.1:8080
    <http://10.70.1.1:8080> num_threads=100
    debug_rgw=20

    [client.rgw.ctrl2]
    host = ctrl2
    keyring = /var/lib/ceph/radosgw/ceph-rgw.ctrl2/keyring
    log file = /var/log/ceph/ceph-rgw-ctrl2.log
    rgw frontends = civetweb port=10.70.1.2:8080
    <http://10.70.1.2:8080> num_threads=100

    [client.rgw.ctrl3]
    host = ctrl3
    keyring = /var/lib/ceph/radosgw/ceph-rgw.ctrl3/keyring
    log file = /var/log/ceph/ceph-rgw-ctrl3.log
    rgw frontends = civetweb port=10.70.1.3:8080
    <http://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/22 <http://10.60.0.0/22>
    fsid = 6cb9b9ca-7cdd-4200-a311-5b132ddc89f7
    mon host = 10.70.1.1,10.70.1.2,10.70.1.3
    mon initial members = ctrl1,ctrl2,ctrl3
    public network = 10.70.0.0/22 <http://10.70.0.0/22>
    rgw bucket default quota max objects = 1638400
    rgw override bucket index max shards = 16
    mon_max_pg_per_osd = 500
    # Keystone information
    rgw_keystone_url = <url>
    rgw keystone api version = 3
    rgw_keystone_admin_user = <username>
    rgw_keystone_admin_password = <passoerd>
    rgw_keystone_admin_domain = default
    rgw_keystone_admin_project = service

    rgw_keystone_accepted_roles = admin,user,project-admin,cloud-admin
    rgw_keystone_token_cache_size = 0
    rgw_keystone_revocation_interval = 0
    rgw_keystone_make_new_tenants = true
    rgw_keystone_implicit_tenants = true
    rgw_swift_account_in_url = true
    rgw_s3_auth_use_keystone = true
    rgw_keystone_verify_ssl = false
    mon_pg_warn_max_object_skew = 1000


    rgw enable usage log = true
    rgw usage log tick interval = 30
    rgw usage log flush threshold = 1024
    rgw usage max shards = 32
    rgw usage max user shards = 1


    [mon]
    mgr initial modules = dashboard, prometheus

    [osd]
    bluestore_block_db_size = 20000000000


    I think this is strange. Why doesn't rgw store user info ?


    Best Regards / Kind Regards

    Dilip Renkila
    Linux / Unix SysAdmin


_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to