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

rm of a container in a pod using a volume breaks podman #3556

Closed
marcov opened this issue Jul 11, 2019 · 4 comments · Fixed by #3558
Closed

rm of a container in a pod using a volume breaks podman #3556

marcov opened this issue Jul 11, 2019 · 4 comments · Fixed by #3558
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

@marcov
Copy link
Collaborator

marcov commented Jul 11, 2019

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description
Creating a container in a pod, assigning a volume to it and then trying to remove it results in:

Error: error freeing lock for container 4edf[ CUT ]de358a6: no such file or directory

Steps to reproduce the issue:

  1. podman pod create --name foopod

  2. podman volume create foovolume

  3. podman create --volume foovolume:/foovolume --pod foopod alpine sleep 1234 && podman start -l

  4. podman stop -t 1 -l

  5. podman rm <partial ID of ctr>

  6. podman ps -a: container is stil listed as in DB

  7. podman rm <partial ID of ctr>:

Describe the results you received:

Error: error freeing lock for container 4edf[ CUT ]de358a6: no such file or directory

After this, it's not possible to remove the container from DB, unless something like container eviction is used.

Output of podman version:
144567b42dba2c8c426538a4b5fe7d718b43284a

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 11, 2019
@marcov
Copy link
Collaborator Author

marcov commented Jul 11, 2019

/cc @saschagrunert

@mheon
Copy link
Member

mheon commented Jul 11, 2019

Eeek. Looking.

@mheon
Copy link
Member

mheon commented Jul 11, 2019

Found it.

mheon added a commit to mheon/libpod that referenced this issue Jul 11, 2019
Using pod removal worked, but container removal was missing the
most critical step - the actual removal. Must have been
accidentally removed during a refactor.

Fixes containers#3556

Signed-off-by: Matthew Heon <[email protected]>
@mheon
Copy link
Member

mheon commented Jul 11, 2019

#3558 to fix. I think this one was my fault - oops.

@github-actions 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 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants