-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ceph: change external rgw detection, not relying on cluster #6888
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this block is relevant anymore https://github.com/rook/rook/blob/master/pkg/operator/ceph/object/rgw.go#L312-L316, you might as well remove it.
pkg/apis/ceph.rook.io/v1/object.go
Outdated
@@ -20,6 +20,11 @@ func (s *ObjectStoreSpec) IsMultisite() bool { | |||
return s.Zone.Name != "" | |||
} | |||
|
|||
func (s *ObjectStoreSpec) IsExternal() bool { | |||
return len(s.Gateway.ExternalRgwEndpoints) != 0 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
Also, |
53e8291
to
48b67ad
Compare
@Zempashi please fix the unit tests and we will be good to go. |
48b67ad
to
7a3ef7c
Compare
@@ -194,10 +194,10 @@ func TestValidateSpec(t *testing.T) { | |||
err = r.validateStore(s) | |||
assert.NoError(t, err) | |||
|
|||
// external with no endpoints, failure | |||
// external with no endpoints, success |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L192 to L200 makes no sense now, so I'd just remove both tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed...
7a3ef7c
to
5564553
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing, update your commit message with the content of the PR description. Thanks.
Including the test and previous error ? |
5564553
to
3ad2530
Compare
The commit message must be self-sufficient, imagine being offline and trying to understand a commit, having a description like:
is a must-have. Just a bit of rework and we should be good. |
What do you think of the proposal ? It references the previous issue (I saw in commit og that it is allowed), the error log encountered, the change and the implication. It's really a copy-paste from the issue. I could rework this, but don't know in which way to improve. EDIT: may be making more clear on "what is the issue?" and "how did you solve it?" ? |
3ad2530
to
f9516d2
Compare
Yes this will be nice, let me break down your commit a bit:
What is "this"? What was not working?
This is good but could be clearer, how did you solve the detection? What's the new detection mechanism?
Thanks for your patience |
f9516d2
to
d06a502
Compare
Another try, and I'm the one to thanks for your patience |
Just one typo in your commit message |
After rook#6217, internal rgw spawning on external cluster was still broken, operator claiming: ``` ceph-object-controller: failed to reconcile failed to create object store deployments: failed to reconcile external endpoint: failed to create or update object store "arch-cloud" endpoint: failed to create endpoint "rook-ceph-rgw-arch-cloud". Endpoints "rook-ceph-rgw-arch-cloud" is invalid: subsets[0]: Required value: must specify `addresses` or `notReadyAddresses` ``` To spawn internal rgw for external cluster, changes detection of what mean 'internal' for rgw and only use the externalRgwEndpoints list for that independently of the status of the cluster Now there is multiple posibilities: * internal cluster and internal rgw pods: "normal case" * external cluster and internal rgw pods: <= now working with the PR * external cluster and external rgw pods: the external case * internal cluster and external rgw pods: <= new case that could exist Signed-off-by: Julien Girardin <jugirardin@free.fr>
d06a502
to
d63d9b7
Compare
Thanks for spotting the typo |
ceph: change external rgw detection, not relying on cluster (bp #6888)
Following #6217, allow rgw to created for external cluster
Signed-off-by: Julien Girardin jugirardin@free.fr
Took me some time to test #6226, but this was not still working, operator claiming:
Change external rgw detection, not relying on cluster. Now there is multiple posibilities:
Which issue is resolved by this Pull Request:
Resolves #6217
Checklist:
make codegen
) has been run to update object specifications, if necessary.