che: Restart workspace fail (OpenShift Dedicated, minishift)

Describe the bug

Got error message during restarting early created workspaces. This reproduced not each time need to repeat restarting several times.

Che version

  • latest
  • nightly - 7.11.0-SNAPSHOT
  • other: please specify

Steps to reproduce

  1. Create workspace
  2. Stop workspace
  3. Try to restart it (probably need to repeat several times)

Got this error log:

Error: Failed to run the workspace: "Failure executing: POST at: https://172.30.0.1/api/v1/namespaces/eclipse-che/secrets. Message: object is being deleted: secrets "workspacetim1cx2edjv0re97-sshprivatekeys" already exists. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], group=null, kind=secrets, name=workspacetim1cx2edjv0re97-sshprivatekeys, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=object is being deleted: secrets "workspacetim1cx2edjv0re97-sshprivatekeys" already exists, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=AlreadyExists, status=Failure, additionalProperties={})."

Expected behavior

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)
oc version

Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.0+b4261e0", GitCommit:"b4261e07ed", GitTreeState:"clean", BuildDate:"2019-07-06T03:16:01Z", GoVersion:"go1.12.6", Compiler:"gc", Platform:"darwin/amd64"}

Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.2", GitCommit:"4320e48", GitTreeState:"clean", BuildDate:"2020-01-21T19:50:59Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}

Screenshots

error-log

Installation method

  • chectl
  • che-operator
  • minishift-addon
  • I don’t know
  • oc apply for che-server, plugin and devfile registry

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (OCD che-dev Cluster)
  • other: please specify

Eclipse Che Logs

che-2-5kqgc-che.log

Additional context

Could not reproduce before this commit: https://github.com/eclipse/che/commit/db46ad4979f6a82ac2278b410e73659c6463d676

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (25 by maintainers)

Most upvoted comments

@tolusha @ibuziuk yes have reproduced it with chectl and minishift

Deploy script is deprecated and removed. Any issues caused by that script make no sense.

FYI, I reproduced it on minishift

minishift v1.34.2+83ebaab