Skip to content

Workaround the race condition in runc.#643

Closed
jankaluza wants to merge 1 commit intocontainers:mainfrom
jankaluza:json
Closed

Workaround the race condition in runc.#643
jankaluza wants to merge 1 commit intocontainers:mainfrom
jankaluza:json

Conversation

@jankaluza
Copy link
Member

The tests started failing randomly for me after upgrade to Fedora 43. I've found out that sometimes runc start fails with "cannot start a container that has stopped" despite the fact that runc state says it is in created state. It is fixed by running runc state.

This commit workarounds this issue until it is properly investigated and fixes so the tests pass.

@jnovy
Copy link
Collaborator

jnovy commented Mar 5, 2026

Thank you for your PR @jankaluza

Has this been handled on runc side yet @kolyshkin ?

@jankaluza
Copy link
Member Author

Hm, it seems this workaround did not work here in the CI tests. The good thing is this is not just an issue with my system - it can be reproduced also here. I'll add more debug output and also report that to runc.

@jankaluza
Copy link
Member Author

jankaluza commented Mar 5, 2026

Actually, the update I've pushed was wrong. Let's see what happens now with the latest one...

@jankaluza
Copy link
Member Author

opencontainers/runc#5151

The tests started failing randomly for me after upgrade to Fedora 43.
I've found out that sometimes `runc start` fails with  "cannot start
a container that has stopped" despite the fact that `runc state`
says it is in `created` state. It is fixed by running `runc state`.

This commit workarounds this issue until it is properly investigated
and fixes so the tests pass.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
@kolyshkin

This comment was marked as outdated.

@kolyshkin
Copy link
Collaborator

Looking at runc git log, one possible change that can theoretically result in a bug like this is opencontainers/runc@d9f2a24a but it's there since 1.2.0.

It is fixed by running runc state.

Looking into what runc state does -- it just reads a few files and reports, not changing anything at all; so I don't understand how it may help.

@kolyshkin
Copy link
Collaborator

opencontainers/runc#5151

My bad, somehow I missed this. Will try to repro

@jankaluza
Copy link
Member Author

jankaluza commented Mar 6, 2026

I'm closing this PR. I think there is no easy workaround for this probably. It just happens randomly. I think we can just live with that and wait for runc fix Conmon is not that heavily developed, so we can survive some time with broken tests on F-43.

@jankaluza jankaluza closed this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants