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 827408 - netconsole doesn't work after configured in TUI
Summary: netconsole doesn't work after configured in TUI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node
Version: 6.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Mike Burns
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-01 11:43 UTC by yuanquan chen
Modified: 2016-04-26 13:43 UTC (History)
10 users (show)

Fixed In Version: ovirt-node-2.5.0-3.el6
Doc Type: Bug Fix
Doc Text:
The netconsole service was not enabled by default, therefore console log messages were not automatically forwarded from the hypervisor to a configured remote host. Netconsole is now enabled by default, and all messages above the threshold specified in /proc/sys/kernel/printk are forwarded.
Clone Of:
Environment:
Last Closed: 2013-02-28 16:35:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0556 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update 2013-02-28 21:29:06 UTC

Description yuanquan chen 2012-06-01 11:43:30 UTC
Description of problem:
Configure the netconsole service in TUI, but it doesn't work.

After configuring the netconsole server ip and port as 6666 and execute the "nc -l -u 6666" on the configured receiver, do something to cause kernel printk message, such as "echo hello > /dev/kmsg",  insert some kernel module and so on. But the receiver can't get any kernel message from the rhev-h host. I check the /proc/sys/kernel/printk, the value is 1, change it to 7, then the receiver can get the kernel message of the rhev-h host.


Version-Release number of selected component (if applicable):
rhev-hypervisor6-6.3-20120531.0.el6


How reproducible:
100%

Steps to Reproduce:
1. install rhev-h and boot up
2. configure the netconsole server and port, apply it
3. use "nc -l -u 6666(the port you set)" to monitor the console message forwarded by rhev-h
4. "echo hello > /dev/kmsg" or insert some kernel module in rhev-h, see the output of "nc -l -u 6666" on the receiver
  
Actual results:
The receiver can't get any kernel message forwarded from rhev-h host. While the /proc/sys/kernel/printk value is 1 by default, change it to 7, the receiver can get the kernel message of rhev-h host


Expected results:
After configuring the netconsole service in TUI, the receiver can get the kernel message of rhev-h host directly, no need to change the printk value

Additional info:

Comment 2 Fabian Deutsch 2012-06-04 09:56:28 UTC
netconsoles purpose is to send all _console log messages_ via UDP to a remote host. And that seems to be working.

/proc/sys/kernel/printk defines the threshold what messages go to the console (and therefor netconsole too). 
The examples you gave above (echo abc > /dev/kmsg) are just not above the threshold and therefor not displayed on the console and send to the remote server, but logged to dmesg (which has a lower threshold).

syslog is the way to go to receive everything that goes to dmesg (AFAIK)

Comment 3 Fabian Deutsch 2012-06-04 10:12:13 UTC
This patch fixes a side problem: Netconsole is not enabled by default.

http://gerrit.ovirt.org/5027

Comment 10 errata-xmlrpc 2013-02-28 16:35:36 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-2013-0556.html


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