Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1429675

Summary: Cannot have a terminal on power 8
Product: Red Hat Enterprise Linux 7 Reporter: Qian Cai <qcai>
Component: runcAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: bugproxy, fnovak, hannsj_uhl, jwboyer, lsm5, qcai
Target Milestone: rcKeywords: Extras, Patch
Target Release: 7.4   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: runc-1.0.0-7.1.gitf8ce01d.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-02 00:17:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1299988, 1428576    

Description Qian Cai 2017-03-06 20:06:36 UTC
Description of problem:
# runc run spec
## Confirmed terminal: true is there in config.json ##
# runc run root
container_linux.go:247: starting container process caused "process_linux.go:384: container init caused \"ioctl(tty, tcgets): inappropriate ioctl for device\""

Version-Release number of selected component (if applicable):
runc-1.0.0-3.rc2.1.el7exarch.ppc64le

How reproducible:
always

Comment 2 Qian Cai 2017-03-08 14:50:07 UTC
Bisected and reproduced upstream,
https://github.com/opencontainers/runc/issues/1364

Comment 3 IBM Bug Proxy 2017-03-11 16:20:20 UTC
------- Comment From fnovak.com 2017-03-11 11:18 EDT-------
reverse RH1429675 runc - broken console support on ppc64le

Comment 4 IBM Bug Proxy 2017-03-13 10:10:28 UTC
------- Comment From harshal.patil.com 2017-03-13 06:09 EDT-------
Please provide an output of following command,

stty -a

Comment 5 Qian Cai 2017-03-13 13:45:37 UTC
# stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^U; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

Comment 6 IBM Bug Proxy 2017-03-14 15:50:23 UTC
------- Comment From clnperez.com 2017-03-14 11:43 EDT-------
This looks like another case of a syscall not being defined for ppc64le.

> pwd
/home/christy/work/src/github.com/golang/go

> grep ONLCR src/syscall/ztypes_*
src/syscall/ztypes_linux_386.go:        ONLCR    = 0x4
src/syscall/ztypes_linux_amd64.go:      ONLCR    = 0x4
src/syscall/ztypes_linux_arm.go:        ONLCR    = 0x4

I'm adding Lynn from the toolchain team.

Comment 7 IBM Bug Proxy 2017-03-15 16:30:43 UTC
------- Comment From boger.com 2017-03-15 12:25 EDT-------
I have opened https://github.com/golang/go/issues/19560 for this problem.

Comment 8 IBM Bug Proxy 2017-03-28 14:40:23 UTC
------- Comment From clnperez.com 2017-03-28 10:34 EDT-------
FYI, I've proposed a few solutions and am working with the upstream community in the github issue that RH opened (https://github.com/opencontainers/runc/issues/1364) and Lynn is still looking into the go parts of the problem in https://github.com/golang/go/issues/19560.

Comment 9 IBM Bug Proxy 2017-04-06 23:00:18 UTC
------- Comment From clnperez.com 2017-04-06 18:57 EDT-------
Fixed merged upstream: https://github.com/opencontainers/runc/pull/1398

Comment 21 errata-xmlrpc 2017-08-02 00:17:16 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://access.redhat.com/errata/RHBA-2017:2350