-
Notifications
You must be signed in to change notification settings - Fork 177
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
external: separate rgw endpoint validation from cephfs and rbd sc #2585
external: separate rgw endpoint validation from cephfs and rbd sc #2585
Conversation
@parth-gr: This pull request references Bugzilla bug 2213757, which is valid. No validations were run on this bugRequesting review from QA contact: 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. |
@openshift-ci[bot]: GitHub didn't allow me to request PR reviews from the following users: vavuthu. Note that only red-hat-storage members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
/assign @iamniting |
da1d2c3
to
0197611
Compare
@parth-gr: No Bugzilla bug is referenced in the title of this pull request. 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.16 |
@agarwal-mudit: once the present PR merges, I will cherry-pick it on top of release-4.16 in a new PR and assign it to you. 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. |
/retest |
if err != nil { | ||
return err | ||
} | ||
rgwEndpoint = d.Data[externalCephRgwEndpointKey] | ||
// rgw-endpoint is no longer needed in the 'd.Data' dictionary, | ||
// and can be deleted | ||
// created an issue in rook to add `CephObjectStore` type directly in the JSON output | ||
// https://github.com/rook/rook/issues/6165 | ||
delete(d.Data, externalCephRgwEndpointKey) |
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.
If we delete the rgw endpoint from the d.Data and let's say for some reason the ocs-operator pod got restarted before the CR is created, we will loose the end point value.
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.
If the ocs-operator is re-started we will re-fecth the data from the secret, using retrieveExternalSecretData
so all the fields will get back
Please correct the PR desc, seems like it's missing half sentence or something. |
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.
Since we do not have E2E test coverage for this, please test it manually and ensure the changes work as expected.
currently if the rgw endpoint is not reachable all the storageclass creation fails Fix will make the rgw endpoint validation separate and will create rbd and cephfs storageclasses if rgw endpoints validation fails Signed-off-by: parth-gr <partharora1010@gmail.com>
35dbb3b
to
b1ae82f
Compare
Testing result: Delete the rbd and rgw storageclass
Updated the secret to unreachable rgw endpoint
Still the rbd storageclass gets created:
|
/backport 4.16 |
@umangachapagain added the testing results |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: parth-gr, umangachapagain 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 |
409a0df
into
red-hat-storage:main
@agarwal-mudit: new pull request created: #2607 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-sigs/prow repository. |
currently, if the rgw endpoint is not reachable
all the storageclass creation fails
The fix will make the rgw endpoint validation separate and will create rbd and cephfs storageclasses if rgw endpoints validation fails