-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add service ctr cleanup to PlayKubeDown #17821
Conversation
@edsantiago I think this should fix the race. I will re-run the test a bunch of times in the f37 aarch64 root environment to verify. |
This may be a stupid question, but what exactly is the purpose of If If Either way, I think the documentation needs to be fixed to specify what |
|
Seems most likely that the containers were marked for removal but not fully removed. Is the remote side waiting for the content to be removed? Is there a way to tell containers to be removed and return without waiting for them to be removed? |
I think the problem is that the serviceContainer is removed via worker queue. This is not a problem for local podman because it waits for all queue jobs to be completed before it exits. However in the remote case the service will finish the API response but there is no way of controlling what jobs were done by the worker queue. I think the client should make the equivalent to cc @vrothberg |
Very thorough analysis, @Luap99!
Alternatively, the service container could be removed in |
Thanks @vrothberg and @Luap99 - added service container clean up to PlayKubeDown() |
Since we can't guarantee when the worker queue will come and clean up the service container in the remote case when podman kube play --wait is called, cleanup the service container at the end of PlayKubeDown() to ensure that it is removed right after all the containers, pods, volumes, etc are removed. [NO NEW TESTS NEEDED] Signed-off-by: Urvashi Mohnani <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: umohnani8, vrothberg 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 |
Since we can't guarantee when the worker queue will come
and clean up the service container in the remote case when
podman kube play --wait is called, cleanup the service container
at the end of PlayKubeDown() to ensure that it is removed right
after all the containers, pods, volumes, etc are removed.
[NO NEW TESTS NEEDED]
Fixes #17803
Foxes #17820
Signed-off-by: Urvashi Mohnani [email protected]
Does this PR introduce a user-facing change?