* How to use radosgw-admin to delete some or all users?
@ 2014-09-18 7:53 Zhao zhiming
2014-09-18 17:27 ` radosgw-admin list users? Robin H. Johnson
0 siblings, 1 reply; 5+ messages in thread
From: Zhao zhiming @ 2014-09-18 7:53 UTC (permalink / raw)
To: ceph-devel
HI ALL,
I know radosgw-admin can delete one user with command ‘radosgw-admin user rm uid=xxx’, I want to know have some commands to delete multiple or all users?
thanks. --
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* radosgw-admin list users?
2014-09-18 7:53 How to use radosgw-admin to delete some or all users? Zhao zhiming
@ 2014-09-18 17:27 ` Robin H. Johnson
2014-09-18 17:38 ` Yehuda Sadeh
0 siblings, 1 reply; 5+ messages in thread
From: Robin H. Johnson @ 2014-09-18 17:27 UTC (permalink / raw)
To: ceph-devel
Related to this thread, radosgw-admin doesn't seem to have anything to
list the users.
The closest I have as a hack is:
rados ls --pool=.users.uid |sed 's,.buckets$,,g' |sort |uniq
But this does require internal knowledge of how it's stored, and I don't
want to rely on it.
On Thu, Sep 18, 2014 at 03:53:27PM +0800, Zhao zhiming wrote:
> HI ALL,
> I know radosgw-admin can delete one user with command ‘radosgw-admin user rm uid=xxx’, I want to know have some commands to delete multiple or all users?
>
> thanks. --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead
E-Mail : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: radosgw-admin list users?
2014-09-18 17:27 ` radosgw-admin list users? Robin H. Johnson
@ 2014-09-18 17:38 ` Yehuda Sadeh
2014-09-18 20:01 ` Robin H. Johnson
0 siblings, 1 reply; 5+ messages in thread
From: Yehuda Sadeh @ 2014-09-18 17:38 UTC (permalink / raw)
To: Robin H. Johnson; +Cc: ceph-devel
On Thu, Sep 18, 2014 at 10:27 AM, Robin H. Johnson <robbat2@gentoo.org> wrote:
> Related to this thread, radosgw-admin doesn't seem to have anything to
> list the users.
>
> The closest I have as a hack is:
> rados ls --pool=.users.uid |sed 's,.buckets$,,g' |sort |uniq
>
Try:
$ radosgw-admin metadata list user
Yehuda
> But this does require internal knowledge of how it's stored, and I don't
> want to rely on it.
>
> On Thu, Sep 18, 2014 at 03:53:27PM +0800, Zhao zhiming wrote:
>> HI ALL,
>> I know radosgw-admin can delete one user with command ‘radosgw-admin user rm uid=xxx’, I want to know have some commands to delete multiple or all users?
>>
>> thanks. --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
> --
> Robin Hugh Johnson
> Gentoo Linux: Developer, Infrastructure Lead
> E-Mail : robbat2@gentoo.org
> GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: radosgw-admin list users?
2014-09-18 17:38 ` Yehuda Sadeh
@ 2014-09-18 20:01 ` Robin H. Johnson
2014-09-19 2:35 ` Zhao zhiming
0 siblings, 1 reply; 5+ messages in thread
From: Robin H. Johnson @ 2014-09-18 20:01 UTC (permalink / raw)
To: ceph-devel
On Thu, Sep 18, 2014 at 10:38:19AM -0700, Yehuda Sadeh wrote:
> On Thu, Sep 18, 2014 at 10:27 AM, Robin H. Johnson <robbat2@gentoo.org> wrote:
> > Related to this thread, radosgw-admin doesn't seem to have anything to
> > list the users.
> >
> > The closest I have as a hack is:
> > rados ls --pool=.users.uid |sed 's,.buckets$,,g' |sort |uniq
> >
>
> Try:
>
> $ radosgw-admin metadata list user
Ooh nice!
Nothing in the --help output says 'metadata list' takes arguments (and
the manpage for radosgw-admin doesn't even have the metadata commands).
--
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead
E-Mail : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: radosgw-admin list users?
2014-09-18 20:01 ` Robin H. Johnson
@ 2014-09-19 2:35 ` Zhao zhiming
0 siblings, 0 replies; 5+ messages in thread
From: Zhao zhiming @ 2014-09-19 2:35 UTC (permalink / raw)
To: Robin H. Johnson; +Cc: ceph-devel
Thanks Robin and Yehuda, but I want to how to delete multiple users.
I use 'radosgw-admin metadata list user’ to list all users, and found some users have unreadable code.
radosgw-admin metadata list user
[
"zzm1",
"?zzm1",
"?zzm1”]
and I can’t delete these unreadable users.
radosgw-admin user rm —uid="?zzm1"
could not remove user: unable to remove user, user does not exist
so I want to know, do rgw admin have command to delete multiply or all users?
Thanks.
On Sep 19, 2014, at 4:01 AM, Robin H. Johnson <robbat2@gentoo.org> wrote:
> On Thu, Sep 18, 2014 at 10:38:19AM -0700, Yehuda Sadeh wrote:
>> On Thu, Sep 18, 2014 at 10:27 AM, Robin H. Johnson <robbat2@gentoo.org> wrote:
>>> Related to this thread, radosgw-admin doesn't seem to have anything to
>>> list the users.
>>>
>>> The closest I have as a hack is:
>>> rados ls --pool=.users.uid |sed 's,.buckets$,,g' |sort |uniq
>>>
>>
>> Try:
>>
>> $ radosgw-admin metadata list user
> Ooh nice!
> Nothing in the --help output says 'metadata list' takes arguments (and
> the manpage for radosgw-admin doesn't even have the metadata commands).
>
> --
> Robin Hugh Johnson
> Gentoo Linux: Developer, Infrastructure Lead
> E-Mail : robbat2@gentoo.org
> GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-09-19 2:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-18 7:53 How to use radosgw-admin to delete some or all users? Zhao zhiming
2014-09-18 17:27 ` radosgw-admin list users? Robin H. Johnson
2014-09-18 17:38 ` Yehuda Sadeh
2014-09-18 20:01 ` Robin H. Johnson
2014-09-19 2:35 ` Zhao zhiming
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.