Skip to content
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

chectl fails to deploy minikube with Dex #20778

Closed
sparkoo opened this issue Nov 16, 2021 · 1 comment
Closed

chectl fails to deploy minikube with Dex #20778

sparkoo opened this issue Nov 16, 2021 · 1 comment
Labels
area/chectl Issues related to chectl, the CLI of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Milestone

Comments

@sparkoo
Copy link
Member

sparkoo commented Nov 16, 2021

Describe the bug

When deploying on minikube with nativeUserMode enabled, chectl fails to deploy Dex.

Che version

next (development version)

Steps to reproduce

  1. start minikube
  2. create checluster patch file native.patch:
spec:
  auth:
    nativeUserMode: true
  1. deploy chectl server:deploy --platform=minikube --installer=operator --workspace-engine=dev-workspace --che-operator-cr-patch-yaml=native.patch

chectl fails to deploy dex

❯ Deploy Dex
    ✔ Create namespace: dex...[Exists]
    ❯ Provide Dex certificate
      ✔ Check Cert Manager deployment...already deployed
      ✔ Wait for Cert Manager...ready
      ✖ Check Cert Manager CA certificate...generating new one
        → ENOENT: no such file or directory, open '/home/mvala/.local/share/chectl/client/0.0.20211116-next.75e3141/templates/cert-manager/ca-cert-generator-role.yml'

Expected behavior

chectl must deploy dex and setup minikube

Runtime

minikube

Screenshots

No response

Installation method

chectl/next

Environment

Linux

Eclipse Che Logs

2021-11-16T12:24:23.413Z Error: Command server:deploy failed. Error log: /home/mvala/.cache/chectl/error.log.
2021-11-16T12:24:23.413Z     at newError (~/.local/share/chectl/client/0.0.20211116-next.75e3141/lib/util.js:199:19)
2021-11-16T12:24:23.413Z     at Object.wrapCommandError (~/.local/share/chectl/client/0.0.20211116-next.75e3141/lib/util.js:195:12)
2021-11-16T12:24:23.413Z     at Deploy.<anonymous> (~/.local/share/chectl/client/0.0.20211116-next.75e3141/lib/commands/server/deploy.js:235:35)
2021-11-16T12:24:23.413Z     at Generator.throw (<anonymous>)
2021-11-16T12:24:23.413Z     at rejected (~/.local/share/chectl/client/0.0.20211116-next.75e3141/node_modules/tslib/tslib.js:115:69)
2021-11-16T12:24:23.413Z Cause: Error: ENOENT: no such file or directory, open '/home/mvala/.local/share/chectl/client/0.0.20211116-next.75e3141/templates/cert-manager/ca-cert-generator-role.yml'
2021-11-16T12:24:23.413Z     at Object.safeLoadFromYamlFile (~/.local/share/chectl/client/0.0.20211116-next.75e3141/lib/util.js:257:25)
2021-11-16T12:24:23.413Z     at KubeHelper.safeLoadFromYamlFile (~/.local/share/chectl/client/0.0.20211116-next.75e3141/lib/api/kube.js:3111:23)
2021-11-16T12:24:23.413Z     at KubeHelper.<anonymous> (~/.local/share/chectl/client/0.0.20211116-next.75e3141/lib/api/kube.js:333:35)
2021-11-16T12:24:23.413Z     at Generator.next (<anonymous>)
2021-11-16T12:24:23.413Z     at ~/.local/share/chectl/client/0.0.20211116-next.75e3141/node_modules/tslib/tslib.js:117:75
2021-11-16T12:24:23.413Z     at new Promise (<anonymous>)
2021-11-16T12:24:23.413Z     at Object.__awaiter (~/.local/share/chectl/client/0.0.20211116-next.75e3141/node_modules/tslib/tslib.js:113:16)
2021-11-16T12:24:23.413Z     at KubeHelper.createRoleFromFile (~/.local/share/chectl/client/0.0.20211116-next.75e3141/lib/api/kube.js:332:24)
2021-11-16T12:24:23.413Z     at CertManagerTasks.<anonymous> (~/.local/share/chectl/client/0.0.20211116-next.75e3141/lib/tasks/component-installers/cert-manager.js:95:51)
2021-11-16T12:24:23.413Z     at Generator.next (<anonymous>)
2021-11-16T12:24:23.413Z     at fulfilled (~/.local/share/chectl/client/0.0.20211116-next.75e3141/node_modules/tslib/tslib.js:114:62)

Additional context

No response

@sparkoo sparkoo added kind/bug Outline of a bug - must adhere to the bug report template. area/chectl Issues related to chectl, the CLI of Che severity/P1 Has a major impact to usage or development of the system. labels Nov 16, 2021
@tolusha tolusha mentioned this issue Nov 17, 2021
27 tasks
@sparkoo
Copy link
Member Author

sparkoo commented Nov 17, 2021

I'm setting it as a blocker because it's currently blocking progress on PRs eclipse-che/che-dashboard#401 and eclipse-che/che-server#171 and work on issue #20635

@sparkoo sparkoo added severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. and removed severity/P1 Has a major impact to usage or development of the system. labels Nov 17, 2021
@tolusha tolusha closed this as completed Nov 17, 2021
@tolusha tolusha added this to the 7.40 milestone Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chectl Issues related to chectl, the CLI of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

No branches or pull requests

2 participants