openshift icon indicating copy to clipboard operation
openshift copied to clipboard

Nutanix CSI operator issue while installing in Openshift

Open avinashkanawade opened this issue 3 years ago • 7 comments

Hello Team,

We are getting the below warning while creating the namespace nutanix CSI operator warning: "not installing operator into the recommended namespace can cause unexpected behavior"

issue CSI

Regards, Avinash Kanawade

avinashkanawade avatar Oct 11 '22 14:10 avinashkanawade

the recommended namespace is now openshift-cluster-csi-drivers to confirm with Openshift standard

tuxtof avatar Oct 11 '22 15:10 tuxtof

no...in the namespace I have mentioned the ntnx-system... after that it shows the warning "Not installing the Operator into the recommended namespace can cause unexpected behavior"

avinashkanawade avatar Oct 11 '22 15:10 avinashkanawade

can I create a namespace using this name openshift-cluster-csi-drivers

avinashkanawade avatar Oct 11 '22 15:10 avinashkanawade

Normally this namespace already exist in your cluster

tuxtof avatar Oct 11 '22 17:10 tuxtof

I used the default namespace openshift-cluster-csi-drivers in create instance error

but still showing the below error while creating the instance

failed to install release: rendered manifests contain a resource that

    already exists. Unable to continue with install: ClusterRole

    "nutanix-csi-controller-role" in namespace "" exists and cannot be

    imported into the current release: invalid ownership metadata; label

    validation error: missing key "app.kubernetes.io/managed-by": must be

    set to "Helm"; annotation validation error: missing key

    "meta.helm.sh/release-name": must be set to "nutanixcsistorage";

    annotation validation error: missing key

    "meta.helm.sh/release-namespace": must be set to

    "openshift-cluster-csi-drivers" 

avinashkanawade avatar Oct 12 '22 02:10 avinashkanawade

image

this is the issue, please help me to resolve the issue

avinashkanawade avatar Oct 12 '22 02:10 avinashkanawade

base on your error it seems you already install CSI differently (without Operator) in the past in this cluster can you delete the old ressource causing trouble

oc delete ClusterRole/nutanix-csi-controller-role and potentially some other

tuxtof avatar Oct 12 '22 06:10 tuxtof