Re: [ceph-users] radosgw-admin doesn't list user anymore
Hi Derek, Sorry, I added the caps, but didn't restarted the radosgw process. After a restart it works :) Cheers, Valery On 16/10/13 17:20 , Derek Yarnell wrote: On 10/16/13 4:26 AM, Valery Tschopp wrote: Hi Derek, Thanks for your example. I've added caps='metadata=*', but I still have an error and get: send: 'GET /admin/metadata/user?format=json HTTP/1.1\r\nHost: objects.bcc.switch.ch\r\nAccept-Encoding: identity\r\nDate: Wed, 16 Oct 2013 08:09:57 GMT\r\nContent-Length: 0\r\nAuthorization: AWS VC***o=\r\nUser-Agent: Boto/2.12.0 Python/2.7.5 Darwin/12.5.0\r\n\r\n' reply: 'HTTP/1.1 405 Method Not Allowed\r\n' In which version of radosgw is the /admin/metadata REST endpoint available? I currently have 0.67.4. We are using this on ceph-0.67.4. Do you have your gateways logging? -- SWITCH -- Valery Tschopp, Software Engineer, Peta Solutions Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland email: valery.tsch...@switch.ch phone: +41 44 268 1544 smime.p7s Description: S/MIME Cryptographic Signature ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] radosgw-admin doesn't list user anymore
On 10/16/13 4:26 AM, Valery Tschopp wrote: > Hi Derek, > > Thanks for your example. > > I've added caps='metadata=*', but I still have an error and get: > > send: 'GET /admin/metadata/user?format=json HTTP/1.1\r\nHost: > objects.bcc.switch.ch\r\nAccept-Encoding: identity\r\nDate: Wed, 16 Oct > 2013 08:09:57 GMT\r\nContent-Length: 0\r\nAuthorization: AWS > VC***o=\r\nUser-Agent: Boto/2.12.0 Python/2.7.5 > Darwin/12.5.0\r\n\r\n' > reply: 'HTTP/1.1 405 Method Not Allowed\r\n' > > > In which version of radosgw is the /admin/metadata REST endpoint > available? I currently have 0.67.4. We are using this on ceph-0.67.4. Do you have your gateways logging? -- --- Derek T. Yarnell University of Maryland Institute for Advanced Computer Studies ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] radosgw-admin doesn't list user anymore
Hi Derek, Thanks for your example. I've added caps='metadata=*', but I still have an error and get: send: 'GET /admin/metadata/user?format=json HTTP/1.1\r\nHost: objects.bcc.switch.ch\r\nAccept-Encoding: identity\r\nDate: Wed, 16 Oct 2013 08:09:57 GMT\r\nContent-Length: 0\r\nAuthorization: AWS VC***o=\r\nUser-Agent: Boto/2.12.0 Python/2.7.5 Darwin/12.5.0\r\n\r\n' reply: 'HTTP/1.1 405 Method Not Allowed\r\n' In which version of radosgw is the /admin/metadata REST endpoint available? I currently have 0.67.4. Cheers, Valery On 15/10/13 22:00 , Derek Yarnell wrote: On 10/15/13 12:00 PM, Valery Tschopp wrote: Hi Derek, Thanks. Is the 'radosgw-admin metadata list user' also available as REST API? Hi Valery, Yes, it is. Not well documented I believe right now. I have this tested and working in my python bindings[1] for the radosgw (get_users). You will need at least --caps='metadata=read' (might need *). /{admin}/metadata/user?format=json [1] - https://github.com/dyarnell/rgwadmin Thanks, derek -- SWITCH -- Valery Tschopp, Software Engineer, Peta Solutions Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland email: valery.tsch...@switch.ch phone: +41 44 268 1544 smime.p7s Description: S/MIME Cryptographic Signature ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] radosgw-admin doesn't list user anymore
On 10/15/13 12:00 PM, Valery Tschopp wrote: > Hi Derek, > > Thanks. Is the 'radosgw-admin metadata list user' also available as REST > API? Hi Valery, Yes, it is. Not well documented I believe right now. I have this tested and working in my python bindings[1] for the radosgw (get_users). You will need at least --caps='metadata=read' (might need *). /{admin}/metadata/user?format=json [1] - https://github.com/dyarnell/rgwadmin Thanks, derek -- --- Derek T. Yarnell University of Maryland Institute for Advanced Computer Studies ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] radosgw-admin doesn't list user anymore
Hi Derek, Thanks. Is the 'radosgw-admin metadata list user' also available as REST API? Cheers, Valery On 15/10/13 03:21 , Derek Yarnell wrote: root@ineri:~# radosgw-admin user info could not fetch user info: no user info saved Hi Valery, You need to use radosgw-admin metadata list user Thanks, derek -- SWITCH -- Valery Tschopp, Software Engineer, Peta Solutions Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland email: valery.tsch...@switch.ch phone: +41 44 268 1544 smime.p7s Description: S/MIME Cryptographic Signature ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] radosgw-admin doesn't list user anymore
> root@ineri:~# radosgw-admin user info > could not fetch user info: no user info saved Hi Valery, You need to use radosgw-admin metadata list user Thanks, derek -- --- Derek T. Yarnell University of Maryland Institute for Advanced Computer Studies ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] radosgw-admin doesn't list user anymore
We upgraded from 0.61.8 to 0.67.4. The metadata commands works for the users and the buckets: root@ineri ~$ radosgw-admin metadata list bucket [ "a4mesh", "61a75c04-34a5-11e3-9bea-8f8d15b5cf20", "6e22de72-34a5-11e3-afc4-d3f70b676c52", ... root@ineri ~$ radosgw-admin metadata list user [ "cloudbroker", "a4mesh", "valery", ... Cheers, Valery On 11/10/13 18:27 , Yehuda Sadeh wrote: On Fri, Oct 11, 2013 at 7:46 AM, Valery Tschopp wrote: Hi, Since we upgraded ceph to 0.67.4, the radosgw-admin doesn't list all the users anymore: root@ineri:~# radosgw-admin user info could not fetch user info: no user info saved But it still work for single user: root@ineri:~# radosgw-admin user info --uid=valery { "user_id": "valery", "display_name": "Valery Tschopp", "email": "valery.tsch...@switch.ch", ... The debug log file is too big for the mailing-list, but here it is on pastebin: http://pastebin.com/cFypJ2Qd What version did you upgrade from? You can try using the following: $ radosgw-admin metadata list bucket Thanks, Yehuda -- SWITCH -- Valery Tschopp, Software Engineer, Peta Solutions Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland email: valery.tsch...@switch.ch phone: +41 44 268 1544 smime.p7s Description: S/MIME Cryptographic Signature ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] radosgw-admin doesn't list user anymore
On Fri, Oct 11, 2013 at 7:46 AM, Valery Tschopp wrote: > Hi, > > Since we upgraded ceph to 0.67.4, the radosgw-admin doesn't list all the > users anymore: > > root@ineri:~# radosgw-admin user info > could not fetch user info: no user info saved > > > But it still work for single user: > > root@ineri:~# radosgw-admin user info --uid=valery > { "user_id": "valery", >"display_name": "Valery Tschopp", >"email": "valery.tsch...@switch.ch", > ... > > The debug log file is too big for the mailing-list, but here it is on > pastebin: http://pastebin.com/cFypJ2Qd > What version did you upgrade from? You can try using the following: $ radosgw-admin metadata list bucket Thanks, Yehuda ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com