Bug 1327647 - iptraf-ng doesn't provide statistics for infiniband network devices
Summary: iptraf-ng doesn't provide statistics for infiniband network devices
Keywords:
Status: CLOSED DUPLICATE of bug 1140211
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iptraf-ng
Version: 7.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Phil Cameron
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-15 14:29 UTC by marc skinner
Modified: 2016-05-31 16:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-31 16:04:03 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description marc skinner 2016-04-15 14:29:42 UTC
Description of problem:

When I run iptraf-ng 1.1.4 on my systems, I don't see any information provided from my infiniband network devices.  I have IpoB configured and working but iptraf-ng doesn't appear to provide statistics on those devices.


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

Both the RHEL 6 and RHEL 7 versions don't work:

RHEL 6: iptraf.x86_64 0:3.0.1-14.el6
RHEL 7: iptraf-ng-1.1.4-4.el7.x86_64


How reproducible:

Configure IpoB on RHEL 7 system, install iptraf-ng, run iptraf-ng and select any of the options to monitor networking information per interface.  Non infiniband interfaces work great!



Actual results:

0 statistics are displayed or updated


Expected results:

interface statistics would be collected, updated and displayed for infiniband devices.


Additional info:

IpoB network config file settings:

cat /etc/sysconfig/network-scripts/ifcfg-ib0 
DEVICE=ib0
ONBOOT=yes
IPADDR=192.168.X.Y
NETMASK=255.255.255.0
BOOTPROTO=static
NM_CONTROLLED=no
CONNECTED_MODE=yes
MTU=65520
TYPE=InfiniBand
IPV6INIT=no
USERCTL=no

lspci | grep -i infin
01:00.0 InfiniBand: Mellanox Technologies MT25208 InfiniHost III Ex (Tavor compatibility mode) (rev 20)

ibstat
CA 'mthca0'
	CA type: MT25208 (MT23108 compat mode)
	Number of ports: 2
	Firmware version: 4.8.200
	Hardware version: 20
	Node GUID: 0x0005ad00000c54b4
	System image GUID: 0x0005ad00000c54b7
	Port 1:
		State: Active
		Physical state: LinkUp
		Rate: 20
		Base lid: 16
		LMC: 0
		SM lid: 1
		Capability mask: 0x02590a68
		Port GUID: 0x0005ad00000c54b5
		Link layer: InfiniBand
	Port 2:
		State: Active
		Physical state: LinkUp
		Rate: 20
		Base lid: 15
		LMC: 0
		SM lid: 1
		Capability mask: 0x02590a68
		Port GUID: 0x0005ad00000c54b6
		Link layer: InfiniBand

Comment 2 Phil Cameron 2016-05-03 15:31:52 UTC
Do the counters in ifconfig work?

How is the HW configured? 
Also, lsmod will show the loaded modules.

Thanks,
Phil

Comment 3 marc skinner 2016-05-03 20:41:16 UTC
Yes, ifconfig out put works.

The HW is infiniband cards plugged into infiniband switch.  Configured for IPoIB.  So they have a TCP stack and IPV4 address assinged to them.  The cards are dedicated to run ISCSI for storage, but I can ping and ssh to all servers on the infiniband network.

cat /etc/modprobe.d/ipoib.conf
alias ib0 ib_ipoib

----------------



lsmod | grep ip
ip6table_filter        12815  0
ip6_tables             27025  1 ip6table_filter
iptable_filter         12810  0
ib_ipoib               91475  0
ib_cm                  46821  5 rdma_cm,ib_srp,ib_ucm,ib_srpt,ib_ipoib
ib_sa                  33950  5 rdma_cm,ib_cm,ib_srp,rdma_ucm,ib_ipoib
dm_multipath           23036  2 dm_service_time
ip_tables              27240  1 iptable_filter
ib_core                98787  15 rdma_cm,ib_cm,ib_sa,iw_cm,xprtrdma,ib_mad,ib_srp,ib_ucm,ib_iser,ib_srpt,ib_umad,ib_uverbs,ib_ipoib,ib_isert,ib_mthca
dm_mod                113292  82 dm_multipath,dm_log,dm_mirror

 lsmod | grep ib
libiscsi_tcp           25146  1 iscsi_tcp
ib_isert               55331  0
iscsi_target_mod      295398  1 ib_isert
ib_iser                52048  0
libiscsi               57233  3 libiscsi_tcp,iscsi_tcp,ib_iser
scsi_transport_iscsi    99909  4 iscsi_tcp,ib_iser,libiscsi
ib_srpt                52416  0
target_core_mod       371914  3 iscsi_target_mod,ib_srpt,ib_isert
ib_srp                 47430  0
scsi_transport_srp     20725  1 ib_srp
ib_ipoib               91475  0
ib_ucm                 22546  0
ib_uverbs              47183  2 ib_ucm,rdma_ucm
ib_umad                22129  0
rdma_cm                43697  4 xprtrdma,ib_iser,rdma_ucm,ib_isert
ib_cm                  46821  5 rdma_cm,ib_srp,ib_ucm,ib_srpt,ib_ipoib
ib_sa                  33950  5 rdma_cm,ib_cm,ib_srp,rdma_ucm,ib_ipoib
libcrc32c              12644  1 xfs
libahci                32031  1 ahci
libata                218730  2 ahci,libahci
ib_mthca              133332  0
ib_mad                 47817  5 ib_cm,ib_sa,ib_srpt,ib_umad,ib_mthca
ib_core                98787  15 rdma_cm,ib_cm,ib_sa,iw_cm,xprtrdma,ib_mad,ib_srp,ib_ucm,ib_iser,ib_srpt,ib_umad,ib_uverbs,ib_ipoib,ib_isert,ib_mthca
ib_addr                18923  3 rdma_cm,ib_core,rdma_ucm


lspci | grep -i infi
01:00.0 InfiniBand: Mellanox Technologies MT25204 [InfiniHost III Lx HCA] (rev 20)

Comment 4 Phil Cameron 2016-05-10 14:34:59 UTC
In looking through the code, infiniband is not currently supported at all. iptraf-ng currently supports ethernet and FDDI. iptraf-ng reads each packet and and parses the packet. Since the infiniband header is not known the counters are wrong. The support can be added and patches are greatly appreciated.

Comment 5 Phil Cameron 2016-05-31 16:04:03 UTC

*** This bug has been marked as a duplicate of bug 1140211 ***


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