Error unable to attach or mount volumes to pods with EFS driver in OSD/ROSA

Solution Unverified - Updated -

Environment

  • Red Hat OpenShift Service on AWS (ROSA)
    • 4
  • Red Hat OpenShift Dedicated (OSD)
    • 4
  • AWS EFS
  • aws-efs-operator community operator

Issue

  • Pod fails to start with error Unable to attach or mount volumes: unmounted volumes when using an EFS volume.

Resolution

If the unsupported aws-efs-operator community operator is installed instead of the aws-efs-csi-driver-operator, it's needed to uninstall it and install the supported EFS CSI Driver.

Check the Diagnostic Steps section to identify if the unsupported community operator is installed. If the efs.csi.aws.com clustercsidriver is not present, and the installed EFS operator is aws-efs-operator.openshift-operators, it's needed to uninstall that operator and install the supported aws-efs-csi-driver-operator.openshift-cluster-csi-drivers. Refer to Migration from aws-efs-operator to aws-csi-efs-driver-operator for additional information.

Root Cause

The aws-efs-operator is a community operator not supported by Red Hat. Starting with OCP 4.10, the aws-efs-csi-driver-operator is supported. Refer to Support Status for AWS EFS on OCP for additional information.

Diagnostic Steps

Check that there are Unable to attach or mount volumes messages in the pod logs and events:

$ oc logs -n [namespace_name] pod [pod_name]

$ oc describe pod [pod_name] -n [namespace_name]

Check if the efs.csi.aws.com clustercsidriver is present in the cluster:

$ oc get clustercsidriver
NAME              AGE
ebs.csi.aws.com   32d
efs.csi.aws.com   24d

Check if the aws-efs-csi-driver-operator operator is installed:

$ oc get operators | grep -i efs
aws-efs-csi-driver-operator.openshift-cluster-csi-drivers       24d

If the efs.csi.aws.com clustercsidriver is not present, and the installed EFS operator is aws-efs-operator.openshift-operators community operator, it's needed to uninstall that operator and install the supported aws-efs-csi-driver-operator.openshift-cluster-csi-drivers.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments