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

podman stop fails #2993

Closed
matthiasclasen opened this issue Apr 23, 2019 · 3 comments · Fixed by #2994
Closed

podman stop fails #2993

matthiasclasen opened this issue Apr 23, 2019 · 3 comments · Fixed by #2994
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@matthiasclasen
Copy link

Seeing this in a recent rawhide (podman-1.3.0-17.dev.gitbf5ffda.fc31.x86_64):

$ sudo podman stop --all
Error: can only stop created, running, or stopped containers. 4ce604a830f62a37ad71eca9b43c78cb2d50d96598e14711032c6d238dd522fb in state configured: container state improper

If this is caused by my containers being created by a previous podman release, may I suggest that your testsuite needs to cover this case: create a container with an older version, and verify that the tested podman can handle it.

These are pets, so I'm not prepared to shoot them everytime you push a new podman into rawhide...

@mheon
Copy link
Member

mheon commented Apr 23, 2019

Pretty sure this isn't related to the upgrade - we just regressed on how we choose containers for podman stop (probably happened when we migrated to remote).

@baude @jwhonce We're using GetContainersByContext() to retrieve all containers to act on for stop, but we're not filtering the results to only running containers, so we try and stop containers that are only configured.

@mheon
Copy link
Member

mheon commented Apr 23, 2019

Potential solution: make stop --all ignore not only ErrCtrStopped but also ErrCtrStateInvalid

@mheon
Copy link
Member

mheon commented Apr 23, 2019

#2994 should fix

@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
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.

2 participants