Bug 719276 - netconsole fail to work with custom port
Summary: netconsole fail to work with custom port
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: vdsm22
Version: 5.7
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Dan Kenigsberg
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-06 10:26 UTC by Mohua Li
Modified: 2016-04-18 06:40 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-07 03:58:37 UTC
Target Upstream Version:


Attachments (Terms of Use)
netstat output from rhevm (30.22 KB, image/png)
2011-07-06 10:27 UTC, Mohua Li
no flags Details

Description Mohua Li 2011-07-06 10:26:11 UTC
Description of problem:

configure netconsole with user define port(30000), rhev-hypervisor status is up on rhev-m side, but although port 30000 not used by any app on rhevm side, rhevm still keep listen on the default port(25285), didn't aware the change(should listen on udp & port is 30000), so there is no printk info from rhev-hypervisor, vdsm/vdsm-reg should notify rhevm the change, detail you could see below, and the attachment for netstat ouput on rhevm side, 

as this is the communication  between rhev-hypervisor & rhev-m, so i set the component to vdsm



/etc/vdsm-reg/vdsm-reg.conf
.....................
#NetConsole settings

nc_host_name=10.66.8.141
nc_host_port=30000

/etc/sysconfig/netconsole(still not change)

DEV=rhevm
# The IP address of the remote syslog server to send messages to
SYSLOGADDR=10.66.72.87
# The listening port of the remote syslog daemon
SYSLOGPORT=30000




MainThread::DEBUG::2011-07-06 13:02:36,006::deployUtil::85::root::

MainThread::DEBUG::2011-07-06
13:02:36,006::deployUtil::701::root::netconsole_write_conf:
next_hop_hw 00:24:21:7F:B7:3A, remote_ip 10.66.72.87, remote_port
30000

MainThread::DEBUG::2011-07-06
13:02:36,007::deployUtil::650::root::_updateFileLine: entry. File:
/etc/sysconfig/netconsole key=DEV value=rhevm

MainThread::DEBUG::2011-07-06
13:02:36,009::deployUtil::669::root::_updateFileLine: replacing
DEV=rhevm

 with: DEV=rhevm



 MainThread::DEBUG::2011-07-06
 13:02:36,010::deployUtil::689::root::_updateFileLine: return: True

 MainThread::DEBUG::2011-07-06
 13:02:36,010::deployUtil::650::root::_updateFileLine: entry. File:
 /etc/sysconfig/netconsole key=SYSLOGMACADDR value=00:24:21:7F:B7:3A

 MainThread::DEBUG::2011-07-06
 13:02:36,012::deployUtil::669::root::_updateFileLine: replacing
 SYSLOGMACADDR=00:24:21:7F:B7:3A

  with: SYSLOGMACADDR=00:24:21:7F:B7:3A



  MainThread::DEBUG::2011-07-06
  13:02:36,012::deployUtil::689::root::_updateFileLine: return: True

  MainThread::DEBUG::2011-07-06
  13:02:36,012::deployUtil::650::root::_updateFileLine: entry. File:
  /etc/sysconfig/netconsole key=SYSLOGADDR value=10.66.72.87

  MainThread::DEBUG::2011-07-06
  13:02:36,014::deployUtil::669::root::_updateFileLine: replacing
  SYSLOGADDR=10.66.72.87

   with: SYSLOGADDR=10.66.72.87


 MainThread::DEBUG::2011-07-06
   13:02:36,014::deployUtil::689::root::_updateFileLine: return: True

   MainThread::DEBUG::2011-07-06
   13:02:36,015::deployUtil::650::root::_updateFileLine: entry. File:
   /etc/sysconfig/netconsole key=SYSLOGPORT value=30000

   MainThread::DEBUG::2011-07-06
   13:02:36,016::deployUtil::669::root::_updateFileLine: replacing
   SYSLOGPORT=3000

    with: SYSLOGPORT=30000



    MainThread::DEBUG::2011-07-06
    13:02:36,017::deployUtil::689::root::_updateFileLine: return: True

    MainThread::DEBUG::2011-07-06
    13:02:36,017::deployUtil::650::root::_updateFileLine: entry. File:
    /etc/vdsm/vdsm.conf key=netconsole_enable value=true

    MainThread::DEBUG::2011-07-06
    13:02:36,018::deployUtil::669::root::_updateFileLine: replacing
    netconsole_enable=true

     with: netconsole_enable=true



/var/log/messages, 

Jul  6 03:29:04 amd-1216-8-5 kernel: netconsole: local port 6666
Jul  6 03:29:04 amd-1216-8-5 kernel: netconsole: local IP 10.66.72.21
Jul  6 03:29:04 amd-1216-8-5 kernel: netconsole: interface rhevm
Jul  6 03:29:04 amd-1216-8-5 kernel: netconsole: remote port 30000
Jul  6 03:29:04 amd-1216-8-5 kernel: netconsole: remote IP 10.66.72.87
Jul  6 03:29:04 amd-1216-8-5 kernel: netconsole: remote ethernet
address 00:24:



Version-Release number of selected component (if applicable):
5.7-20110629

How reproducible:
always

Steps to Reproduce:
1.configure netconsole with custom port(30000)
2.approve rhev-hypervisor on rhevm side
3.check the netconsole 
  
Actual results:


Expected results:


Additional info:

Comment 1 Mohua Li 2011-07-06 10:27:37 UTC
Created attachment 511471 [details]
netstat output from rhevm

Comment 3 Itamar Heim 2011-07-06 10:59:29 UTC
netconsole is not part of rhev-m in 3.0 any longer and just use rhel's netconsole
if needed.


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