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

Use the local value of TMPDIR when copying images over SSH. #21304

Closed
wants to merge 1 commit into from

Conversation

gordonmessmer
Copy link
Contributor

Does this PR introduce a user-facing change?


Changed the behavior of podman-image-scp, such that the local TMPDIR will be used for 
temporary files on the destination.

Copy link
Contributor

openshift-ci bot commented Jan 19, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gordonmessmer
Once this PR has been reviewed and has the lgtm label, please assign n1hility 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

@gordonmessmer
Copy link
Contributor Author

This PR doesn't fix #21239 , but it does make it easier for users to do something about the failure.

@rhatdan
Copy link
Member

rhatdan commented Jan 19, 2024

You need to add a test or add [NO NEW TESTS NEEDED], you need to document this change in the man pages. (I am not sure this is the correct thing to do. Would it be better to add a --remote-tmpdir option to make the user specify this.

@edsantiago
Copy link
Member

Sadly, this is probably not the best approach: $TMPDIR on my laptop/desktop != that on my remote server != etc.

@containers/podman-maintainers this is one of my stupid questions but why are we doing this in two stages (copy, load) instead of one (ssh host podman load -, with suitable input redirection)?

@Luap99
Copy link
Member

Luap99 commented Jan 22, 2024

@containers/podman-maintainers this is one of my stupid questions but why are we doing this in two stages (copy, load) instead of one (ssh host podman load -, with suitable input redirection)?

I have no idea but I agree that is how it should be done.

In any case I tend to agree that using the local TMPDIR on a remote server seems to be problematic

@gordonmessmer
Copy link
Contributor Author

I've opened PR #21420 to replace this one.

@rhatdan rhatdan closed this Jan 31, 2024
@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 Apr 30, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Apr 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants