Skip to content

Conversation

@Luap99
Copy link
Member

@Luap99 Luap99 commented Apr 30, 2025

sigproxy: ignore if container already removed

If the container is already removed do not log a warning as this happens
in parallel so it is possible the container was already removed. The
flake was shown in #26017.


pkg/signal: rework CatchAll() behavior

Instead of catching all signals and then ignoring them inside the loop
again just don't register them in Notify() to begin with.


pkg/signal : ignore SIGTOP for signal proxy

It makes no sense to forward it, SIGSTOP cannot be handled by
userspace (like SIGKILL) and it didn't do anything before so this just
makes it more explicit.

Does this PR introduce a user-facing change?

The signal forwarding done by podman run is now more robust to races and no longer attempts to forward SIGCONT.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

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

The pull request process is described here

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 Apr 30, 2025
@Luap99 Luap99 added the No New Tests Allow PR to proceed without adding regression tests label Apr 30, 2025
Luap99 added 3 commits April 30, 2025 19:42
If the container is already removed do not log a warning as this happens
in parallel so it is possible the container was already removed. The
flake was shown in containers#26017.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Instead of catching all signals and then ignoring them inside the loop
again just don't register them in Notify() to begin with.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
It makes no sense to forward it, SIGSTOP cannot be handled by
userspace (like SIGKILL) and it didn't do anything before so this just
makes it more explicit.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@Luap99 Luap99 changed the title sigproxy: ignore SIGCONT and handle case where container is already removed sigproxy: ignore SIGSTOP and handle case where container is already removed Apr 30, 2025
@mheon
Copy link
Member

mheon commented Apr 30, 2025

LGTM

@rhatdan
Copy link
Member

rhatdan commented Apr 30, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 06b6842 into containers:main Apr 30, 2025
75 checks passed
@Luap99 Luap99 deleted the signal branch April 30, 2025 18:33
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Jul 30, 2025
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Jul 30, 2025
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. No New Tests Allow PR to proceed without adding regression tests release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants