minishift / minishift-addons

A repository for the community to exchange Minishift add-ons
Apache License 2.0
71 stars 86 forks source link

Istio installation failing on minishift #162

Open pulgupta opened 5 years ago

pulgupta commented 5 years ago

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

mbastawisy commented 5 years ago

+1

praveenkumar commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

did you mean v3.10.0?

@pulgupta yes this is what version you should use.

kameshsampath commented 5 years ago

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

pulgupta commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

Any progress on this?