Discussion:
How to use radosgw-admin to delete some or all users?
Zhao zhiming
2014-09-18 07:53:27 UTC
Permalink
HI ALL,
I know radosgw-admin can delete one user with command =91radosgw-admin=
user rm uid=3Dxxx=92, I want to know have some commands to delete mult=
iple or all users?

thanks. --
To unsubscribe from this list: send the line "unsubscribe ceph-devel" i=
n
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Robin H. Johnson
2014-09-18 17:27:46 UTC
Permalink
This post might be inappropriate. Click to display it.
Yehuda Sadeh
2014-09-18 17:38:19 UTC
Permalink
Related to this thread, radosgw-admin doesn't seem to have anything t=
o
list the users.
rados ls --pool=3D.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 do=
n't
want to rely on it.
Post by Zhao zhiming
HI ALL,
I know radosgw-admin can delete one user with command =E2=80=98=
radosgw-admin user rm uid=3Dxxx=E2=80=99, I want to know have some comm=
ands to delete multiple or all users?
Post by Zhao zhiming
thanks. --
To unsubscribe from this list: send the line "unsubscribe ceph-devel=
" in
Post by Zhao zhiming
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel"=
in
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" i=
n
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Robin H. Johnson
2014-09-18 20:01:57 UTC
Permalink
Post by Yehuda Sadeh
Post by Robin H. Johnson
Related to this thread, radosgw-admin doesn't seem to have anything to
list the users.
rados ls --pool=.users.uid |sed 's,.buckets$,,g' |sort |uniq
$ 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 : ***@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 ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Zhao zhiming
2014-09-19 02:35:58 UTC
Permalink
Thanks Robin and Yehuda, but I want to how to delete multiple users.

I use 'radosgw-admin metadata list user=92 to list all users, and found=
some users have unreadable code.

radosgw-admin metadata list user
[
"zzm1",
"?zzm1",
"?zzm1=94]

and I can=92t delete these unreadable users.

radosgw-admin user rm =97uid=3D"?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.
Post by Robin H. Johnson
Post by Yehuda Sadeh
Related to this thread, radosgw-admin doesn't seem to have anything=
to
Post by Robin H. Johnson
Post by Yehuda Sadeh
list the users.
=20
rados ls --pool=3D.users.uid |sed 's,.buckets$,,g' |sort |uniq
=20
=20
=20
$ radosgw-admin metadata list user
Ooh nice!
Nothing in the --help output says 'metadata list' takes arguments (an=
d
Post by Robin H. Johnson
the manpage for radosgw-admin doesn't even have the metadata commands=
).
Post by Robin H. Johnson
=20
--=20
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel"=
in
Post by Robin H. Johnson
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" i=
n
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...