Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quincy: rgw multisite: replicate metadata for iam roles #48030

Merged
merged 55 commits into from
Feb 21, 2023

Conversation

pritha-srivastava
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/57364


backport of #43597
parent tracker: https://tracker.ceph.com/issues/51068

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh

theanalyst and others added 30 commits September 1, 2022 13:17
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 1584fe5)
This handles the metadata for RGW Roles with the RADOS backend

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 3fe4307)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit cff18a2)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4f8b4b5)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 842f74a)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 00dbe32)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit cd69cfc)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 0cabcf6)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 2335a4b)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 150f78b)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 0569b7d)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 7a2795f)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 3c7d027)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit e2b8006)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit f8189c6)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit ccebb5c)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit e41629f)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 0ca6756)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 90b6642)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit d1fd01c)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 59b072a)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit ceb7cf9)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit feb4754)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 83e30f6)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 7fb221c)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 93375dd)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 6e46243)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 932807b)
As populate creates uuids etc which are only needed in direct calls to rgw_admin

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 5f9f977)
Since these aren't tracked via MDLog and merely ancillary objects

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit a92752b)
theanalyst and others added 21 commits September 6, 2022 09:24
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit e078dea)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 35c0e13)
This keeps the implementation of storage seperate from the RGWRole class. Also
drop the get_roles_by_path_prefix static function as this is currently
implemented in the backend and can be directly accessed from role ctl classes.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 846a0e4)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit d8c2a89)
Similar to the read and write system_obj interfaces this function stats an
object and returns the mtime & attrs if set.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 8f4e00c)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4aa53ff)
Removing references to RGW services and RGW Ctl.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 04913eb)
RGWRoleMetadataHandler and class RGWSI_Role_Module.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 3f574a3)
needed for RGWRoleMetadataHandler.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit a100026)
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 510db31)
metadata is written to md log in method store_info().

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 36169ca)
rados.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit fb1f670)
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 520e4ff)
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 9549d2c)
and store_info since that gets taken care of the meta_be->put()
and meta_be->get().

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit f272a57)
references to RGWSI_Role and cleaning up code.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit e57e8da)
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit a4caa0b)
for roles.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 0d96b29)
for role REST APIs.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit c129eda)
in a JSON object for a role.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 4bae137)
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit 7140e82)
Copy link
Contributor

@mattbenjamin mattbenjamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, and validated (on 5.3) downstream

@yuriw yuriw merged commit d2832d3 into ceph:quincy Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants