Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object: set default zone/zonegroup/realm values for external rgw #9751

Merged

Conversation

thotz
Copy link
Contributor

@thotz thotz commented Feb 16, 2022

currently if multisite is not configured Rook sets values for
zone/zonegroup/realm as object store name which is only valid for
internal ceph object store. This may not exists for rgw running in
external cluster.

Signed-off-by: Jiffin Tony Thottan thottanjiffin@gmail.com

Description of your changes:

Which issue is resolved by this Pull Request:
Resolves #

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Skip Tests for Docs: Add the flag for skipping the build if this is only a documentation change. See here for the flag.
  • Skip Unrelated Tests: Add a flag to run tests for a specific storage provider. See test options.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.
  • Pending release notes updated with breaking and/or notable changes, if necessary.
  • Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
  • Code generation (make codegen) has been run to update object specifications, if necessary.

@thotz thotz added the object Object protocol - S3 label Feb 16, 2022
@thotz thotz requested review from travisn and leseb February 16, 2022 09:02
pkg/operator/ceph/object/objectstore.go Outdated Show resolved Hide resolved
@thotz thotz force-pushed the set-default-for-zone-zonegroup-external-rgw branch from 1009345 to f3a2361 Compare February 16, 2022 12:42
@thotz thotz requested a review from leseb February 16, 2022 12:44
@thotz thotz force-pushed the set-default-for-zone-zonegroup-external-rgw branch from f3a2361 to 056515d Compare February 17, 2022 07:06
@thotz thotz requested a review from leseb February 17, 2022 07:07
pkg/operator/ceph/object/objectstore.go Outdated Show resolved Hide resolved
@thotz thotz force-pushed the set-default-for-zone-zonegroup-external-rgw branch from 056515d to 78e32f8 Compare February 17, 2022 17:45
@thotz thotz requested a review from leseb February 17, 2022 17:45
* the object context fields.
*/

return "", "default", "default", nil
Copy link
Member

Choose a reason for hiding this comment

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

How does this affect pre-existing CephObjectStores that were created with zone/zonegroup having the name of the store?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BlaineEXE : The change is applicable only for external ceph clusters with rgw servers running on them, not with the internal cluster in which zone/zonegroup/realm created with name of cephobjectstore. IMO most of the users either create zone/zonegroup/realm with a different name than the name of the ceph object store(since the zone is a kinda collection of cephobject stores make sense to use a different name) or go with none. It is very rare to have users have the same name as cephobjectstore. If the are multiple zone/zonegroup/realm exists the plan is to fix them cleanly by supporting #6342.

Copy link
Member

Choose a reason for hiding this comment

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

If you say the breaking case is rare, it seems unlikely that we will have any users experience breakage on upgrade to v1.9. In the case of any breakages, we will rely on you to debug those issues at such time.

currently if multisite is not configured Rook sets values for
zone/zonegroup/realm as object store name which is only valid for
internal ceph object store. This may not exists for rgw running in
external cluster.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
@thotz thotz force-pushed the set-default-for-zone-zonegroup-external-rgw branch from 78e32f8 to 022645f Compare February 21, 2022 08:55
@thotz thotz requested a review from BlaineEXE February 21, 2022 08:55
@leseb leseb merged commit 3f97132 into rook:master Feb 22, 2022
@thotz thotz deleted the set-default-for-zone-zonegroup-external-rgw branch February 22, 2022 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object Object protocol - S3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants