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

Remove cidfile annotation from remote #23155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

inknos
Copy link
Collaborator

@inknos inknos commented Jul 1, 2024

Cidfile location should not be passed over on a remote connection. This way you will not mess the host configuraion on container removal.

Resolves: #21974

Does this PR introduce a user-facing change?

None

Cidfile location should not be passed over on a remote connection. This
way you will not mess the host configuraion on container removal.

Resolves: containers#21974

Signed-off-by: Nicola Sella <[email protected]>
Copy link
Contributor

openshift-ci bot commented Jul 1, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: inknos
Once this PR has been reviewed and has the lgtm label, please assign jakecorrenti for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@inknos
Copy link
Collaborator Author

inknos commented Jul 1, 2024

I am still unsure that this is the right approach. @Luap99 what do you think?

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

This fixes the remote issue but reintroduces the ones this was supposes to fix 3fee351

Overall I see no elegant fix, I think the easiest would be to drop the annotation on the service side in pkg/api/handlers/libpod/containers_create.go as this will not chnage the local code path

I wonder if removing the cid files is really the correct thing, compare #23106 It seems we no longer match docker because of that.
So maybe the easiest is to fix that issue and not deal with removing at all? But then again we need to consider if this would be a breaking change or not.
@mheon WDYT?

@mheon
Copy link
Member

mheon commented Jul 1, 2024

Was the removal added because of Quadlet/Systemd? I feel like it might have been...

@Luap99
Copy link
Member

Luap99 commented Jul 1, 2024

Was the removal added because of Quadlet/Systemd? I feel like it might have been...

Yes but we can change the units to do the removal in ExecStopPost=rm -f file. Also quadlet always assigns a name so we could drop these cidfile entirely there I guess but maybe there is a reason for them I am missing currently.

@mheon
Copy link
Member

mheon commented Jul 1, 2024

Dropping them entirely in Quadlet seems like a good idea. I think we risk regressions in unit files from generate systemd that are not regenerated on upgrade (which is really why Quadlet exists...) though.

Copy link

github-actions bot commented Aug 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman-remote run --cidfile results in files deleted on container host
3 participants