Jx: Jenkinx X is not able to login in minishift.

Created on 14 Jun 2018  路  9Comments  路  Source: jenkins-x/jx

I'm creating a minishift cluster and when I executes 'jx create cluster minishift', the commands returns the following error:

imagen

I've executed above login command ( oc login -u system:admin ) in minishift and it doesn't works.

imagen

However, if I executes 'oc login -u system -p admin', it works great

imagen

Could be a bug?

I have been researching in the repository and I found the following code:

https://github.com/jenkins-x/jx/search?q=oc+login+-u+system%3Aadmin&unscoped_q=oc+login+-u+system%3Aadmin

Jenkins x version: (v1.2.127) https://github.com/jenkins-x/jx/releases/download/v1.2.127/jx-linux-amd64.tar.gz
Minishift version: minishift v1.18.0+756b128

Most helpful comment

All 9 comments

Fixed by @migangqui and merged by @jstrachan
https://github.com/jenkins-x/jx/commit/8f95dcf5a15afdc04e2865e8042a33f2cd3a597d

Thanks guys! :smiley:

Even after this fix I was not able to run jx create cluster minishift (on a clean minishift i.e. after running minishift delete --clear-cache). It is still failing because od insecure tls connection and because the system user does not have enough permissions to create cluster namespace.

jx 1.2.133
minishift v1.18.0+756b128

You're right! I've tested the fix only one time and the problem is not fixed yet. I hope your PR can fix the issue.

One question @magnum99 or @jstrachan , How can I package jx on my laptop?
@migangqui and I want to try on our laptop before submiting a new PR.

Thank you very much for your feedback!

@david-romero you can run either:
go run cmd/jx/jx.go create cluster minishift
or use the make build command (which will produce jx binary)

Thank you @magnum99 !! Now, I'm able to debug Jenkins X hahaha

Hi @jstrachan,
@magnum99 is right, with the latest release, you hace to execute minishift delete --clear-cache if you want yo create a cluster with Jenkins X.
In the following screenshots you can see an example:

1 - Without clean cluster

jenkinsxissue

2- After cleaning the cluster

jenkinxxissue2

Jenkins version: 1.2.135
Minishift version: v1.18.0+756b128

I set up with command go run cmd/jx/jx.go create cluster minishift in my local.

Jx 1.2.133
Minishift version: v1.18.0+756b128

so maybe if you agree that it works correctly right now, this ticket could be closed?

Was this page helpful?
0 / 5 - 0 ratings