-
Notifications
You must be signed in to change notification settings - Fork 59
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
podman: Invalid cross-device link with named volume #1168
Comments
Thanks for the simple reproducer. I was able to reproduce. This might be something that we need to engage the podman team on. For example I see containers/podman#13123 which touches on this particular failure. Maybe you're using |
nope, no output from |
asked @giuseppe to look into this..
he's still investigating.. |
I also see this error when trying to set up ScyllaDB so it's probably coming from their shared library, seastar. I doubt whatever seastar API making the |
@rhatdan do you think we need a mechanism to "relabel" volumes with the container quota projid? The issue is that a file in a directory owned by a different projid cannot be linked or renamed causing link(2) and rename(2) to fail with |
This issue is worked around upstream in containers/podman@d0b96a5 The workaround is to create the volume before you create the container(s) and specify
|
It appears that commit made it into podman |
The fix for this went into |
The fix for this went into |
The fix for this went into |
Describe the bug
Running a container in podman on fcos next, fails with an exdev error when it tries to rename a file mounted under a named volume to something in the same directory.
Reproduction steps
Steps to reproduce the behavior:
Failure during startup: std::__1::__fs::filesystem::filesystem_error (error system:18, filesystem error: rename failed: Invalid cross-device link [/var/lib/redpanda/data/redpanda/kvstore/0_0/snapshot.partial.1649900837775.a1ZO] [/var/lib/redpanda/data/redpanda/kvstore/0_0/snapshot])
Expected behavior
Container should restart without issue, being able to rename the file.
Actual behavior
Container dies with an odd error
System details
Bare Metal/QEMU/AWS/GCP/etc.
Proxmox VM
Fedora CoreOS version
next (v 36.20220410.1.1)
Ignition config
very sparse, just ssh keys, networkmanager configs (would be sanitized) and podman.socket.
Additional information
The container starts without issue if I point the directory to a bind mount instead of a named volume. I can only reproduce this on fcos, not on Arch Linux with podman 4.0.3, kernel 5.17.1 or centos 8 stream with podman 4.0.2.
The text was updated successfully, but these errors were encountered: