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

Istio installation failing on minishift #162

Open
pulgupta opened this issue Sep 28, 2018 · 12 comments
Open

Istio installation failing on minishift #162

pulgupta opened this issue Sep 28, 2018 · 12 comments

Comments

@pulgupta
Copy link

Hi Team,

I am trying to install istio in my minishift setup. After following all the steps at https://github.com/minishift/minishift-addons/tree/master/add-ons/istio I am stuck at the below step.

$ minishift addon apply istio --addon-env ISTIO_HOME=$ISTIO_HOME

Error which I am getting :

$ minishift addon apply istio --addon-env ISTIO_HOME=$ISTIO_HOME
-- Applying addon 'istio':.....error: the path "/home/pulgupta/istio-1.0.2/install/kubernetes/istio.yaml" does not exist
Error applying the add-on: Error executing command oc create -f #{ISTIO_HOME}/install/kubernetes/istio.yaml.

The files which are present in {ISTIO_HOME}/install/kubernetes are :

cd /home/pulgupta/istio-1.0.2/install/kubernetes
pulgupta@pulgupta $ ll
total 294
drwxr-xr-x. 2 pulgupta pulgupta   1024 Sep  7 01:33 addons
drwxr-xr-x. 3 pulgupta pulgupta   1024 Sep  7 01:33 ansible
drwxr-xr-x. 4 pulgupta pulgupta   1024 Sep  7 01:33 helm
-rw-r--r--. 1 pulgupta pulgupta   1374 Sep  7 01:33 istio-citadel-plugin-certs.yaml
-rw-r--r--. 1 pulgupta pulgupta   2397 Sep  7 01:33 istio-citadel-standalone.yaml
-rw-r--r--. 1 pulgupta pulgupta   1814 Sep  7 01:33 istio-citadel-with-health-check.yaml
-rw-r--r--. 1 pulgupta pulgupta 138826 Sep  7 01:33 istio-demo-auth.yaml
-rw-r--r--. 1 pulgupta pulgupta 134490 Sep  7 01:33 istio-demo.yaml
-rw-r--r--. 1 pulgupta pulgupta   1610 Sep  7 01:33 mesh-expansion.yaml
-rw-r--r--. 1 pulgupta pulgupta    102 Sep  7 01:33 namespace.yaml
-rw-r--r--. 1 pulgupta pulgupta   1053 Sep  7 01:33 README.md

Minishift version : minishift v1.12.0+daa0943
minishift addons list

  • admin-user : enabled P(0)
  • anyuid : enabled P(0)
  • istio : disabled P(0)
  • registry-route : disabled P(0)
  • xpaas : disabled P(0)
@pulgupta pulgupta changed the title Istio installation failing on openshift Istio installation failing on minishift Sep 28, 2018
@mbastawisy
Copy link

+1

@praveenkumar
Copy link

@pulgupta @mramadan88 Today we just merged the updated patch for istio addon patch, give it a try and let us know if still have issue.

@mbastawisy
Copy link

mbastawisy commented Oct 4, 2018

@praveenkumar Thanks a lot.

I am getting the following error:

-- Checking if requested OpenShift version 'v3.1.0' is valid ... v3.1.0 is not a valid OpenShift versionFAIL

did you mean v3.10.0?
minishift config set openshift-version v3.10.0

after using the above version, getting the below error during the starting:

-- Applying addon 'dynamic-admission-controllers': Enable required admission configs... Restart kube-api... Dynamic admission controllers add-on successfully applied -- Applying addon 'istio': Prepare for install istio... Installing istio-operator... Installing Istio.error: unable to recognize "installation.yaml": no matches for kind "Installation" in version "istio.openshift.com/v1alpha1" Error during post cluster up configuration: Error executing command 'oc apply -f installation.yaml'.

@praveenkumar
Copy link

did you mean v3.10.0?

@pulgupta yes this is what version you should use.

@kameshsampath
Copy link
Contributor

@pulgupta, please check now and let us know ?? we have fixed and refactored it a lot now

@pulgupta
Copy link
Author

@kameshsampath @praveenkumar I am now getting the below error
$ minishift addon install ./minishift-addons/add-ons/istio
Add-on installation failed with the error: Unable to parse specified addon: Unable to process command: '!oc new-project istio-operator'

@kameshsampath
Copy link
Contributor

@pulgupta can you please check if there was a half run install previously that would have created the project(s) already ?

@praveenkumar any other thoughts?

@pulgupta
Copy link
Author

@kameshsampath seems so, I deleted the complete minishift setup now and tried installing everything fresh, But now I am getting another error while trying to start minishift after specifying the initial configurations

$ minishift config set openshift-version v3.10.0 (5)
$ minishift addon enable admin-user (6)
$ minishift addon enable anyuid (7)
$ minishift start (8)

ERROR
24.08 MiB / 24.08 MiB [==========================================================================================================================================================] 100.00% 0s-- Downloading OpenShift v3.10.0 checksums ... OK
-- OpenShift cluster will be configured with ...
Version: v3.10.0
-- Checking oc support for startup flags ...
host-volumes-dir ... FAIL
Error during 'cluster up' execution: Flag host-volumes-dir is not supported for oc version v3.10.0. Use 'openshift-version' flag to select a different version of OpenShift.

@praveenkumar
Copy link

seems so, I deleted the complete minishift setup now and tried installing everything fresh

@pulgupta how did you delete it? Next error which you are seeing is not something expected when you set 3.10 version as default.

@kameshsampath
Copy link
Contributor

kameshsampath commented Oct 10, 2018

@pulgupta what OS you are in ? Can you post the traces ? Also if you have done eval $(minishift docker-env) && eval $(minishift oc-env) in previous env, i would prefer you be on a new terminal just to make sure all settings are in effect.

@praveenkumar WDYT?

@pulgupta
Copy link
Author

@praveenkumar I used this resource to clean up the system. https://docs.okd.io/latest/minishift/getting-started/uninstalling.html
My OS version is RHEL 7.4

@kameshsampath I was able to resolve the issue by upgrading minishift to latest version.
However now I am getting this

-- Starting OpenShift cluster ........................................................................................Error during 'cluster up' execution: Error starting the cluster. ssh command error:
command : /var/lib/minishift/bin/oc cluster up --base-dir /var/lib/minishift/base --image 'openshift/origin-${component}:v3.10.0' --public-hostname 192.168.42.210 --routing-suffix 192.168.42.210.nip.io
err     : exit status 1
output  : Getting a Docker client ...

I tried downgrading to 3.9.0 and was no longer facing this issue but then later when I ran minishift addon apply istio I came to know that Istio does not support v3.9.0

Any suggestion how to resolve the issue with 3.10.0

@gbraad
Copy link
Member

gbraad commented Mar 1, 2019

Any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants