install
install copied to clipboard
Second consecutive installation of contiv on k8s gives error
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
This will be fixed as part of the updater stuff I am working on
Ok thanks. But why error message is about aci key where I am not installing contiv in aci mode.
@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
@gaurav-dalvi please run uninstall in between and see if you still see this issue