Skip to content

rgw: fix missing tenant prefix in bucket name during bucket link#29815

Merged
cbodley merged 2 commits intoceph:masterfrom
smanjara:wip-fix-bucket-link
Aug 28, 2019
Merged

rgw: fix missing tenant prefix in bucket name during bucket link#29815
cbodley merged 2 commits intoceph:masterfrom
smanjara:wip-fix-bucket-link

Conversation

@smanjara
Copy link
Contributor

Seems like a regression. Tenant prefix was missing in bucket name while linking bucket to a tenanted user.

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test docs
  • jenkins render docs

Shilpa Jagannath added 2 commits August 22, 2019 14:43
…ude 'tenant/' prefix.

On account of recent rgw metadata refactoring changes, bucket link was broken.
Bucket name was missing the tenant name prefix.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
@smanjara smanjara requested review from cbodley and ivancich August 22, 2019 11:07
@cbodley
Copy link
Contributor

cbodley commented Aug 22, 2019

thanks @smanjara, it looks like this could fix https://tracker.ceph.com/issues/41306 too. i was hoping to get @mdw-at-linuxbox's feedback on the intended behavior though - i seem to remember a reason that the new tenant name had to be given as part of the --bucket-new-name=tenant/name

Copy link
Member

@ivancich ivancich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @cbodley that it would be useful to get @mdw-at-linuxbox's input. It seems there're are some subtle issues here.

}
rgw_bucket old_bucket = bucket;
rgw_user user_id = op_state.get_user_id();
bucket.tenant = user_id.tenant;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! it looks like i messed this up in the metadata refactoring rebase here: #29118 (comment)

@cbodley
Copy link
Contributor

cbodley commented Aug 22, 2019

jenkins test this please

@smanjara
Copy link
Contributor Author

Teuthology runs passed except for a few centos build failures :
http://pulpito.ceph.com/smanjara-2019-08-23_06:39:33-rgw:singleton-wip-fix-bucket-link-distro-basic-smithi/

@ivancich ivancich self-requested a review August 23, 2019 14:53
Copy link
Member

@ivancich ivancich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanations.

@ivancich
Copy link
Member

jenkins test docs

@tchaikov
Copy link
Contributor

@mdw-at-linuxbox ping?

@cbodley
Copy link
Contributor

cbodley commented Aug 26, 2019

jenkins retest this please

@cbodley
Copy link
Contributor

cbodley commented Aug 26, 2019

ok to merge once the checks are resolved

@cbodley
Copy link
Contributor

cbodley commented Aug 26, 2019

unrelated failures from make check:

CMake Error at CMakeLists.txt:68 (message):
Can't find sphinx-build.

@cbodley
Copy link
Contributor

cbodley commented Aug 26, 2019

jenkins test make check

1 similar comment
@smanjara
Copy link
Contributor Author

jenkins test make check

@cbodley cbodley merged commit 9a0740b into ceph:master Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants