Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1278084 - kernel logs (/dev/console) are not routed to /dev/ttyS0
kernel logs (/dev/console) are not routed to /dev/ttyS0
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance (Show other bugs)
unspecified
x86_64 Linux
medium Severity medium
: GA
: 5.6.0
Assigned To: Joe Vlcek
Jeff Teehan
openstack:security
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-04 11:46 EST by Jaroslav Henner
Modified: 2016-10-03 12:18 EDT (History)
5 users (show)

See Also:
Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 11:02:26 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Unknown


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Jaroslav Henner 2015-11-04 11:46:52 EST
Description of problem:

The kernel logs and logs from other facilities are routed to /dev/console (like echo "Hello world" > /dev/console), including the cloud-init. 

OpenStack is buffering the outputs to /dev/ttyS0 and can display the log for purpose of debugging for example, but the appliance is not configured so that the /dev/console writes are writing to /dev/ttyS0, but only to /dev/tty0 (terminal).

Please set the kernel commandline so that the logs will go to the /dev/ttyS0.


Version-Release number of selected component (if applicable):
ManageIQ-devel-201510300944-3f219bbd63


How reproducible:
always


Steps to Reproduce:
1. boot the instance. In case of OpenStack boot:
nova boot --image ManageIQ-devel-201510300944-3f219bbd63 --flavor m1.medium --key-name jhenner test --user-data test_data --nic net-id=bbc9a15a-4cc3-4310-b37c-6d439d9ef995 

2. ssh to the appliance, execute "date > /dev/console"
3. nova console-log test

Actual results:
no output

Expected results:
kernel boot process and other logs
+ actual date

Additional info:
Comment 2 Jaroslav Henner 2015-11-04 11:58:49 EST
Fix is to add this to the kernel cmdline

console=tty0 console=ttyS0,115200n8
Comment 3 Jaroslav Henner 2015-11-09 15:08:20 EST
The above is not actually a complete fix. The init process is not writing to /dev/console for some reason. I have no idea why. I am systemd noob.
Comment 4 Jaroslav Henner 2015-11-19 11:31:27 EST
The other actions I did in order to display more info was to remove some configs like 

/etc/cloud/cloud.cfg.d/05_logging.cfg
/etc/cloud/cloud.cfg.d/10_miq_logging.cfg

and remove the rhgb and quiet from the kernel cmdline.
Comment 5 Joe Vlcek 2016-02-23 15:00:40 EST
This bug was originally reported here:
  https://bugzilla.redhat.com/show_bug.cgi?id=1104230

but was blocked by:
  https://bugzilla.redhat.com/show_bug.cgi?id=1139262

Now that the blocking BZ, 1139262, has been resolved this
BZ can be resolved by adding the following the the base-rhos.ks:

-bootloader --location=mbr --driveorder=vda --append="crashkernel=auto rhgb quiet"
+bootloader --location=mbr --driveorder=vda --append="crashkernel=auto rhgb quiet console=tty0 console=ttyS0,115200n8"
Comment 7 CFME Bot 2016-03-01 14:20:20 EST
New commit detected on ManageIQ/manageiq-appliance-build/master:
https://github.com/ManageIQ/manageiq-appliance-build/commit/60416340f27e3c8f34276ad8eb6ec106c3bd9cb8

commit 60416340f27e3c8f34276ad8eb6ec106c3bd9cb8
Author:     Joe VLcek <jvlcek@redhat.com>
AuthorDate: Mon Feb 29 16:37:16 2016 -0500
Commit:     Joe VLcek <jvlcek@redhat.com>
CommitDate: Mon Feb 29 16:37:16 2016 -0500

     Direct /dev/console to /dev/ttyS0 for openstack
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1278084

 kickstarts/base.ks.erb                     | 3 +--
 kickstarts/partials/main/bootloader.ks.erb | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
 create mode 100644 kickstarts/partials/main/bootloader.ks.erb
Comment 8 CFME Bot 2016-03-01 17:50:14 EST
New commit detected on cfme_productization/master:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme_productization.git;a=commit;h=cd35c43ddf2ccd6588f94c99b6e3116d2d771d3f

commit cd35c43ddf2ccd6588f94c99b6e3116d2d771d3f
Merge: 09504cb 2bc09e2
Author:     Jason Frey <jfrey@redhat.com>
AuthorDate: Tue Mar 1 17:34:18 2016 -0500
Commit:     Jason Frey <jfrey@redhat.com>
CommitDate: Tue Mar 1 17:34:18 2016 -0500

    Merge branch 'bz_1278084' into 'master'
    
    Direct /dev/console to /dev/ttyS0 for openstack
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1278084
    
    https://github.com/ManageIQ/manageiq-appliance-build/pull/100
    
    See merge request !193

 manageiq-appliance-build/productization/kickstarts/base.ks.erb         | 3 +--
 .../productization/kickstarts/partials/main/bootloader.ks.erb          | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 9 CFME Bot 2016-03-01 17:50:18 EST
New commit detected on cfme_productization/master:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme_productization.git;a=commit;h=2bc09e2a1791d214c1a7d6ab5f2dc2ba58d9407b

commit 2bc09e2a1791d214c1a7d6ab5f2dc2ba58d9407b
Author:     Joe VLcek <jvlcek@redhat.com>
AuthorDate: Tue Mar 1 17:04:04 2016 -0500
Commit:     Joe VLcek <jvlcek@redhat.com>
CommitDate: Tue Mar 1 17:12:30 2016 -0500

    Direct /dev/console to /dev/ttyS0 for openstack
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1278084
    
    https://github.com/ManageIQ/manageiq-appliance-build/pull/100

 manageiq-appliance-build/productization/kickstarts/base.ks.erb         | 3 +--
 .../productization/kickstarts/partials/main/bootloader.ks.erb          | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
 create mode 100644 manageiq-appliance-build/productization/kickstarts/partials/main/bootloader.ks.erb
Comment 10 Jeff Teehan 2016-04-28 14:20:40 EDT
Verified with 5604 on 10.16.6.70
Comment 12 errata-xmlrpc 2016-06-29 11:02:26 EDT
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-2016:1348

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