Bug 707912

Summary: net-snmp does not see mounted XFS filesystem
Product: Red Hat Enterprise Linux 6 Reporter: Karel Srot <ksrot>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: pasteur, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Prior this update, the snmpd daemon ignored XFS filesystems when populating HOST-RESOURCES-MIB::hrFSTable and these filesystems were simply not reported there. This update adds XFS filesystem support to HOST-RESOURCES-MIB::hrFSTable in snmpd. (BZ#707912).
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 17:11: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:
Embargoed:

Description Karel Srot 2011-05-26 10:19:18 UTC
Description of problem:

The same problem with XFS detection is on RHEL6
net-snmp-5.5-31.el6.x86_64


--- Copied from 654384 ----------

I have tested this bug with net-snmp-5.3.2.2-12.el5 (see reproducer
https://tcms.engineering.redhat.com/case/92807/)
but snmpd does not see the XFS filesystem while the old version does.

[root@rhel5 ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       5999168   1928576   3760936  34% /
/dev/vda1               101086     12547     83320  14% /boot
tmpfs                   513456         0    513456   0% /dev/shm
/dev/vdb             107374050928      7328 107374043600   1% /mnt/hugefs

[root@rhel5 ~]# rpm -q net-snmp
net-snmp-5.3.2.2-12.el5
[root@rhel5 ~]# snmpwalk -v2c -c public -v 1 127.0.0.1 .1.3.6.1.2.1.25.2.3.1 |
grep hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /boot

[root@rhel5 ~]# rpm -q net-snmp
net-snmp-5.3.2.2-9.el5
[root@rhel5 ~]# snmpwalk -v2c -c public -v 1 127.0.0.1 .1.3.6.1.2.1.25.2.3.1 |
grep hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Memory Buffers
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real Memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Swap Space
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /boot
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /mnt/hugefs

# snmpwalk -v2c -c public -v 1 127.0.0.1 hrFSTable | grep '\.3'
HOST-RESOURCES-MIB::hrFSIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrFSMountPoint.3 = STRING: "/mnt/hugefs"
HOST-RESOURCES-MIB::hrFSRemoteMountPoint.3 = ""
HOST-RESOURCES-MIB::hrFSType.3 = OID: HOST-RESOURCES-TYPES::hrFSOther
HOST-RESOURCES-MIB::hrFSAccess.3 = INTEGER: readWrite(1)
HOST-RESOURCES-MIB::hrFSBootable.3 = INTEGER: false(2)
HOST-RESOURCES-MIB::hrFSStorageIndex.3 = INTEGER: 6
HOST-RESOURCES-MIB::hrFSLastFullBackupDate.3 = STRING: 0-1-1,0:0:0.0
HOST-RESOURCES-MIB::hrFSLastPartialBackupDate.3 = STRING: 0-1-1,0:0:0.0

How reproducible:
always

Steps to Reproduce:
1. create and mount xfs filesystem
2. snmpwalk -v2c -c public -v 1 127.0.0.1 hrFSTable 
and check it is not listed
  
Actual results:
xfs filesystem is not listed as mounted

Expected results:
xfs fs is listed as mounted

Additional info:
Also not working with net-snmp-5.5-27.el6.x86_64 from RHEL6.0

Comment 3 Jan Safranek 2011-08-11 11:35:32 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior this update, the snmpd daemon ignored XFS filesystems when populating HOST-RESOURCES-MIB::hrFSTable and these filesystems were simply not reported there. This update adds XFS filesystem support to HOST-RESOURCES-MIB::hrFSTable in snmpd. (BZ#707912).

Comment 6 Tru Huynh 2011-10-24 19:46:46 UTC
regression from Red Hat Enterprise Linux 5, also listed at http://bugs.centos.org/view.php?id=5203

Comment 7 errata-xmlrpc 2011-12-06 17:11:53 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-2011-1524.html