Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1327647

Summary: iptraf-ng doesn't provide statistics for infiniband network devices
Product: Red Hat Enterprise Linux 7 Reporter: marc skinner <mskinner>
Component: iptraf-ngAssignee: Phil Cameron <pcameron>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: aloughla, atragler, mleitner, rkhan, tcameron
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-31 16:04:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***