install icon indicating copy to clipboard operation
install copied to clipboard

Second consecutive installation of contiv on k8s gives error

Open gaurav-dalvi opened this issue 7 years ago • 4 comments

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

gaurav-dalvi avatar Jun 09 '17 17:06 gaurav-dalvi

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

dseevr avatar Jun 09 '17 17:06 dseevr

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

gaurav-dalvi avatar Jun 09 '17 18:06 gaurav-dalvi

@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

dseevr avatar Jun 09 '17 18:06 dseevr

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

rhim avatar Jun 12 '17 14:06 rhim