Bug 756701

Summary: oVirt boot parameters "netconsole_server" doesn't work
Product: Red Hat Enterprise Linux 6 Reporter: cshao <cshao>
Component: DocumentationAssignee: Laura Bailey <lbailey>
Status: CLOSED CURRENTRELEASE QA Contact: ecs-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: acathrow, apevec, bsarathy, gouyang, jboggs, jskeoch, leiwang, mburns, moli, ovirt-maint, syeghiay, ycui
Target Milestone: rcKeywords: Documentation, Reopened
Target Release: 6.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-08 17:18:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description cshao 2011-11-24 10:39:16 UTC
Description of problem:
oVirt boot parameters "netconsole" doesn't work

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

How reproducible:
100%

Steps to Reproduce:
1. Auto install RHEV-H with parameters "storage_init=/dev/mapper/3600*4fe storage_vol=::::: netconsole_server=$ip local_boot firstboot"
2. Boot into rescue mode, set password. reboot.
3. Enter logging menu, netconsole server address is blank.
  
Actual results:
oVirt boot parameters "netconsole" doesn't work

Expected results:
oVirt boot parameters "netconsole" should work

Additional info:
I think the causes of the problem is in the 570 line (/etc/init.dovirt-early), it should be : netconsole_server=*)

ovirt-early
============================================
    570             netconsole=*)
    571             i=${i#netconsole=}
    572             eval $(printf $i|awk -F: '{print "netconsole_server="$1; print "netconsole_port="$2;}')

============================================
# cat /proc/cmdline 
root=live:LABEL=Root ro rootfstype=ext2 rootflags=ro ksdevice=bootif processor.max_cstate=1 crashkernel=512M-2G:64M,2G-:128M rd_NO_LVM lang= nomodeset rd_NO_LUKS rd_NO_MD quiet elevator=deadline rhgb rd_NO_DM netconsole_server=10.66.11.91:6666

===========================================
cat /boot/grub/grub.conf 
default saved
timeout 5
hiddenmenu
title Red Hat Enterprise Virtualization Hypervisor (6.2-20111117.0)
    root (hd0,2)
    kernel /vmlinuz0 root=live:LABEL=Root ro rootfstype=ext2 rootflags=ro ksdevice=bootif processor.max_cstate=1 crashkernel=512M-2G:64M,2G-:128M rd_NO_LVM lang= nomodeset rd_NO_LUKS rd_NO_MD quiet elevator=deadline rhgb rd_NO_DM netconsole_server=10.66.11.91:6666
    initrd /initrd0.img

Comment 2 Guohua Ouyang 2011-11-25 02:17:40 UTC
The parameters should be netconsole=*, not netconsole_server=*, I tested netconsole=ip:port can work, hence close this bug so far.

If you find any different, please re-open the bug!

Comment 3 Guohua Ouyang 2011-11-25 05:37:06 UTC
re-open this bug because the doc is using "netconsole_server", so we need to make them consistence. 

http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Hypervisor_Deployment_Guide/sect-Deployment_Guide-RHEV_Hypervisor_Kernel_Parameters_and_Automated_Installation-Other_parameters.html


Mike, which parameter should be used? "netconsole" or "netconsole_server"? 
if use "netconsole", then we should open a Doc bug.
if use "netconsole_server", then need to modify ovirt-early script, include syslog and collectd also.

Comment 4 Alan Pevec 2011-11-28 12:08:14 UTC
(In reply to comment #3)
> http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Hypervisor_Deployment_Guide/sect-Deployment_Guide-RHEV_Hypervisor_Kernel_Parameters_and_Automated_Installation-Other_parameters.html
> 
> 
> Mike, which parameter should be used? "netconsole" or "netconsole_server"? 
> if use "netconsole", then we should open a Doc bug.

It's netconsole=server[:port] same like syslog parameter:

http://git.fedorahosted.org/git/?p=ovirt/node.git;a=commitdiff;h=7899044b4f1273caf2da234b2a6b71a5890773e2