* Moving RGW buckets under tenant namespaces
@ 2018-01-30 16:27 Abhishek Lekshmanan
0 siblings, 0 replies; only message in thread
From: Abhishek Lekshmanan @ 2018-01-30 16:27 UTC (permalink / raw)
To: ceph-devel
I was looking into moving buckets owned by a user under a tenant
namespace; (a common usecase is in openstack installations where tenant
namespaces are preferred with openstack keystone for eg.). Doing this
manually with rados and radosgw-admin cli would involve something in the
lines of:
1. Copying the user and user.buckets object under the users.uid pool with
the tenant$user name with rados cp which seems to preserve omaps
2 radosgw-admin metadata get user:<uid> > uid.json # change uid to
reflect the tenant field
3 radosgw-admin metadata get bucket:<bucket-name> modifying the empty
tenant field with the tenant info; and owner to the tenant$user format
and finally metadata put bucket:tenant/<bucket-name>
4 repeating the same metadata get/put for
bucket.instance
5 metadata rm user:<old-username> bucket:<old-bucket-name>
bucket.instance:<old-instance>
6 radosgw-admin metadata put < modified-uid.json
I'm not sure whether this covers all the bases or any other metadata is
left behind?
Current RGW Bucket link/unlink does steps 2,3 and getting
the ACLs right and correctly adding and removing the omap entries in the
user.bucket object, though in the current form it would fail as
version checks for a non existent object would fail.
Given these complexities would it also make sense supporting this in
radosgw-admin? (with the caveat that we want no buckets or user
metadata of the concerned user also modified during this time frame)
--
Abhishek Lekshmanan
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton,
HRB 21284 (AG Nürnberg)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-30 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30 16:27 Moving RGW buckets under tenant namespaces Abhishek Lekshmanan
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.