RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1796486 - ssh breaks with docker version 1.13.1-108
Summary: ssh breaks with docker version 1.13.1-108
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On: 1797119
Blocks: 1186913
TreeView+ depends on / blocked
 
Reported: 2020-01-30 14:47 UTC by Suhaas Bhat
Modified: 2023-09-07 21:38 UTC (History)
10 users (show)

Fixed In Version: docker-1.13.1-109.gitcccb291.el7_7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-02 03:23:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Suhaas Bhat 2020-01-30 14:47:46 UTC
Description of problem:
We are not able to ssh to/between pods using the latest docker version package 
1.13.1-108

But older versions such as 1.13.1-104 and 1.13.1-103 appear to work just fine

Version-Release number of selected component (if applicable):
docker-1.13.1-108.git4ef4b30.el7.x86_64

How reproducible:
Fully reproducible

* Test on fresh install fully updated ocp3.11 cluster:
If I  rsh in to the mycluster-backrest-shared-repo-xxxxxx pod
And from there I attempt to ssh into the other pod mycluster-xxxxxx.
The results is a "Permission denied (publickey,keyboard-interactive)"

- Details:
sh-4.2$ ssh postgres@mycluster -v
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /home/pgbackrest/.ssh/config
debug1: /home/pgbackrest/.ssh/config line 1: Applying options for *
...
...
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive)

* Test with downgraded docker
sh-4.2$ hostname
mycluster-backrest-shared-repo-5f4f56d667-4kvmm
sh-4.2$ ssh postgres@mycluster -v
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /home/pgbackrest/.ssh/config
debug1: /home/pgbackrest/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
...
...
Authenticated to mycluster ([x.x.x.x]:2022).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00 want_reply 0
debug1: Sending environment.
-bash-4.2$ hostname
mycluster-7fb9f74d95-lmst7

Additionally, we did do some additional testing/troubleshooting today, and did find a change that appears to address the issue we are seeing, and therefore results in SSH working properly once again with Docker version 1.13.1-108  Specifically, we noticed that 'UsePAM' was set to 'no' in our SSHD configuration, so we went ahead and changed it to 'yes' (i.e. we updated our 'sshd_config' file with the following setting):

UsePAM yes

With this change in place, SSHD connections started working fine across all version of Docker we were testing with (1.13.1-108, 1.13.1-104 and 1.13.1-103).  Further, based on the following message in the 'sshd_config' configuration file, it appears as though this setting should be set to 'yes' to avoid unintended consequences.



Actual results:
ssh does not work without UsePAM set to yes ( Although it is not supported without setting to "yes" ) which was working fine on previous docker versions

Comment 3 Tom Sweeney 2020-01-30 23:47:15 UTC
I've a suspicion this is a runc issue related to https://bugzilla.redhat.com/show_bug.cgi?id=1796451 and https://bugzilla.redhat.com/show_bug.cgi?id=1795881

Comment 9 Tom Sweeney 2020-05-06 13:52:54 UTC
Jindrich or Lokesh, can you address this comment https://bugzilla.redhat.com/show_bug.cgi?id=1796486#c8 please?


Note You need to log in before you can comment on or make changes to this bug.