Skip to content
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

Feature Request: EFS Watchdog Service to Handle Parent Directory Moves of Mount Points #273

Open
mskanth972 opened this issue Mar 5, 2025 · 0 comments

Comments

@mskanth972
Copy link
Contributor

Description:
The EFS watchdog service currently terminates connections when a parent directory containing an EFS mount point is moved, even though the Linux system successfully updates the mount points. This creates issues during application installations that involve directory restructuring.

Current Behavior:

  1. When an EFS mount point's parent directory is moved:
    • Linux updates mount points correctly (reflected in /etc/mtab and /proc/mounts)
    • EFS watchdog service continues to reference old absolute path in state files
    • Watchdog terminates stunnel/efs-proxy connection when original path isn't found
    • File system becomes inaccessible

Reproduction Steps:

# Mount EFS
sudo mount -t efs -o iam,tls,accesspoint=fsap-xxx fs-xxx:/ efs/path1/mnt1/

# Verify mount
mount | grep nfs4
# Shows successful mount

# Move parent directory
mv ~/efs/path1 ~/efs/path2

# Try to access mount point
cat ~/efs/path2/mnt1/file1
# Process hangs due to terminated connection

Proposed Enhancement:
Enhance the watchdog service to:

  • Handle mount point path changes gracefully
  • Update state files when parent directories are moved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant