Project

General

Profile

Bug #41611

Feature #39478: mgr/dashboard: new RGW workflows & RGW enhancements

Feature #39477: mgr/dashboard: add/edit missing RGW bucket info

Fix #41180: mgr/dashboard: fix bucket operations with tenant after new bucket utilities implementation

mgr/dashboard: fail to set a tenanted user as new owner of existing buckets

Added by Kiefer Chang 7 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
dashboard/rgw
Target version:
% Done:

100%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Steps to reproduce:

  1. Navigate to page Object Gateway >> Buckets >> Create. Create a bucket and assign a non-tenanted user as owner. e.g. admin
  2. Navigate to page Object Gateway >> Users >> Create. Create a tenanted user. e.g. foo$bar
  3. Navigate to page Object Gateway >> Buckets, Edit the bucket we just created and assign tenanted user as the new owner. The operation fails with this error:

Request to backend:

PUT http://172.16.71.20:4200/api/rgw/bucket/photos?bucket_id=31029e16-7cb6-4dcf-b39c-30b65d9a8a8e.4346.1&uid=foo%2524bar

Response from backend:
{"detail": "RGW REST API failed request with status code 404\n(b'{\"Code\":\"NoSuchKey\",\"RequestId\":\"tx00000000000000000006b-005d6e1513-10f4-def'\n b'ault\",\"HostId\":\"10f4-default-default\"}')", "component": "rgw"}

edit_bucket_tenanted_user.png View (102 KB) Kiefer Chang, 09/03/2019 07:25 AM


Related issues

Related to mgr - Bug #41067: mgr/dashboard: (nautilus) change bucket owner between owners from same tenant Resolved 08/05/2019
Copied to mgr - Backport #41996: nautilus: mgr/dashboard: fail to set a tenanted user as new owner of existing buckets Rejected

History

#1 Updated by Kiefer Chang 7 months ago

  • Status changed from New to In Progress
  • Assignee set to Kiefer Chang

#2 Updated by Kiefer Chang 7 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 30123

#3 Updated by Kiefer Chang 7 months ago

Issue #41067 already addressed this problem.
But PR on the issue targets nautilus branch. (https://github.com/ceph/ceph/pull/29485)
Should we close this one and suggest also fixing on master in #41067?

#4 Updated by Alfonso Martínez 7 months ago

  • Parent task set to #41180

#5 Updated by Kiefer Chang 7 months ago

Kiefer Chang wrote:

Issue #41067 already addressed this problem.
But PR on the issue targets nautilus branch. (https://github.com/ceph/ceph/pull/29485)
Should we close this one and suggest also fixing on master in #41067?

Bucket operation behaves differently on master and nautilus (See discussion on https://github.com/ceph/ceph/pull/29485#issuecomment-532583361). Will continue to fix this issue on PR 30123.

#6 Updated by Lenz Grimmer 6 months ago

  • Status changed from Fix Under Review to Pending Backport

#7 Updated by Nathan Cutler 6 months ago

  • Copied to Backport #41996: nautilus: mgr/dashboard: fail to set a tenanted user as new owner of existing buckets added

#8 Updated by Kiefer Chang 6 months ago

The PR can't be backported to nautilus and was addressed in https://github.com/ceph/ceph/pull/29485
Please see the comments in the PR.

@Alfonso, do you mind confirming this again. Thanks!

#9 Updated by Alfonso Martínez 6 months ago

Kiefer Chang wrote:

The PR can't be backported to nautilus and was addressed in https://github.com/ceph/ceph/pull/29485
Please see the comments in the PR.

@Alfonso, do you mind confirming this again. Thanks!

@Kiefer I confirm this.
The nautilus PR addresses 1 particular case: change owner that belongs to same tenant as previous owner.
Nautilus does not have feature parity with master regarding RGW as it has evolved in master.

#10 Updated by Lenz Grimmer 6 months ago

  • Status changed from Pending Backport to Resolved
  • Backport deleted (nautilus)

Removing the "Pending Backport" status - the applicable subset of this issue has be tracked and fixed in a separate issue #41067 (PR#29485 )

#11 Updated by Lenz Grimmer 6 months ago

  • Related to Bug #41067: mgr/dashboard: (nautilus) change bucket owner between owners from same tenant added

#12 Updated by Alfonso Martínez 6 months ago

  • % Done changed from 0 to 100

Also available in: Atom PDF