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
update rook-ceph-mon endpoints cm #1673
Conversation
|
/retest-required ci/prow/red-hat-storage-ocs-ci-e2e-aws |
|
/retest-required |
services/provider/server/server.go
Outdated
| @@ -278,7 +278,7 @@ func (s *OCSProviderServer) getExternalResources(ctx context.Context, consumerRe | |||
| Name: monConfigMap, | |||
| Kind: "ConfigMap", | |||
| Data: mustMarshal(map[string]string{ | |||
| "data": cmData[0], // Address of first mon | |||
| "data": strings.Join(cmData, ", "), // IP Address of all mon's | |||
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 rook can handle the space. Here's a sample from a test cluster. And is the mon name included with the cmData?
data: a=10.110.186.73:6789,b=10.105.227.50:6789,c=10.104.4.237:6789
| "data": strings.Join(cmData, ", "), // IP Address of all mon's | |
| "data": strings.Join(cmData, ","), // IP Address of all mon's |
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.
Yaa the mon Name would be included, as we are just unmarshalling the mon ConfigMap and appending it to external Resource
|
/lgtm |
services/provider/server/server.go
Outdated
| @@ -278,7 +278,7 @@ func (s *OCSProviderServer) getExternalResources(ctx context.Context, consumerRe | |||
| Name: monConfigMap, | |||
| Kind: "ConfigMap", | |||
| Data: mustMarshal(map[string]string{ | |||
| "data": cmData[0], // Address of first mon | |||
| "data": strings.Join(cmData, ","), // IP Address of all mon's | |||
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.
No need to join information that was split just a few lines above
| "data": strings.Join(cmData, ","), // IP Address of all mon's | |
| "data": configmap.Data, // IP Address of all mon's |
You can also remove the split above and change the condition to check empty string instead of len
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.
Done
Currently the server was overriding the mon endpoints cm with only 1 mon-IP, Updated it to add all the 3 mon IPs Signed-off-by: parth-gr <paarora@redhat.com>
|
@parth-gr: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/lgtm |
|
Added a hold to give @iamniting the opportunity to review as well |
|
/lgtm /hold cancel |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iamniting, nb-ohad, parth-gr, travisn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick release-4.11 |
|
@agarwal-mudit: new pull request created: #1678 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/cherry-pick release-4.10 |
|
@iamniting: new pull request created: #1891 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Currently the server was overriding the mon endpoints cm
with only 1 mon-IP,
Updated it to add all the 3 mon IPs
Signed-off-by: parth-gr paarora@redhat.com