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 994435 - Unable to add customised snmp Mib file to /usr/share/snmp/mibs/ location in the rhev-h. After persist also its not going to be available after reboot.
Summary: Unable to add customised snmp Mib file to /usr/share/snmp/mibs/ location in t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node
Version: 6.4
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: rc
: 6.4
Assignee: Joey Boggs
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-07 09:43 UTC by Udayendu Sekhar Kar
Modified: 2018-12-04 15:41 UTC (History)
16 users (show)

Fixed In Version: ovirt-node-3.0.1-2.el6
Doc Type: Bug Fix
Doc Text:
The /usr/share/snmp/mibs directory was not writeable under the read only root, therefore custom snmp mibs were unable to be installed.The /usr/share/snmp/mibs directory is now read/write which means files can be placed under /usr/share/snmp/mibs now.
Clone Of:
Environment:
Last Closed: 2014-01-21 19:48:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0033 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update 2014-01-22 00:14:30 UTC
oVirt gerrit 18583 0 None None None Never

Description Udayendu Sekhar Kar 2013-08-07 09:43:07 UTC
Description of problem:
Created a custom Mib file for the snmp on the rhev-h and added it to /usr/share/snmp/mibs/ directory and persisted it but post reboot the file is missing.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Virtualization Hypervisor release 6.4 (20130709.0.el6_4)

How reproducible:
100%

Steps to Reproduce:
# mount -o remount,rw /
# vi /usr/share/snmp/mibs/test-MIB.txt
# persist /usr/share/snmp/mibs/test-MIB.txt
# mount -o remount,ro /

Now reboot the host. Once the host will back you will not get the "test-MIB.txt" file but the entry is there under /config/files file.

Actual results:
After the host reboot the custom file is missing.

Expected results:
The custome file shouldn't erased after the server reboot as its already persisted.

Comment 2 Mike Burns 2013-08-14 13:19:16 UTC
devel thoughts

perhaps add this to the default persisted locations?  Can we do that in the plugin?  need to investigate why the file is getting dropped if it's persisted.

Comment 3 Joey Boggs 2013-08-27 01:39:34 UTC
http://gerrit.ovirt.org/18583

Comment 4 Joey Boggs 2013-08-27 01:41:01 UTC
The file wasn't being mounted correctly due to the irregular directory path under /usr/share. If it was under any of the rwtab entries it would work fine.

Comment 9 Cheryn Tan 2013-11-08 00:34:07 UTC
This bug is currently attached to errata RHBA-2013:15277. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes 

Thanks in advance.

Comment 10 Ying Cui 2013-11-11 03:07:37 UTC
Verified this bug on build rhevh-6.5-20131031.1.0, ovirt-node-3.0.1-7.el6.noarch, ovirt-node-plugin-snmp-3.0.1-7.el6.noarch.

Test steps:

# mount -o remount,rw /
# vi /usr/share/snmp/mibs/test-MIB.txt
# persist /usr/share/snmp/mibs/test-MIB.txt
# mount -o remount,ro /
# reboot RHEV-H
# cat /config/files | grep mib
/usr/share/snmp/mibs/test-MIB.txt
# pwd
/usr/share/snmp/mibs
# ls |grep test-MIB
test-MIB.txt

Test result:
1. the customised snmp mib file is persist successful after reboot rhevh.

Comment 12 errata-xmlrpc 2014-01-21 19:48:33 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-2014-0033.html


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