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

[flake] remote,rootless: create+start+ps: container does not exist in database #7746

Closed
edsantiago opened this issue Sep 23, 2020 · 5 comments · Fixed by #8688
Closed

[flake] remote,rootless: create+start+ps: container does not exist in database #7746

edsantiago opened this issue Sep 23, 2020 · 5 comments · Fixed by #8688
Labels
flakes Flakes from Continuous Integration kind/bug Categorizes issue or PR as related to a bug. kind/test-flake Categorizes issue or PR as related to test flakes. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. remote Problem is in podman-remote stale-issue

Comments

@edsantiago
Copy link
Member

In window 1:

$ ./bin/podman system service --timeout=0

In window 2:

$ P() { ./bin/podman-remote "$@"; }
$ P create --name test1 --rm alpine foo;P start test1;P ps -aq
a7a5315b7a4e6d9b40e2955774197644fb771730721b4a9be1ac4128d47c242d
Error: executable file not found in $PATH: No such file or directory: OCI runtime command not found error
Error: container a7a5315b7a4e6d9b40e2955774197644fb771730721b4a9be1ac4128d47c242d does not exist in database: no such container

It's a flake (race condition): don't expect it to happen every time. For me it's one out of 3-5 runs on my laptop.

Rootless only, AFAICT: I could not get it to reproduce with P() { sudo ...}.

master @ 5cedd83 on f32.

While I'm at it, the error message is different between podman and podman-remote, does this matter?

podman: Error: unable to start container "911e628f4232690efc7a7efad770491312c94a4a4f8fb164feb53a1b41ef4a8b": executable file not found in $PATH: No such file or directory: OCI runtime command not found error
remote: Error: executable file not found in $PATH: No such file or directory: OCI runtime command not found error

Only seems to happen when creating an error container (foo, i.e. command not found). Does not happen with true ... except, now, as root!

$ P() { sudo ./bin/podman-remote "$@"; }
$ P create --name test1 --rm alpine true;P start test1;P ps -aq
3c9be0ca2306b17a63040c24a4dbea85a283fa4ff080fc3ad5ce5d1852158d2c
test1
Error: container 3c9be0ca2306b17a63040c24a4dbea85a283fa4ff080fc3ad5ce5d1852158d2c does not exist in database: no such container

(very very infrequently; it takes a lot of repetitions to trigger)

@edsantiago edsantiago added flakes Flakes from Continuous Integration kind/bug Categorizes issue or PR as related to a bug. remote Problem is in podman-remote labels Sep 23, 2020
@rhatdan rhatdan added the kind/test-flake Categorizes issue or PR as related to test flakes. label Oct 7, 2020
@github-actions
Copy link

github-actions bot commented Nov 7, 2020

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Nov 7, 2020

@edsantiago Any update on this issue?

@edsantiago
Copy link
Member Author

Issue is still present; failing about one in ten using reproducer in comment 0 (in a while loop):

fe1e51c49e5839fa85e999dd7fdae8b1ff96c139b827e4a530171b592baf86a4
Error: unable to start container "fe1e51c49e5839fa85e999dd7fdae8b1ff96c139b827e4a530171b592baf86a4": executable file `foo` not found in $PATH: No such file or directory: OCI not found
Error: container fe1e51c49e5839fa85e999dd7fdae8b1ff96c139b827e4a530171b592baf86a4 does not exist in database: no such container

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Dec 10, 2020

I would argue that this is a bug in the code, since the remove should not be happening at all. What is going on here, is the container is being removed some of the time. Not sure why it is not always being removed. I think the behaviour should be to leave the container in place. The --rm should only come into play if the start was successful. But this is difficult for us to implement.

@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flakes Flakes from Continuous Integration kind/bug Categorizes issue or PR as related to a bug. kind/test-flake Categorizes issue or PR as related to test flakes. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. remote Problem is in podman-remote stale-issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants