[Pacemaker] How to replace an agent

Dejan Muhamedagic dejanmm at fastmail.fm
Fri Jun 11 14:09:28 UTC 2010


Hi,

On Fri, Jun 11, 2010 at 09:10:17AM -0400, Vadym Chepkov wrote:
> 
> On Jun 10, 2010, at 9:03 AM, Dejan Muhamedagic wrote:
> 
> > Hi,
> > 
> > On Thu, Jun 10, 2010 at 08:46:22AM -0400, Vadym Chepkov wrote:
> >> Hi,
> >> 
> >> I stumbled upon interesting feature or a bug, not sure how to classify it.
> >> 
> >> I needed to add a resource to a cluster and since it didn't have native RA, I used 'anything' RA while I was working on a new script. When new script was ready I stopped the running resource and edited it's definition to utilize a new RA.
> >> But when I tried to start it, I could see in the log it was still trying to run 'anything' script instead my new one.
> >> How should I have handled this? Delete/add a new definition would remove all constraints as well.
> >> What would be the proper way to handle such modification?
> > 
> > I think that it should work like that. Can you open a bugzilla
> > and attach a hb_report.
> > 
> 
> 
> I found what I did wrong. When I loaded new resource definition
> I also removed meta target-role="Stopped".
> pacemaker decided it needs to restart the resource because the
> has changed. But it also using params definitions of the new
> agent, which are not valid anymore.

The stop operation should be run _before_ changing the resource
definition. I think that this was fixed quite some time ago.

> If you still think it's still a bug, I can file the bugzilla, I
> have the hb_report.

Yes, please.

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