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

Cannot deploy Che on minishift using operator #13881

Closed
vitaliy-guliy opened this issue Jul 17, 2019 · 18 comments
Closed

Cannot deploy Che on minishift using operator #13881

vitaliy-guliy opened this issue Jul 17, 2019 · 18 comments
Labels
area/chectl Issues related to chectl, the CLI of Che kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@vitaliy-guliy
Copy link
Contributor

Describe the bug

It's impossible to me to deploy Che on minishift using operator

The first I start minishift with 4cpus, 10GB RAM and 20GB disk space

minishift start --memory=10GB --cpus=4 --disk-size=20GB

Then I downloaded the latest version of chectl and tried to deploy Che using operator

./chectl-linux server:start --platform=minishift --installer=operator

Chectl failed with the following error

vitaliy@vitaliy-ThinkPad-P50 ~/bin $ ./chectl-linux server:start --platform=minishift --installer=operator
  ✔ ✈️  Minishift preflight checklist
    ✔ Verify if oc is installed...done.
    ✔ Verify if minishift is installed...done.
    ✔ Verify if minishift is running...done.
    ✔ Retrieving minishift IP and domain for routes URLs...192.168.99.100.nip.io.
  ❯ 🏃‍  Running the Che Operator
    ✔ Copying operator resources...done.
    ✔ Create Namespace (che)...done.
    ✔ Create ServiceAccount che-operator in namespace che...done.
    ✖ Create Role che-operator in namespace che
      → ERROR: It looks like you don't have enough privileges. You need to grant more privileges to current user or use a different user. If you are using minishift you can "oc login -u system:admin"
      Create RoleBinding che-operator in namespace che
      Create CRD checlusters.org.eclipse.che
      Waiting 5 seconds for the new Kubernetes resources to get flushed
      Create deployment che-operator in namespace che
      Create Che Cluster eclipse-che in namespace che
 ›   Error: ERROR: It looks like you don't have enough privileges. You need to grant more privileges to current user or use a different user. If you are using minishift you can "oc login -u system:admin"
vitaliy@vitaliy-ThinkPad-P50 ~/bin $ 

I want to pay attention that the latest version of chectl (20190716105045) does not deploy Che using helm

vitaliy@vitaliy-ThinkPad-P50 ~/bin $ ./chectl-linux server:start --platform=minishift
  ✔ ✈️  Minishift preflight checklist
    ✔ Verify if oc is installed...done.
    ✔ Verify if minishift is installed...done.
    ✔ Verify if minishift is running...done.
    ✔ Retrieving minishift IP and domain for routes URLs...192.168.99.100.nip.io.
  ✔ 🏃‍  Running the Che minishift-addon
    ✔ Check minishift version...done.
    ✔ Check logged...done.
    ✔ Check che addon is available...done.
    ✔ Apply Che addon...done.
  ❯ ✅  Post installation checklist
    ❯ Che pod bootstrap
      ✖ scheduling
        → ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
        downloading images
        starting
      Retrieving Che Server URL
      Che status check
Error: ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
    at KubeHelper.<anonymous> (/snapshot/chectl/lib/api/kube.js:0:0)
    at Generator.next (<anonymous>)
    at fulfilled (/snapshot/chectl/node_modules/tslib/tslib.js:107:62)
vitaliy@vitaliy-ThinkPad-P50 ~/bin $ 

Actually it's not clear the problem with chectl or with minishift.
The last time when I was able to deploy Che I used minishift 1.34.0 and chectl release 20190712093149

@benoitf
Copy link
Contributor

benoitf commented Jul 17, 2019

for minishift you've to do what is said in the error message

✖ Create Role che-operator in namespace che
      → ERROR: It looks like you don't have enough privileges. You need to grant more privileges to current user or use a different user. If you are using minishift you can "oc login -u system:admin"

so do
oc login -u system:admin

and restart chectl command with operator

@slemeur slemeur added kind/question Questions that haven't been identified as being feature requests or bugs. area/chectl Issues related to chectl, the CLI of Che labels Jul 17, 2019
@vitaliy-guliy
Copy link
Contributor Author

The first case is working fine when I do oc login -u system:admin
I suppose when the parameter --installer=operator is specified, the chectl should login to os automatically.

@slemeur slemeur closed this as completed Jul 17, 2019
@benoitf
Copy link
Contributor

benoitf commented Jul 17, 2019

@vitaliy-guliy the cli is assuming you're correctly logged on all platforms

@vitaliy-guliy
Copy link
Contributor Author

@benoitf this is not mentioned in the chectl documentation and at the first glance it looks like a bug.

@tsmaeder tsmaeder reopened this Jul 18, 2019
@tsmaeder
Copy link
Contributor

Can we fix the doc, please? Takes 2 minutes for someone who is familiar with the code.

@vitaliy-guliy
Copy link
Contributor Author

I still have strange output when deploying Che on minishift using helm, but Che become working

vitaliy@vitaliy-ThinkPad-P50 ~/bin $ ./chectl-linux server:start --platform=minishift
  ✔ ✈️  Minishift preflight checklist
    ✔ Verify if oc is installed...done.
    ✔ Verify if minishift is installed...done.
    ✔ Verify if minishift is running...done.
    ✔ Retrieving minishift IP and domain for routes URLs...192.168.99.100.nip.io.
  ✔ 🏃‍  Running the Che minishift-addon
    ✔ Check minishift version...done.
    ✔ Check logged...done.
    ✔ Check che addon is available...done.
    ✔ Apply Che addon...done.
  ❯ ✅  Post installation checklist
    ❯ Che pod bootstrap
      ✖ scheduling
        → ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
        downloading images
        starting
      Retrieving Che Server URL
      Che status check
Error: ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
    at KubeHelper.<anonymous> (/snapshot/chectl/lib/api/kube.js:0:0)
    at Generator.next (<anonymous>)
    at fulfilled (/snapshot/chectl/node_modules/tslib/tslib.js:107:62)
vitaliy@vitaliy-ThinkPad-P50 ~/bin $ 

@benoitf
Copy link
Contributor

benoitf commented Jul 18, 2019

@vitaliy-guliy in that case there is a bug, chectl should report an error that minishift/helm is not possible

@tsmaeder AFAIK it's a question issue, not a doc task so please create a new issue

@vitaliy-guliy
Copy link
Contributor Author

Link with #13928

@benoitf
Copy link
Contributor

benoitf commented Jul 19, 2019

still have strange output when deploying Che on minishift using helm, but Che become working

vitaliy@vitaliy-ThinkPad-P50 ~/bin $ ./chectl-linux server:start --platform=minishift
  ✔ ✈️  Minishift preflight checklist
    ✔ Verify if oc is installed...done.
    ✔ Verify if minishift is installed...done.
    ✔ Verify if minishift is running...done.
    ✔ Retrieving minishift IP and domain for routes URLs...192.168.99.100.nip.io.
  ✔ 🏃‍  Running the Che minishift-addon
    ✔ Check minishift version...done.
    ✔ Check logged...done.
    ✔ Check che addon is available...done.
    ✔ Apply Che addon...done.
  ❯ ✅  Post installation checklist
    ❯ Che pod bootstrap
      ✖ scheduling
        → ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
        downloading images
        starting
      Retrieving Che Server URL
      Che status check
Error: ERR_TIMEOUT: Timeout set to pod wait timeout 300000. podExist: false, currentPhase: undefined
    at KubeHelper.<anonymous> (/snapshot/chectl/lib/api/kube.js:0:0)
    at Generator.next (<anonymous>)
    at fulfilled (/snapshot/chectl/node_modules/tslib/tslib.js:107:62)
vitaliy@vitaliy-ThinkPad-P50 ~/bin $ 

Hello, in fact in this case it didn't used helm but minishift addon.

We need to probably display the installer/platform used in traces

@vitaliy-guliy
Copy link
Contributor Author

The same error for minikube

Screenshot from 2019-07-22 09-51-44

@benoitf
Copy link
Contributor

benoitf commented Jul 22, 2019

@vitaliy-guliy what is the chectl binary version that you're using ?

@benoitf
Copy link
Contributor

benoitf commented Jul 22, 2019

@vitaliy-guliy could you download the latest ?

@vitaliy-guliy
Copy link
Contributor Author

vitaliy-guliy commented Jul 22, 2019

At friday I tested it on the latest clectl.I will check it again.

@vitaliy-guliy
Copy link
Contributor Author

I checked twice using the latest chectl.

Screenshot from 2019-07-22 14-09-40

@slemeur
Copy link
Contributor

slemeur commented Jul 22, 2019

have you tried to cleanup before. like chectl server:delete ?

@vitaliy-guliy
Copy link
Contributor Author

@slemeur yes. I deleted the whole machine.

minishift stop
minishift delete
minishift start --memory=10GB --cpus=4 --disk-size=20GB
./chectl-linux server:start --platform=minishift --installer=operator

@bryantson
Copy link

I encountered the same issue when TLS and self-signed cert options was used. The issue went away if I did it without:

chectl server:start --platform=minishift --installer=operator

@tolusha
Copy link
Contributor

tolusha commented Mar 21, 2020

I don't think it is relevant anymore.
It is possible to deploy Che on minishift using operator.

@tolusha tolusha closed this as completed Mar 21, 2020
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/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

6 participants