]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix bucket get for s3 account owned bucket 60399/head
authorNizamudeen A <nia@redhat.com>
Fri, 18 Oct 2024 15:20:33 +0000 (20:50 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 22 Oct 2024 13:48:39 +0000 (19:18 +0530)
commitdd4549238e525d371414538bb43e8333af19cb96
treec7ba69bbfe23329cd3a47bae78dbd9af59ab0170
parent1e4f788e4f57f8fa282f985355030174a7623ecb
mgr/dashboard: fix bucket get for s3 account owned bucket

**Issue 1:**

When a bucket is created with a user that is owner by the account user,
it fails to fetch the info for the bucket because the owner of that
bucket is considered as owned by the account rather than the user.

dashboard api try to fetch some info for the bucket on the basis of the
bucket owner which in this case fails since its not a real user.

To keep the existing behavior as it is and fix the current issue, I am
doing a check to make sure the user id exists or not. if it doesn't
exist, we goes on to fetch using the dashboard user.

**Issue 2**
Editing the bucket owner by the account is broken. So disabling the
ownership change for the bucket owned by account until we have user
account management for rgw in the dashboard

Fixes: https://tracker.ceph.com/issues/68622
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.ts
src/pybind/mgr/dashboard/openapi.yaml
src/pybind/mgr/dashboard/services/rgw_iam.py [new file with mode: 0644]
src/pybind/mgr/dashboard/services/service.py