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 with Dex on minikube 1.24 #20797

Closed
sparkoo opened this issue Nov 19, 2021 · 0 comments
Closed

chectl fails to deploy with Dex on minikube 1.24 #20797

sparkoo opened this issue Nov 19, 2021 · 0 comments
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/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@sparkoo
Copy link
Member

sparkoo commented Nov 19, 2021

Describe the bug

    ❯ Configure API server
      ✖ Copy Dex certificate into Minikube
        → ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

chectl error log:

2021-11-19T13:01:27.712Z Cause: Error: Command failed with exit code 10: minikube cp /var/folders/8d/tdhj7g7x6qqcg33z7_3fpj3h0000gn/T/dex-ca.crt /etc/ca-certificates/dex-ca.crt
2021-11-19T13:01:27.712Z X Exiting due to MK_COMMAND_RUNNER: sudo test -d /etc/ca-certificates && sudo scp -t /etc/ca-certificates && sudo touch -d "2021-11-19 14:01:19.909255866 +0100" /etc/ca-certificates/dex-ca.crt: Process exited with status 1

Issue is that minikube does not have folder /etc/ca-certificates. If I manually create it with minikube ssh sudo mkdir /etc/ca-certificates, it deploys ok.

Che version

next (development version)

Steps to reproduce

  1. start minikube 1.24
  2. create patch:
spec:
  auth:
    nativeUserMode: true
  1. deploy with chectl server:deploy --installer=operator --platform=minikube --che-operator-cr-patch-yaml=patch.yaml

Expected behavior

chectl deploys on minikube

Runtime

minikube

Screenshots

Screenshot 2021-11-19 at 14 11 32

Installation method

chectl/next

Environment

macOS

Eclipse Che Logs

No response

Additional context

2021-11-19T13:01:27.712Z     at newError (~/.local/share/chectl/client/0.0.20211119-next.53696c6/lib/util.js:199:19)
2021-11-19T13:01:27.712Z     at Object.wrapCommandError (~/.local/share/chectl/client/0.0.20211119-next.53696c6/lib/util.js:195:12)
2021-11-19T13:01:27.712Z     at Deploy.<anonymous> (~/.local/share/chectl/client/0.0.20211119-next.53696c6/lib/commands/server/deploy.js:230:35)
2021-11-19T13:01:27.712Z     at Generator.throw (<anonymous>)
2021-11-19T13:01:27.712Z     at rejected (~/.local/share/chectl/client/0.0.20211119-next.53696c6/node_modules/tslib/tslib.js:115:69)
2021-11-19T13:01:27.712Z Cause: Error: Command failed with exit code 10: minikube cp /var/folders/8d/tdhj7g7x6qqcg33z7_3fpj3h0000gn/T/dex-ca.crt /etc/ca-certificates/dex-ca.crt
2021-11-19T13:01:27.712Z X Exiting due to MK_COMMAND_RUNNER: sudo test -d /etc/ca-certificates && sudo scp -t /etc/ca-certificates && sudo touch -d "2021-11-19 14:01:19.909255866 +0100" /etc/ca-certificates/dex-ca.crt: Process exited with status 1
2021-11-19T13:01:27.712Z output:
2021-11-19T13:01:27.712Z *
2021-11-19T13:01:27.712Z ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
2021-11-19T13:01:27.712Z │                                                                                                                       │
2021-11-19T13:01:27.712Z │    * If the above advice does not help, please let us know:                                                           │
2021-11-19T13:01:27.712Z │      https://github.com/kubernetes/minikube/issues/new/choose                                                         │
2021-11-19T13:01:27.712Z │                                                                                                                       │
2021-11-19T13:01:27.712Z │    * Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.                              │
2021-11-19T13:01:27.712Z │    * Please also attach the following file to the GitHub issue:                                                       │
2021-11-19T13:01:27.712Z │    * - /var/folders/8d/tdhj7g7x6qqcg33z7_3fpj3h0000gn/T/minikube_cp_45a27d831e0f50acdff48783de1f98ddb2f94160_0.log    │
2021-11-19T13:01:27.712Z │                                                                                                                       │
2021-11-19T13:01:27.712Z ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
2021-11-19T13:01:27.712Z     at makeError (~/.local/share/chectl/client/0.0.20211119-next.53696c6/node_modules/execa/lib/error.js:60:11)
2021-11-19T13:01:27.712Z     at handlePromise (~/.local/share/chectl/client/0.0.20211119-next.53696c6/node_modules/execa/index.js:118:26)
@sparkoo sparkoo added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. area/chectl Issues related to chectl, the CLI of Che labels Nov 19, 2021
@tolusha tolusha mentioned this issue Nov 29, 2021
28 tasks
@tolusha tolusha modified the milestones: 7.40, 7.41 Dec 1, 2021
@tolusha tolusha modified the milestones: 7.41, 7.40 Dec 3, 2021
@tolusha tolusha closed this as completed Dec 3, 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/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

2 participants