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 1329423 - Skip /dev setup in container when it is bind mounted in
Summary: Skip /dev setup in container when it is bind mounted in
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
: 1329326 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-21 22:21 UTC by Scott Dodson
Modified: 2019-03-06 00:55 UTC (History)
9 users (show)

Fixed In Version: docker-1.9.1-32.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 15:17:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1329326 0 unspecified CLOSED Mounting /dev in a container causes "PTY allocation request failed on channel 0" on ssh login 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2016:1034 0 normal SHIPPED_LIVE Moderate: docker security, bug fix, and enhancement update 2016-05-12 19:15:01 UTC

Internal Links: 1329326

Description Scott Dodson 2016-04-21 22:21:31 UTC
Need this fix in docker-1.9.1
https://github.com/runcom/docker/commit/9a6e5e149d4acfff484ae0eb68334012370cbfca

Comment 1 Scott Dodson 2016-04-21 22:22:34 UTC
So that we can use /dev in privileged containers. See https://bugzilla.redhat.com/show_bug.cgi?id=1329326

Comment 3 Antonio Murdaca 2016-04-21 22:41:59 UTC
I had already opened a PR https://github.com/projectatomic/docker/pull/131. We'll go ahead and merge it. Thanks for testing.

Comment 4 Antonio Murdaca 2016-04-22 13:07:01 UTC
Scott does my fix breaks something? Just want to make sure the introduction of this fix does not regress on something else.

Comment 5 Scott Dodson 2016-04-22 13:13:21 UTC
We haven't had time to test it yet. I believe this is only known to have happened on atomic host which means we have to build a new os-tree to bring this in. Hopefully we can get it tested today.

Comment 6 Daniel Walsh 2016-04-22 14:10:11 UTC
Merged, lets do a build.

Comment 8 Scott Dodson 2016-04-22 18:28:28 UTC
*** Bug 1329326 has been marked as a duplicate of this bug. ***

Comment 11 Scott Dodson 2016-04-25 12:48:17 UTC
Reproducer, perform a containerized install of Origin using atomic host.

1) Provision an atomic host machine, below we assume the hostname is 'ose3-master.example.com'
2) git clone https://github.com/openshift/openshift-ansible
3) cat <<EOF> ~/bz1329424
[OSEv3:children]
masters
nodes

[OSEv3:vars]
deployment_type=openshift-enterprise
containerized=true
ansible_ssh_user=root

[masters]
ose3-master.example.com

[nodes]
ose3-master.example.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
EOF

4) ansible-playbook -i ~/bz1329424 openshift-ansible/playbooks/byo/config.yml

SSH into atomic host as non-root user.

Comment 12 Luwen Su 2016-05-03 12:30:59 UTC
I could verified this with steps below

Assume has a host 10.66.0.137
#useradd test
#passwd test
redhat

#docker run -v /dev/:/dev/ -it rhel:latest /bin/bash

Then SSH to the host with another machine
#ssh test.0.137

In previous version, i met
$ ssh test.3.137 -X
test.3.137's password: 
X11 forwarding request failed on channel 0
PTY allocation request failed on channel 0

in docker-1.9.1-38.el7.x86_64
$ ssh test.0.137 -X
test.0.137's password: 
X11 forwarding request failed on channel 0
Last login: Tue May  3 20:19:02 2016 from 10.66.70.123
[test@dhcp-0-137 ~]$ 


Just one question here:
Once the terminal fall in "PTY error", i can't recover it , like
* Use 1.9.1-30 mount the /dev in container -> PTY error
   * update to 1.9.1-38, container can' start with -v /dev/:/dev/ and still met the PTY error with non-root user via ssh

* Use 1.9.1-38 mount the /dev in container -> everything will be okay

I'd like to know is it expected

Comment 13 Daniel Walsh 2016-05-03 12:36:39 UTC
Yes this is what is expected.

Comment 14 Luwen Su 2016-05-03 15:39:51 UTC
(In reply to Daniel Walsh from comment #13)
> Yes this is what is expected.

thanks ! move to verified

Comment 16 errata-xmlrpc 2016-05-12 15:17:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-1034.html


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