-
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
Che operator fails to reconcile che after failed installation of devworkspace #19243
Comments
The uninstall process for the DevWorkspaceOperator is complicated and manual (e.g. the WTO docs or makefile Improper installation will break @sleshchenko I seem to recall we couldn't set an ObjectSelector on the validating webhook (hence causing this issue), but I can't find anything in the docs forbidding it. Could we just add a labelselector to our validating webhook to at least kind-of avoid this problem? |
Switching |
you went into very non-optimal way, in addition to deleting the finalizers, you just need to clean up all the Cluster-scoped resources, where webhooks are most critical.
pods labels are not propagated to pod/execs subresources, here is an issue on K8s side which should unblock us kubernetes/kubernetes#91732 |
yes and no. If it does not uninstall it, it must provide instruction how to remove it properly. If we care about development environments, I think Che Operator can store somewhere the info, which CheClusters uses DevWorkspace Operator, and the last can uninstall DWO and DevWorkspace Che Operator. It can be configmap in the DWO namespace. |
That was the roadblock I was remembering :) |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Still actual. I see the same error which prevents me now from debugging Che operator |
We can use now |
Describe the bug
I've had some issues during the installation of the che-operator with devworkspaces enabled and wanted to reinstall. I deleted
eclipse-che
anddevworkspace-controller
namespaces (by runningkubectl delete namespace ...
and deleting the finalizers on resources where necessary).I then wanted to install che using chectl. It never succeeded with these errors in the che operator log:
Notice the reference to the
devworkspace-webhookserver
during the installation of the postgres DB for che server.Because setting
spec.devworkspace.enable: false
actually does not uninstall devworkspace from the cluster in any way, the user has no way of making the installation work again.Note that I was able to make the installation work again by running
make uninstall
fromdevworkspace-operator
sources, but that is something that we might not want the users to do,Che version
Steps to reproduce
chectl server:deploy -p openshift -n eclipse-che -a operator
kubectl edit checluster eclipse-che -n eclipse-che
and setspec.devworkspace.enable: true
kubectl delete namespace eclipse-che devworkspace-controller
chectl server:deploy -p openshift -n eclipse-che -a operator
againThe installation never finishes with the error in the che-operator log as described above.
Expected behavior
We should have a documented way of cleaning up the cluster to be able to do repeated installations.
Runtime
Screenshots
N/A
Installation method
Environment
The text was updated successfully, but these errors were encountered: