-
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
Issues starting workspaces when DevWorkspace is enabled #20785
Comments
Url should be
|
I think it's rather an epic that touches several areas than a bug. |
Regarding problem 7, I wasn't able to reproduce it in pure DWO, but I also don't know how any other component could have an impact here. |
Issue about the problem 8 (Resources Monitor plugin): #20800 |
Problem 7: I started a workspace using @l0rd if you can reproduce the problem or share the factory link you used ? |
@benoitf I can reproduce problem n7 using factory link Project clone init container logs (note that it was the first time I started that workspace): $ kubectl logs workspaced648d9fa8ab249eb-69569d5768-bwb8w -c project-clone
2021/11/29 18:01:21 Read DevWorkspace at /devworkspace-metadata/flattened.devworkspace.yaml
2021/11/29 18:01:21 Processing project spring-petclinic
2021/11/29 18:01:21 Project 'spring-petclinic' is already cloned and has all remotes configured |
@l0rd This could be the result of the project-clone container running twice -- e.g. the flow could be
The only way I can think of to detect this is potentially either watching logs in the OpenShift UI or repeatedly running |
so tried on cluster-bot and was able to reproduce the error When starting the new workspace, there is an error in the controller after starting the second workspace so, there is a pod starting and project-clone is launched but then that pod is stopped with a failure in the controller:
and then there is another deployment/pod recreated and it's in this second pod that we have the 'already cloned' message |
The listed errors shouldn't impact things, as far as I know (they're just attempting to update out-of-date resources -- it's a no-op from the perspective of the cluster). If the pod is being created, then terminated and recreated, it sounds like the deployment is changing for some reason. If you can get me credentials to a cluster that reproduces, I can look into it more. |
The issue for investigating problem 2 - #20861 |
For Problem 7, the issue is happening because OpenShift is taking its sweet time provisioning pull secrets for the workspace's service account. The flow is:
This issue should be fixed by devfile/devworkspace-operator#700 |
Closing this issue. The only remaining problem is n.3 related to Theia but considered that our main attention is currently on VS Code and JetBrains we should not address it now. |
Describe the bug
I wanted to test the OpenShift connector with DevWorkspace enabled. Using the project https://github.com/l0rd/spring-petclinic and a v2 devfiles. I have logged here the problems I have found.
Problem 1. Factory URL devfilePath parameter is ignoredI am trying with
<che-host>/f?url=https://github.com/l0rd/spring-petclinic&devfilePath=.devfilev2.yaml
The issues:
fixed by: the URL should be
<che-host>#https://github.com/l0rd/spring-petclinic?devfilePath=.devfilev2.yaml
Problem 2. Che-Theia hangs for 10s before showing source codeAnd also the first project should be expanded and the "open editors" collapsed.
Problem 3. Misspelled VSX in extensions.json silently fails to load
I spent some time to understand that I had mispelled a VSX in
.vscode/extension.json
.The issues:
.vscode/extension.json
has been found or not.vscode/extension.json
has been downloaded.vscode/extension.json
could not be downloaded`Problem 4. VSX in extensions.json are not shown as installed Che-Theia plugin"redhat.java"
is in.vscode/extensions.json
and is loaded successfully but the list of Che-Theia plugins is emptyProblem 5. There is no link to Che dashboard in Che-TheiaNow that the small yellow arrow is not there anymore, users do not have any link to the dashboard. That's annoying especially if the workspace had been started from a factory link and the user never opened the dashboard.
Problem 6. Che-Theia plugins that include a volume don’t work out of the boxFor example
redhat.vscode-openshift-connector
fails to start because a volume namedkube
doesn’t exist. The workaround is that the user adds the volume in the devfile.yaml. We should either remove the volume from the plugin or include the volume component definition in the plugin definition.Problem 7. When 2 workspaces have the same project, the second fails to clone itTo reproduce: start a workspace using a factory link. Stop and delete the workspace. Start a new workspace using the same factory link.
There are no files in the project in Che-Theia.
From the project clone init container:
klo workspace0386015ab9cf4e16-57c9997bcb-5ww7z -c project-clone
2021/11/16 18:03:18 Read DevWorkspace at /devworkspace-metadata/flattened.devworkspace.yaml
2021/11/16 18:03:18 Processing project spring-petclinic
2021/11/16 18:03:18 Project 'spring-petclinic' is already cloned and has all remotes configured
Problem 8. The built-in resource monitor plugin status bar addition is not thereSteps to reproduce
chectl update next && chectl server:deploy --platform=openshift --workspace-engine=dev-workspace
The text was updated successfully, but these errors were encountered: