Bug 573834
Summary: | SNMP APC agent returns success with bad IP address | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Lon Hohberger <lhh> | ||||
Component: | cman | Assignee: | Jan Friesse <jfriesse> | ||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 5.5 | CC: | ccaulfie, cluster-maint, djansa, edamato, jfriesse, jkortus, rlerch | ||||
Target Milestone: | rc | Keywords: | Regression | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | cman-2_0_115-34_el5 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
User use new SNMP FA with password option (used for SNMP v3) and enters password shorter then 8 characters.
Consequence
Fence agent returns invalid return value. In all cases, it return off, even if host doesn't exist and/or host is on.
Fix
Workaround call of snmpget/snmpwalk so if Error string is present, error is returned form FA.
Result
If password is shorter then 8 characters, proper error is returned.
|
Story Points: | --- | ||||
Clone Of: | 532922 | ||||||
: | 574027 574059 (view as bug list) | Environment: | |||||
Last Closed: | 2010-03-30 08:38:11 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 532922, 541103, 574027, 574059 | ||||||
Attachments: |
|
Description
Lon Hohberger
2010-03-15 21:01:55 UTC
Created attachment 400429 [details]
Proposed patch
Proposed patch, committed to git master branch as fa9d0561d813b2d2002623e0aad665a5949fcc59
Net-SNMP command-line utilities have interesting "feature" causing too short pass-phrase (shorter then 8 characters) write error but sadly, not return error code. In such case, fencing can be considered successful even if it is not.
Patch fixes this by:
- Pass v3 options only for v3 mode
- Search for Error string in snmpcmd output
Commited in RHEL55 branch as 78e7ffd2488b53e627482e78d9f7a23d0b4ba514 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: Cause: User use new SNMP FA with password option (used for SNMP v3) and enters password shorter then 8 characters. Consequence Fence agent returns invalid return value. In all cases, it return off, even if host doesn't exist and/or host is on. Fix Workaround call of snmpget/snmpwalk so if Error string is present, error is returned form FA. Result If password is shorter then 8 characters, proper error is returned. works as expected now, tested with snmpv1 and snmpv3. cman-2.0.115-34.el5 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0266.html |