nautilus: mgr/dashboard: change bucket owner between owners from same tenant#29485
Conversation
|
jenkins test dashboard |
| raise DashboardException(e, http_status_code=500, component='rgw') | ||
|
|
||
| def set(self, bucket, bucket_id, uid): | ||
| bucket_tenant = bucket[:bucket.find('/')] if bucket.find('/') >= 0 else None |
There was a problem hiding this comment.
Can you please add a comment here why it is necessary to strip the tenant in a special case. In some months nobody is remembering this.
Second, wouldn't it make sense to relocate the logic into strip_tenant_from_bucket_name, too? This would make the set method more cleaner.
smithfarm
left a comment
There was a problem hiding this comment.
Please update the commit message so it explains why the fix cannot be cherry-picked from master.
@smithfarm Done. |
Hm, maybe I'm missing something, but the commit message seems to still be the same, i.e.: Having the explanation in the PR is better than nothing, but having it in the git history is best. Therefore, I was hoping the commit message could be changed so it includes this nice explanation that you added to the PR description: |
130f00f to
492c1b3
Compare
@smithfarm sorry, I updated the commit message accordingly. |
|
jenkins test dashboard |
Since ceph#28813 is in master, the bucket operations (with tenanted owners) behaviour has changed regarding nautilus, so this fix is applied to nautilus directly. Fixes: https://tracker.ceph.com/issues/41067 Signed-off-by: Alfonso Martínez <almartin@redhat.com>
492c1b3 to
f267225
Compare
|
Thanks! I tested the changes on the latest Nautilus branch (462e659). e.g.
Also, I saw different behaviors between master and nautilus. When changing the owner for a bucket, the tenant prefix will be changed accordingly in master but not in nautilus. Is this a bug? |
The error is expected as currently it is not possible to access another tenant’s buckets:
The behavior in master has evolved regarding nautilus. |
|
jenkins test dashboard backend |
|
jenkins test dashboard backend |
|
LGTM. Also run qa test |
|
@LenzGr I see you added the (Ordinarily, |
@smithfarm @LenzGr The failure is not related to this PR.
|
|
@alfonsomthd Thanks for the explanation! |
|
QA run was successful: http://pulpito.ceph.com/laura-2019-10-25_07:05:49-rados:mgr-wip-laura-testing-nautilus-29485-31114-distro-basic-smithi/ (in combination with #31114) |
Since #28813 is in master, the bucket operations (with tenanted owners) behaviour has changed regarding nautilus, so this fix is applied directly.
Fixes: https://tracker.ceph.com/issues/41067
Signed-off-by: alfonsomthd almartin@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test docsjenkins render docs