Skip to content

Sync: handle exit file#14830

Merged
openshift-ci[bot] merged 1 commit intocontainers:mainfrom
vrothberg:fix-14761
Jul 5, 2022
Merged

Sync: handle exit file#14830
openshift-ci[bot] merged 1 commit intocontainers:mainfrom
vrothberg:fix-14761

Conversation

@vrothberg
Copy link
Copy Markdown
Member

Make sure Sync() handles state transitions and exit codes correctly.
The function was only being called when batching which could render
containers in an unusable state when running concurrently with other
state-altering functions/commands since the state must be re-read from
the database before acting upon it.

Fixes: #14761
Signed-off-by: Valentin Rothberg vrothberg@redhat.com

Does this PR introduce a user-facing change?

No release notes needed as it's fixing a bug that hasn't been released yet.

None

Make sure `Sync()` handles state transitions and exit codes correctly.
The function was only being called when batching which could render
containers in an unusable state when running concurrently with other
state-altering functions/commands since the state must be re-read from
the database before acting upon it.

Fixes: containers#14761
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Jul 5, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 5, 2022
is "$output" $cname
}

@test "podman kill - concurrent stop" {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This deadlocks usually on first try with vanilla podman (i.e., without this patch).

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Jul 5, 2022

LGTM
@mheon PTAL

@baude
Copy link
Copy Markdown
Member

baude commented Jul 5, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 5, 2022
@openshift-ci openshift-ci bot merged commit 02179c5 into containers:main Jul 5, 2022
@vrothberg vrothberg deleted the fix-14761 branch July 5, 2022 13:33
@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 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

podman wait: new timeout, possibly deadlock

3 participants