]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 12 Apr 2024 19:34:29 +0000 (15:34 -0400)
commit3cfdffdd9d4732fd6c50b37fa7649121079512cd
treeca37bbdae84dd097370bcdd14b9df4ac5b74f0c9
parent6cf8c5292e33ad8d419ba5aa9748762fd98ae0a6
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>
(cherry picked from commit 51d36c3f60f77f9c2c32d4764ad66c90df67bacd)
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/rgw_rest_role.cc