Bug 209797 - gulm init script will hang if a master is never found.
Summary: gulm init script will hang if a master is never found.
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: gulm
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chris Feist
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-06 20:50 UTC by Corey Marthaler
Modified: 2009-04-16 20:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-22 00:01:28 UTC
Embargoed:


Attachments (Terms of Use)

Description Corey Marthaler 2006-10-06 20:50:08 UTC
Description of problem:
I had one machine in a cluster come up with the gulm init script on and a valid
cluster.conf file, and it ended up hanging because I never started gulm on any
of the other nodes in the cluster.

Starting ccsd: [  OK  ]
Starting cman:[WARNING]
[WARNING]lustered mirror log:[WARNING]
Starting lock_gulmd:                
[HANG]

It appears that if a master is never found then it will hang. We need to have it
timeout eventually continue booting the node.
wait_for_master()
{
        i=0
        rtrn=0
        stoptime=$(($SECONDS + $GULM_QUORUM_TIMEOUT))
        while [ $GULM_QUORUM_TIMEOUT -eq 0 -o $SECONDS -lt $stoptime ]
        do
                find_master
                rtrn=$?
                case $rtrn in
                0) break ;; # master was found
                1) ;;       # master was not found
                2) break ;; # gulm_tool error
                3) break ;; # we are expired
                esac

                sleep 5
                i=$(($i+1))
        done

        return $rtrn
}
 

Version-Release number of selected component (if applicable):
[root@link-08 ~]# rpm -q gulm
gulm-1.0.7-0

Comment 1 Chris Feist 2006-10-18 22:59:21 UTC
I've been unable to replicate this with Corey, moving to NEEDINFO until we see
this again.

Comment 2 Corey Marthaler 2006-11-22 00:01:28 UTC
Have not been able to reproduce this, will reopen if seen again.


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