Articles in this section

Helm reinstall of AKO fails "cannot re-use a name that is still in use"

Problem Description

On attempting a reinstall or upgrade --install, you see the error "Error: INSTALLATION FAILED: cannot re-use a name that is still in use".  

Explanation

This indicates that Helm had an issue at some point with an install and that the install has not been removed.   Specifically, if the operator was removed using helm uninstall it will leave the secrets object which will need to be removed.

Solution

Run kubectl get secrets -A and get the helm.sh/release secret

Delete the secret with kubectl delete command specifying the name of the secret. e.g. for the secret sh.helm.release.v1.aerospike-kubernetes-operator.v1 in the namespace ako run the command kubectl delete secret/sh.helm.release.v1.aerospike-kubernetes-operator.v1 -nako 

This will delete the secret and allow you to install or re-install the operator


Applies To Earliest Version

4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful