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.
Can you please summarize what is the problem with systemd there? I find it very hard to find any relevant information in that huge copy of the previous bug.
(In reply to Lukáš Nykrýn from comment #2)
> Can you please summarize what is the problem with systemd there? I find it
> very hard to find any relevant information in that huge copy of the previous
> bug.
sorry about that,
===========================================================================
agetty process on one of the node in my OSE cluster is consuming 100% CPU.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
42614 root 20 0 110036 844 720 R 100.0 0.0 1936:51 agetty
85852 root 20 0 976980 69320 29080 S 1.0 0.9 4:07.05 openshift
===========================================================================
based on http://post-office.corp.redhat.com/archives/aos-devel/2016-June/msg00635.html which is multiple systemd privileged container running on the host could be the cause to avoid this we tired the following.
we tried http://git.app.eng.bos.redhat.com/git/perf-dept.git/tree/docker/Dockerfiles/Dockerfile_rtp#n21 as fix which is nothing but,
rm -f /lib/systemd/system/systemd*udev* && rm -f /lib/systemd/system/getty.target
we need udev for lv creation, deleting it does not help in our case(https://bugzilla.redhat.com/show_bug.cgi?id=1348947#c15).
Agetty belong to util-linux package. And we really don't support running udev inside the container, since the kernel does not provide the ability to namespace /sys.
From your ps output:
/sbin/agetty --noclear --keep-baud console 115200 38400 9600 linux
It seems really strange, according to the man page the baud rate is a *comma-separated* list of one or more baud rates, should be:
"... console 115200,38400,9600 linux"
unfortunately RHEL7 agetty does not set any default speed when --keep-baud is specified and "next speed" algorithm is a little bit fragile, so it calls read() in loop without any speed change. This fragility is already fixed in upstream tree
(commits 8410cdd38ad06d0904ec3ba252336fecc4aff067 and 914047b498a377944699b59ec93deddd4de9d63d).
Anyway, your issue is agetty command line, try to use comma.
This seems to be a figment of how the agetty command line appears in ps output
/usr/lib/systemd/system/serial-getty@.service
uses:
ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
but our serial console appears in ps as:
root 2821 1 0 Jun28 ttyS0 00:00:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyS0 vt220
Sorry, you're right. It's agetty who modifies the command line (it uses strtok() for parsing....), I'll fix this stupidity, but this is not the issue. Please, ignore comment #5.
The problem is read() that returns no data. Why?
Unfortunately, there is not any fallback for this situation within agetty, but I guess exit() will not make users happy too.