contiv / install

Contiv Installer
https://contiv.github.io
Other
114 stars 56 forks source link

Second consecutive installation of contiv on k8s gives error #165

Open gaurav-dalvi opened 7 years ago

gaurav-dalvi commented 7 years ago

on 1.0.3 build:

sudo ./install/k8s/install.sh -n $CONTIV_MASTER

It fails at this stage

sudo ./install/k8s/install.sh -n 172.29.174.19
Installing Contiv for Kubernetes
secret "aci.key" created
Generating local certs for Contiv Proxy
Created ./local_certs/local.key and ./local_certs/cert.pem
Setting installation parameters
Applying contiv installation
To customize the installation press Ctrl+C and edit ./.contiv.yaml.
configmap "contiv-config" created
daemonset "contiv-netplugin" created
replicaset "contiv-netmaster" created
replicaset "contiv-api-proxy" created
daemonset "contiv-etcd" created

ERRO[0030] Get http://netmaster:9999/api/v1/globals/global/: dial tcp 172.29.174.19:9999: i/o timeout

If i trigger installation again it gives this error

sudo ./install/k8s/install.sh -n 172.29.174.19
Installing Contiv for Kubernetes
Error from server (AlreadyExists): secrets "aci.key" already exists
dseevr commented 7 years ago

This will be fixed as part of the updater stuff I am working on

gaurav-dalvi commented 7 years ago

Ok thanks. But why error message is about aci key where I am not installing contiv in aci mode.

dseevr commented 7 years ago

@gaurav-dalvi because a dummy value is written if no key is provided. See: https://github.com/contiv/install/blob/a1578eb328936937325dec18f2f99c72d2623970/install/k8s/install.sh#L214-L224

Line 224 shouldn't be run again if the key already exists. That check is one part of the changes I am adding

rhim commented 7 years ago

@gaurav-dalvi please run uninstall in between and see if you still see this issue