-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cannot remove NFS volumes created by podman volume create #4247
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
openshift-ci-robot
added
the
kind/bug
Categorizes issue or PR as related to a bug.
label
Oct 13, 2019
toddhpoole
changed the title
Cannot remove NFS volumes created by podman create volume
Cannot remove NFS volumes created by podman volume create
Oct 13, 2019
This looks like a bug. |
The volume does not appear to actually be mounting which is why we get an
EINVAL. Easy solution is to catch that and ignore it, but handing real
unmount errors in a way that still allows the volume to be removed needs to
happen as well.
…On Sun, Oct 13, 2019, 07:02 Daniel J Walsh ***@***.***> wrote:
This looks like a bug.
@mheon <https://github.com/mheon> PTAL
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4247>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCH7BXHV7W3JXC52U7TQOL543ANCNFSM4JAFIHGA>
.
|
mheon
added a commit
to mheon/libpod
that referenced
this issue
Oct 14, 2019
Also, ensure that we don't try to mount them without root - it appears that it can somehow not error and report that mount was successful when it clearly did not succeed, which can induce this case. We reuse the `--force` flag to indicate that a volume should be removed even after unmount errors. It seems fairly natural to expect that --force will remove a volume that is otherwise presenting problems. Finally, ignore EINVAL on unmount - if the mount point no longer exists our job is done. Fixes: containers#4247 Fixes: containers#4248 Signed-off-by: Matthew Heon <[email protected]>
This was referenced Oct 19, 2019
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 23, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Based on our reading of the 1.6.0 changelog,
podman volume create
can now "create and mount volumes with options, allowing volumes backed by NFS." When we try to exercise this feature and create an NFS-backed volume, we're then unable to remove it.Documentation covering NFS volumes is non-existent, so if this is user error, please advise. Either way, expanding the Examples section of
podman-volume-create.1.md
andpodman-volume-rm.1.md
with more examples, including several NFS ones, would be helpful.Steps to reproduce the issue:
podman
is aware of the volume.Describe the results you received:
Unable to remove the volume; received following error message:
Error: error unmounting volume test_vol_name: error unmounting volume test_vol_name: invalid argument
Describe the results you expected:
Volume removed; no error message received.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Fresh minimal install of Fedora 30 with
yum -y install vim nfs-utils podman buildah
.Exports are visible to host:
Exports can be mounted outside of podman using
mount 192.168.2.126:/exports/test /mnt/test
.The text was updated successfully, but these errors were encountered: