Closed rgaduput closed 1 year ago
Ok, finally we have found that it was an issue with kubelet
directory. Chart has default one jiva.csiNode.kubeletDir:/var/lib/kubelet/
but in our cluster it something like /opt/kubelet
. After overwriting it pv mount is working fine.
What steps did you take and what happened: I am trying to configure Jiva to create volumes with replication support on Kubernetes version v1.24.9. I have followed both helm chart way of installation and the operator one which is mentioned here in the user guide docs https://openebs.io/docs/3.3.x/user-guides/jiva/jiva-prerequisites All the OpenEBS components are up & running, able to create PV as well. But when the pod comes up it is unable to mount the PV into it. Below is the exception I see. Appreciate if you can assist about this.
kubelet MountVolume.MountDevice failed for volume "pvc-aa8cec7a-2e64-4522-8538-929780487241" : kubernetes.io/csi: attacher.MountDevice failed to create newCsiDriverClient: driver name jiva.csi.openebs.io not found in the list of registered CSI drivers
CSIDriver looks fine,
What did you expect to happen: PV should be able successfully mounted in the pod.
The output of the following commands will help us better understand what's going on:
kubectl logs <jiva-operator pod name> -n openebs
kubectl get jv <jiva volume cr name> -n openebs -o yaml
kubectl get jvp <jiva volume policy> -n openebs -o yaml
kubectl logs <jiva csi node pod> -n openebs -o yaml
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
): v1.24.9/etc/os-release
): CentOS 7.9.2009