AWS EFS CSI driver in OpenShift sets wrong ownership

Solution Verified - Updated -

Issue

  • When using the AWS EFS CSI Driver Operator, files on EFS are created using an unexpected User (UID) and group (GID), in the following example 50002 instead of 1002180000:

    $ id
    uid=1002180000(1002180000) gid=0(root) groups=0(root),1002180000
    
    $ ls /mount -al
    total 8
    drwx------.  3 50002 50002 6144 May  3 13:38 .
    drwxr-xr-x.  3 root  root    18 May  4 10:06 ..
    drwx------. 19 50002 50002 6144 May  3 13:39 example
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4.12
  • Amazon Web Services (AWS)
  • AWS Elastic File System (EFS)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content