Bug 493165 - group_tool ls fence returns one for fence id ZERO
Summary: group_tool ls fence returns one for fence id ZERO
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cman
Version: 5.3
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: David Teigland
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks: 493207 503730
TreeView+ depends on / blocked
 
Reported: 2009-03-31 20:21 UTC by Eduardo Damato
Modified: 2018-10-27 13:50 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
- cause: command "group_tool ls fence default" - consequence: command reports the group does not exist, when the group does exist but has zero id - fix: group_tool checks for name instead of id - result: group_tool ls now correctly reports about a group even if the group has zero id
Clone Of:
: 493207 (view as bug list)
Environment:
Last Closed: 2009-09-02 11:06:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix (821 bytes, patch)
2009-03-31 20:23 UTC, Lon Hohberger
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:1341 0 normal SHIPPED_LIVE Low: cman security, bug fix, and enhancement update 2009-09-01 10:43:16 UTC

Description Eduardo Damato 2009-03-31 20:21:55 UTC
Description of problem:

In some occasions groupd allows the fence domain to be ZERO:

# group_tool
type             level name          id       state       
fence            0     default       00000000 none        
[1 2 3]

....

When that happens queries to the 'default fence domain' will fail:

# group_tool ls fence default
groupd has no information about the specified group
# echo $?
1
# group_tool ls fence default &> /dev/null
# echo $?
1

Because such queries are used by rgmanager, this causes rgmanager to hang on startup.

How reproducible:

Every time that the fence domain id is zero.

Steps to Reproduce:

Startup the cluster and obtain id zero for the fence domain. This is not the normal case.

Actual results:

rgmanager blocks. 

Expected results:

rgmanager works.

Comment 1 Lon Hohberger 2009-03-31 20:23:49 UTC
Created attachment 337401 [details]
Fix

Comment 2 Lon Hohberger 2009-03-31 21:40:36 UTC
Previous fix just allows group_tool to work if id == 0; it doesn't change the problem that causes groupd to assign a group the id of 0.

Comment 7 David Teigland 2009-05-19 16:18:39 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
- cause: command "group_tool ls fence default"

- consequence: command reports the group does not exist, when the group does exist but has zero id

- fix: group_tool checks for name instead of id

- result: group_tool ls now correctly reports about a group even if the group has zero id

Comment 8 Lachlan McIlroy 2009-06-01 04:04:43 UTC
Adding issue 301850.

Comment 13 Chris Ward 2009-07-03 18:28:24 UTC
~~ Attention - RHEL 5.4 Beta Released! ~~

RHEL 5.4 Beta has been released! There should be a fix present in the Beta release that addresses this particular request. Please test and report back results here, at your earliest convenience. RHEL 5.4 General Availability release is just around the corner!

If you encounter any issues while testing Beta, please describe the issues you have encountered and set the bug into NEED_INFO. If you encounter new issues, please clone this bug to open a new issue and request it be reviewed for inclusion in RHEL 5.4 or a later update, if it is not of urgent severity.

Please do not flip the bug status to VERIFIED. Only post your verification results, and if available, update Verified field with the appropriate value.

Questions can be posted to this bug or your customer or partner representative.

Comment 15 errata-xmlrpc 2009-09-02 11:06:52 UTC
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/RHSA-2009-1341.html


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