CoreOS, RKE and Dell EMC Powerscale

Having problems getting the CSI drivers here working with Fedora CoreOS: csi-powerscale/node.yaml at master · dell/csi-powerscale · GitHub

To get the pods running I update the node.yaml file to:

     volumes:
        - name: registration-dir
          hostPath:
            path: /opt/rke/var/lib/kubelet/plugins_registry/
            type: DirectoryOrCreate
        - name: driver-path
          hostPath:
            path: /opt/rke/var/lib/kubelet/plugins/csi-isilon
            type: DirectoryOrCreate
        - name: volumedevices-path
          hostPath:
            path: /opt/rke/var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices
            type: DirectoryOrCreate
        - name: pods-path
          hostPath:
            path: /opt/rke/var/lib/kubelet/pods
            type: Directory

I can see the NFS exports created on on the EMC Powerscale Unit, the PVC and PV show up in Rancher fine, and show bound/green, but then I get errors like this in Rancher when the pods try to start:

MountVolume.SetUp failed for volume “k8s-276b5e2a1c” : rpc error: code = FailedPrecondition desc =Could not create ‘/opt/rke/var/lib/kublet/pods/e2e833e3-70e2-46d7-88777/volumes/Kubernetes.io~csi/k8s-276b5e223…./mount: no such file or directory.

When I got to this path on the worker nodes it does not exist.

1 Like

Is there anything else in the system journal logs?

1 Like

I was able to get it working. Basically I had to change every line with “/var/lib/” in the node.yaml file to have “/opt/rke/var/lib/” instead. Including the env: paths , the volumeMounts: paths and also the - name: registrar paths.

1 Like

Great! Could you mark this as solved then? Thanks!