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 795524 - RFE: add SNMP configuration to the TUI
Summary: RFE: add SNMP configuration to the TUI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node
Version: 6.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Joey Boggs
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 690679 798439 805574 (view as bug list)
Depends On: 785055 798439
Blocks: 748942 795527 801056
TreeView+ depends on / blocked
 
Reported: 2012-02-20 19:08 UTC by Perry Myers
Modified: 2016-04-26 14:47 UTC (History)
12 users (show)

Fixed In Version: ovirt-node-2.3.0-7.el6
Doc Type: Enhancement
Doc Text:
The Hypervisor user interface now exposes fields to support the configuration of Simple Network Management Protocol (SNMP) on the host.
Clone Of: 785055
: 795527 (view as bug list)
Environment:
Last Closed: 2012-07-19 14:18:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0741 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update 2012-07-19 18:10:46 UTC

Description Perry Myers 2012-02-20 19:08:32 UTC
+++ This bug was initially created as a clone of Bug #785055 +++

Description of problem:
There is currently no way to configure SNMP password in the TUI.  It's only available through autoinstall and through dropping to a shell and manually running the old bash script.

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

--- Additional comment from pmyers on 2012-02-20 14:07:49 EST ---

In addition, we need to remove the outdated ovirt-config-snmp script (and all other o-c-* scripts that have been replaced by .py implementations)

So this bug will combine:

* removing old o-c-* scripts
* exposing snmp.py configuration through the TUI including the ability to set SNMP 'root' password

Comment 2 Perry Myers 2012-02-21 13:42:38 UTC
*** Bug 690679 has been marked as a duplicate of this bug. ***

Comment 4 Mike Burns 2012-02-29 13:23:43 UTC
*** Bug 798439 has been marked as a duplicate of this bug. ***

Comment 5 Mike Burns 2012-02-29 13:26:14 UTC
remove double spacing in list box menu as discussed to free up space

http://gerrit.ovirt.org/2397

Joey, this should also remove the o-c-snmp script as well

Comment 6 Joey Boggs 2012-02-29 14:38:59 UTC
patch does indeed remove o-c-snmp

Comment 8 Ying Cui 2012-03-12 06:58:54 UTC
I have to re-assign this bug on build rhev-hypervisor6-6.3-20120307.2.el6.

Set snmp enabled and passwd by TUI.

The following issue need to be fixed:
1) # snmpwalk -v 3 -u root -a SHA -A redhat -x AES -X redhat -c public 10.66.11.190 sysDescr
No log handling enabled - using stderr logging
Error: passphrase chosen is below the length requirements of the USM (min=8).
snmpwalk:  (The supplied password length is too short.)
Error generating a key (Ku) from the supplied authentication pass phrase.

Excepted result: In TUI, There should prompt user that the password length should more than or equals to 8. 

2) After I set SNMP root password to 123456789... 
# snmpwalk -v 3 -u root  -l authPriv -a SHA -A 123456789 -x AES -X 123456789 -c public 10.66.11.190 sysDescr
No log handling enabled - using stderr logging
snmpwalk: Unknown user name (Sub-id not found: (top) -> sysDescr)

# cat /etc/sysconfig/snmpd
# snmpd command line options
# OPTIONS="-LS0-6d -Lf /dev/null -p /var/run/snmpd.pid"
createUser root SHA redhat AEScreateUser root SHA 123456789 AES[root@localhost admin]# 


3) # service snmpd restart
/etc/sysconfig/snmpd: line 3: createUser: command not found
Stopping snmpd:                                            [  OK  ]
Starting snmpd:                                            [  OK  ]

There should not display createUser info at here.

Comment 9 Marko Myllynen 2012-03-22 07:17:50 UTC
*** Bug 805574 has been marked as a duplicate of this bug. ***

Comment 12 Stephen Gordon 2012-03-29 19:36:33 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:
The Hypervisor user interface now exposes fields to support the configuration of Simple Network Management Protocol (SNMP) on the host.

Comment 14 Guohua Ouyang 2012-04-16 08:20:48 UTC
tested on 6.3-20120411.1, the service snmpd is not running after enable it on TUI.

[root@localhost admin]# service snmpd status
snmpd dead but subsys locked
[root@localhost admin]# cat /etc/sysconfig/snmpd 
# snmpd command line options
# OPTIONS="-LS0-6d -Lf /dev/null -p /var/run/snmpd.pid"
OPTIONS="-v -Lf /dev/null"
[root@localhost admin]# cat /etc/snmp/snmpd.conf
master agentx
dontLogTCPWrappersConnects yes
rwuser root auth .1
createUser root SHA  AES
[root@localhost admin]#

Comment 18 Guohua Ouyang 2012-04-28 02:50:39 UTC
tested on rhevh-6.3-20120426.2 build, the main function works now:
1. after enable snmp on tui, the service is running.
[root@localhost admin]# service snmpd status
snmpd (pid  7881) is running...

2. $ snmpwalk -v3 -u root -l authPriv -a SHA -A redhat123 -x AES -X redhat123 10.66.11.120 sysDescr
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain 2.6.32-268.el6.x86_64 #1 SMP Tue Apr 24 16:27:49 EDT 2012 x86_64




But there two additional things need to be handle:
1. if disable the snmp on tui, after apply, the snmp checkbox is still selected, it should be unselected.

2. after change the snmp root password, although the change reflect in local file, but it failed to auth with the new passwd. in below lines you can find it still works with the old passwd "redhat123", new passwd "redhat12" failed to auth.  

[root@localhost admin]# cat /etc/snmp/snmpd.conf
master agentx
dontLogTCPWrappersConnects yes
rwuser root auth .1
createUser root SHA redhat12 AES
[root@localhost admin]# snmpwalk -v3 -u root -l authPriv -a SHA -A redhat123 -x AES -X redhat123 10.66.11.120 sysDescr
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain 2.6.32-268.el6.x86_64 #1 SMP Tue Apr 24 16:27:49 EDT 2012 x86_64
[root@localhost admin]# snmpwalk -v3 -u root -l authPriv -a SHA -A redhat12 -x AES -X redhat12 10.66.11.120 sysDescr
No log handling enabled - turning on stderr logging
snmpwalk: Authentication failure (incorrect password, community or key) (Sub-id not found: (top) -> sysDescr)

Comment 34 errata-xmlrpc 2012-07-19 14:18:55 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-2012-0741.html


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