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 1065007 - /dev/console doesn't ouput to ttyS0
Summary: /dev/console doesn't ouput to ttyS0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rhel-guest-image
Version: 7.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Joey Boggs
QA Contact: Jaroslav Henner
URL:
Whiteboard:
Depends On:
Blocks: 1075125
TreeView+ depends on / blocked
 
Reported: 2014-02-13 17:08 UTC by Jaroslav Henner
Modified: 2015-11-04 16:58 UTC (History)
6 users (show)

Fixed In Version: rhel-guest-image-7.0-20140227.0
Doc Type: Bug Fix
Doc Text:
OpenStack creates virtual machines with a serial port, reads the output from the port and keeps a buffer of several last lines written on the serial console. However, because the output of scripts in the cloud-init packages as well as many other logs was displayed on the system console (/dev/console), this content could be lost. With this update, the /dev/ttyS0 file has been set as an alias for /dev/console, which is the first serial port. As a result, could-init sends the output to the serial console instead the system console, and these messages can therefore be read by OpenStack as expected.
Clone Of:
: 1075125 (view as bug list)
Environment:
Last Closed: 2014-06-12 15:32:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1278084 0 medium CLOSED kernel logs (/dev/console) are not routed to /dev/ttyS0 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2014:0754 0 normal SHIPPED_LIVE rhel-guest-image bug fix and enhancement update 2014-06-12 19:32:28 UTC

Internal Links: 1278084

Description Jaroslav Henner 2014-02-13 17:08:43 UTC
Description of problem:
cloud-init and many other logs are directed to /dev/console. OpenStack creates VMs with a serial port, reads it and keeps a buffer of several last lines written there. the cloud-image should be configured so that the /dev/console is an "alias" of /dev/ttyS0

Version-Release number of selected component (if applicable):
rhel-server-kvm-7.0-20131217.0

How reproducible:
always

Steps to Reproduce:
1. in the booted image, try
# echo ttyS0 > /dev/ttyS0 
# echo console > /dev/console 
2. on your laptop, try
3. also, make sure the cloud-init related  messages, as the key fingerprints are output to the ttyS0, so one can safely add them to his known_hosts

Actual results:
> nova console-log --length 5 rhel-7-test               
[ 1239.470257] device-mapper: table: 252:0: linear: dm-linear: Device lookup failed
[ 1239.471055] device-mapper: ioctl: error adding target to table
ttyS0


Expected results:
...
ttyS0
console

Additional info:

Comment 3 yuliu 2014-03-03 03:09:47 UTC
Version: rhel-guest-image-7.0-20140227.0.x86_64.qcow2
Actual results:

[root@dhcp-10-124 rc3.d]# ttyS0
console

[root@dhcp-10-124 rc3.d]# echo ttyS0 >/dev/ttyS0
ttyS0
[root@dhcp-10-124 rc3.d]# echo console >/dev/console
console
[root@dhcp-10-124 rc3.d]#

And also the cloud-init related messages are output to ttyS0:
[root@dhcp-10-124 ~]# cloud-init[585]: 2014-03-02 22:00:43,462 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [12/120s]: request error [[Errno 113] No route to host]

We can see messages and logs are output to ttyS0.

Comment 4 Wei Shi 2014-03-11 08:47:38 UTC
Jaroslav,
  Do you need this bug also been fixed in rhel6? If so please clone it to rhel6.

  We can reproduce this bug on rhel-guest-image-6.5-20140307.0.x86_64.qcow2
  So I don't think it's a regression bug, do you agree?

Comment 5 Jaroslav Henner 2014-03-11 14:31:05 UTC
Yes, I would like to have it sending the messages to /dev/ttyS0 on all 6.4 6.5 and 7.0

It used to be working like that on 6.4 and 6.5, sot this is a regression.

Comment 7 errata-xmlrpc 2014-06-12 15:32:58 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.

http://rhn.redhat.com/errata/RHBA-2014-0754.html


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