-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add an ability to disable waiting for PVCs to become bound #13409
Add an ability to disable waiting for PVCs to become bound #13409
Conversation
@rhopp @nickboldt Guys, do you think we need a new issue to implement auto-detecting of |
ci-test |
This comment has been minimized.
This comment has been minimized.
@sleshchenko: autodetect of |
...clipse/che/workspace/infrastructure/kubernetes/namespace/pvc/UniqueWorkspacePVCStrategy.java
Outdated
Show resolved
Hide resolved
...ava/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/pvc/CommonPVCStrategy.java
Outdated
Show resolved
Hide resolved
I can't speak to the technical merits of this solution as I'm unfamiliar with the codebase. But I provided a couple small nitpicks about console messages. And overall the solution looks reasonable, but IANASME. :) (I am not a subject matter expert.) |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
Selenium tests execution on Eclipse Che Multiuser on OCP (https://ci.codenvycorp.com/job/che-pullrequests-test-ocp/1813//Selenium_20tests_20report/) doesn't show any regression against this Pull Request. |
This is an easy fix that should help to workaround an issue with P.S. Note that with such a solution we will create an additional pod (light one I believe) on each first start of workspace (only when PVCs for workspace are created, during second start they should already exist) |
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.
This PR is correct workaround for downstream issue https://issues.jboss.org/browse/CRW-206 taking into a account disadvantages #13409 (comment)
Can't check fixup, because had a problem on OCP 4.1.rc7: |
1984bee
to
e842a62
Compare
rebased against a master without any change. IMHO no needs to rerun selenium tests. Will do manual testing before the merge. |
assembly/assembly-wsmaster-war/src/main/webapp/WEB-INF/classes/che/che.properties
Show resolved
Hide resolved
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
e842a62
to
0abd052
Compare
I've just tried this on OCP 4.1 and everything works as expected - though I've tried that with image before your rebase. |
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Cherrypicked to 6.19.x branch where we need this for 6.19.5. |
What does this PR do?
This PR adds an ability to disable waiting for PVCs to become bound.
It's needed when PVCs are configured with
volumeBindingMode=WaitForFirstConsumer
.It would be better to make Che Server detect
WaitForFirstConsumer
automatically and do not wait for bindings of PVC in such case, but there were faced some issues with implementing such feature and was decided to introduce this property to unblock Che Server on OpenShift v4.CHE_INFRA_KUBERNETES_PVC_WAIT__BOUND
is an environment variable that should be used to disable/enable waiting for PVCs binding.What issues does this PR fix or reference?
#12889
Release Notes
N/A
Docs PR
A few words should be added about the special configuration of Che Server if
StorageClass=WaitForFirstConsumer
is used. But Docs changes will be made in a separate PR to avoid merge of this issue.