Bug 1329326 - Mounting /dev in a container causes "PTY allocation request failed on channel 0" on ssh login
Summary: Mounting /dev in a container causes "PTY allocation request failed on channel...
Keywords:
Status: CLOSED DUPLICATE of bug 1329423
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-21 15:45 UTC by Brenton Leanhardt
Modified: 2016-07-04 00:45 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-22 18:28:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1329423 0 unspecified CLOSED Skip /dev setup in container when it is bind mounted in 2021-02-22 00:41:40 UTC

Internal Links: 1329423

Description Brenton Leanhardt 2016-04-21 15:45:00 UTC
Description of problem:

In order to use some Kubelet features when running containerized /dev must be mounted in.  However, this appears to break non-root ssh logins and yields a "PTY allocation request failed on channel 0" error.

Version-Release number of selected component (if applicable):

docker-1.9.1-25.el7
openshift v3.2.0.12
kubernetes v1.2.0-36-g4a3f9c5

How reproducible:


Steps to Reproduce:
1. Containerized OSE installation
2. SSH in as non-root

Additional info:

We thought this was fixed in docker 1.9 but it might have been fixed in docker 1.10.  If we don't mount in /dev the Kubelet can not use several storage plugins.

Comment 1 Brenton Leanhardt 2016-04-21 15:49:22 UTC
We talked about this on irc a few weeks ago but failed to formally file a bug.  Do you (or anyone) know if this can be fixed in docker 1.9?

Comment 2 Scott Dodson 2016-04-21 22:30:57 UTC
Treating this as a bug to remove /dev mount from containerized node installation. I've opened https://bugzilla.redhat.com/show_bug.cgi?id=1329423 to ensure docker gets fixed.

Comment 3 Scott Dodson 2016-04-22 18:28:28 UTC
This is being fixed in docker itself so marking this a dupe.

*** This bug has been marked as a duplicate of bug 1329423 ***


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