[Pacemaker] crm resource restart fails to restart the service

Dejan Muhamedagic dejanmm at fastmail.fm
Fri Nov 19 13:26:44 UTC 2010


Hi,

On Thu, Nov 18, 2010 at 01:35:24PM -0500, Vadym Chepkov wrote:
> On Wed, Nov 17, 2010 at 1:03 PM, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> >> >
> >> > Funny, it worked here for me every time for apache, Dummy,
> >> > Delay, stonith resources. With both pacemaker 1.0 and 1.1.
> >> >
> >> >> To test it right now I issued a command
> >> >> # crm resource restart xen_vbuild
> >> >
> >> > Can you try to insert a sleep and see if that helps. It's in
> >> > /usr/lib64/python2.6/site-packages/crm/ui.py:
> >> >
> >> > 802     def restart(self,cmd,rsc):
> >> > 803         "usage: restart <rsc>"
> >> > 804         if not is_name_sane(rsc):
> >> > 805             return False
> >> > 806         if not self.stop("stop",rsc):
> >> > 807             return False
> >> > 808         time.sleep(1)
> >> > 809         return self.start("start",rsc)
> >> >
> >> > Thanks,
> >> >
> >> > Dejan
> >>
> >>
> >> Yep, that did the trick
> >
> > OK. These nodes are faster than what I have (or the other way
> > around), i.e. this seems to be timing issue.
> >
> > Thanks,
> >
> > Dejan
> >
> 
> well, I would say it's not normal, right?

I guess not, but what do you really mean? :)

> Are you going to include
> this "sleep" in the stable-1.0 branch ?

The sleep is currently included in the 1.1 branch, but it's not
a proper fix. If there are dependencies which take time to stop
then the restart will fail. In that case we'd need to wait for
the transition to finish. Right now, the shell doesn't have such
a facility, but should get one.

> or maybe some op_defaults
> reset_delay ?

That's still not general enough.

Thanks,

Dejan

> 
> Thanks,
> Vadym
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker




More information about the Pacemaker mailing list