Bug 861152

Summary: simfs missing in hrStorage in an OpenVZ container
Product: Red Hat Enterprise Linux 6 Reporter: Romain LE DISEZ <romain>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: Dalibor Pospíšil <dapospis>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: dapospis
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: net-snmp-5.5-44.el6 Doc Type: Bug Fix
Doc Text:
same as #846532
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 10:27:44 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:
Attachments:
Description Flags
Add support for simfs none

Description Romain LE DISEZ 2012-09-27 16:10:54 UTC
On RHEL 6.3, with the default net-snmp package (net-snmp 1:5.5-41.el6_3.1), I can't get the root partition of an OpenVZ container via SNMP. This bug makes the monitoring of diskspace impossible.

>>>>>>>>>>>>>>>>>>>>>>>
# snmpwalk  -v 2c -c public  server.example.com  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
<<<<<<<<<<<<<<<<<<<<<<<


If I recompile the SRPM after I disabled the application of Patch23: net-snmp-5.5-hrFSTable-indexes.patch in the SPEC file, everything works fine, I can monitor the diskspace.

>>>>>>>>>>>>>>>>>>>>>>>
# snmpwalk  -v 2c -c public  server.example.com  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: /
<<<<<<<<<<<<<<<<<<<<<<<

(the following does not apply anymore when Patch23 is not applied)
Patch30: net-snmp-5.5-gfs.patch
Patch46: net-snmp-5.5-xfs.patch
Patch61: net-snmp-5.5-hrStorage-realStorageUnits.patch
Patch62: net-snmp-5.5-hrStorage-realStorageUnits2.patch
Patch63: net-snmp-5.5-hrStorage-fs.patch


This bug appeared in RHEL 5.7

I am a user of CentOS, the problem is also in Fedora. I hadn't tested on RHEL but I'm pretty sure it has the same bug.

Comment 2 Romain LE DISEZ 2012-10-01 16:16:27 UTC
Created attachment 619864 [details]
Add support for simfs

I'm not an net-snmp expert, but this patch works for me. I just used the one for XFS as a base.

Comment 4 RHEL Program Management 2012-10-08 07:19:13 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 9 errata-xmlrpc 2013-02-21 10:27:44 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-2013-0421.html