]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/iam: only RGWDeleteRole returns ERR_DELETE_CONFLICT
authorCasey Bodley <cbodley@redhat.com>
Sat, 17 Feb 2024 22:53:21 +0000 (17:53 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 10 Apr 2024 17:09:16 +0000 (13:09 -0400)
commit51d36c3f60f77f9c2c32d4764ad66c90df67bacd
tree190e8b7e1412e8a6682180abdb2a7520886d172a
parent03c30e3e25ca8ec288a01ed4a12e2b5c4226ef67
rgw/iam: only RGWDeleteRole returns ERR_DELETE_CONFLICT

metadata sync calls RadosRole::delete_obj() after the role is deleted on
the metadata master zone. the role was verified to be empty there, so
metadata sync needs to delete the role anyway

only the iam DeleteRole api should require policies to be removed first

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/rgw_rest_role.cc