-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to mount multiple EFS volume with different regions? #101
Comments
Upon checking the relevant code that decides the efs-utils/src/mount_efs/__init__.py Lines 315 to 339 in 2abd13c
I see that it's possible to retrieve the region right from the EFS with fqdn format (passed to the mount command). I am wondering why the region from DNS Format got in the last priority? From dev/user perspective, if they pass the fqdn format (with region info in it), which is more explicit than the Wdyt @Cappuccinuo ? |
Also, If I understand the code correctly, I noticed weird (wrong?) implementation of get target region from legacy dns format efs-utils/src/mount_efs/__init__.py Lines 397 to 409 in 2abd13c
There is no case if |
Hey @bangau1 ,
#The region of the file system when mounting from on-premises or cross region.
#region = us-east-1
e.g. [ec2-user@ip-192-2-8-155 ~]$ sudo mount -t efs -o tls,mounttargetip=172.33.21.155 fs-deadbeef /mnt
[ec2-user@ip-192-2-8-155 ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 492676 0 492676 0% /dev
tmpfs 503448 0 503448 0% /dev/shm
tmpfs 503448 548 502900 1% /run
tmpfs 503448 0 503448 0% /sys/fs/cgroup
/dev/xvda1 8376300 1494688 6881612 18% /
tmpfs 100692 0 100692 0% /run/user/1000
tmpfs 100692 0 100692 0% /run/user/0
127.0.0.1:/ 9007199254739968 0 9007199254739968 0% /mnt
[mount]
dns_name_format = {az}.{fs_id}.efs.{region}.{dns_name_suffix}
dns_name_suffix = amazonaws.com
#The region of the file system when mounting from on-premises or cross region.
region = us-east-1 |
@Cappuccinuo I have two disks which I need to mount one of which is in another region. Setting that region in the config file then breaks mounting the other disk. A cli flag as @bangau1 mentioned would be pretty helpful in this case. |
Thanks @Shaan95 , if you have two disks in two different regions, that makes sense to have a region cli flag to differentiate them. We will have someone to take a look at this. |
Is this still the case where using efs-utils only works with efs in one region? I have a TGW peering with another region and account where I need to mount efs from two regions to one ec2 instance. In theory, it is possible to get around this single region limitation by just using 'normal' NFS mounting instead of the efs-utils package and hitting the mount target IPs but I'd like to use efs-utils if at all possible. |
Yes, it's still the case. We've been trying to work around this for a full day now without modifying the mount.efs code. Unfortunately, falling back to NFS doesn't work if you need to use an accesspoint (Such as in our case) |
One of the most confusing things about having to set the region in the config file, is that it completely ignores what region your AWS profile is in. If I have an AWS config file with two profiles, let's say If the EC2 instance I'm mounting from is in
But if I update it to use the access point ID and FS ID in west, it doesn't work, even if I use It only works with What would be much nicer is being to able to have two commands that at least look congruent:
(also the suggestions in #63) |
Hi,
I have a use case to use EFS in my EKS Cluster, where the EFS volumes to be mounted can be from different regions (not same region). I installed the efs csi driver, but turns out it relies to
efs-utils
.From
efs-utils
documentation here, the only way to inject EFSregion
value is by changing theefs-utils.conf
'sregion
config. But this limitation (sharing the same region configuration) doesn't fit with my use case, which I want is to be able to mount EFS Volume from different region but sharing the same efs-csi-driver installation.I want to ask whether it is possible to override
region
configuration using env var or certain cli flag?The text was updated successfully, but these errors were encountered: