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 built-in ssh impl for all non-pty operations #22150

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

n1hility
Copy link
Member

Fixes #22075

Windows is not guaranteed to have the SSH feature installed, so prefer the use of the built-in ssh client for all operations other than podman machine ssh, which requires terminal pty logic. This restores previous behavior in 4.x.

Note this does not reuse the pkg/common binding client code since the usage patterns do not fully map, and would result in roughly the same amount of code.

Switches machine ssh handling to use the built-in ssh client in all non-pty cases (#22075)

@n1hility n1hility added the No New Tests Allow PR to proceed without adding regression tests label Mar 25, 2024
Copy link
Contributor

openshift-ci bot commented Mar 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: n1hility

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 Mar 25, 2024
@n1hility n1hility force-pushed the pref-builtin-ssh branch 2 times, most recently from d7c3675 to c3f5633 Compare March 25, 2024 01:22
Windows is not guaranteed to have the SSH feature installed, so prefer the use
of the built-in ssh client for all operations other than podman machine ssh,
which requires terminal pty logic. This restores previous behavior in 4.x.

Signed-off-by: Jason T. Greene <[email protected]>
@n1hility
Copy link
Member Author

/cherry-pick v5.0

@openshift-cherrypick-robot
Copy link
Collaborator

@n1hility: once the present PR merges, I will cherry-pick it on top of v5.0 in a new PR and assign it to you.

In response to this:

/cherry-pick v5.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@n1hility n1hility added the 5.0.1 label Mar 25, 2024
@n1hility
Copy link
Member Author

PTAL @baude @mheon @Luap99 @ashley-cui

Not urgent but want to make sure its considered for 5.0.1

@baude
Copy link
Member

baude commented Mar 25, 2024

LGTM and thanks!

@mheon
Copy link
Member

mheon commented Mar 25, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 25, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 099978e into containers:main Mar 25, 2024
94 checks passed
@openshift-cherrypick-robot
Copy link
Collaborator

@n1hility: new pull request created: #22162

In response to this:

/cherry-pick v5.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@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 Jun 24, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Jun 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
5.0.1 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. machine 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.

ssh required when starting HyperV machine
4 participants