----- Original Message ----- > From: "Jan Horníček" <jan.horni...@cesnet.cz> > To: pacemaker@oss.clusterlabs.org > Sent: Tuesday, September 25, 2012 6:54:16 AM > Subject: [Pacemaker] Reload implemention for RA > > Hello, > I'm trying to implement reload functionality to ocf:sgi:cxfs-client > script. The rewritten script is working if called from shell, it pass > ocf-tester. When I change the parameter of the primitive based on > that > RA in the crm shell and commit the change I get restart (stop and > then > start) actions. When I try ocf:heartbeat:Dummy based primitive and > change it's parameter I get reload action. > unique="0" set to both parameters in meta-data > pacemaker version 1.1.5
Pacemaker determines if a ocf resource is reloadable by reading the resource script's meta_data() output. Take a look at the pacemaker/Dummy script in a text editor. The meta_data() function returns documentation on what the agent is capable of in xml. Pacemaker is looking through the xml output of that meta_data() function for <actions><action name='reload'/></actions> to determine if the resource can reload. Then pacemaker looks through the <parameters/> tags for parameters with unique="0" to determine what parameters are allowed to be reloaded. Hope that helps. -- Vossel > > My questions are: > > 1) Is it possible to somehow debug the decision of the pengine for > the > task? (Something like reload not possible because ...) > > 2) Is there any way how to force the reload of changed primitive's > parameters? > > 3) I'm not able to find more restrictions allowing reload to be > functional except setting parameter unique="0" in it's meta-data > definition of RA. Are there others? > > Thank you for your suggestions. > > Jan Hornicek > > > > > _______________________________________________ > Pacemaker mailing list: Pacemaker@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://bugs.clusterlabs.org > _______________________________________________ Pacemaker mailing list: Pacemaker@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://bugs.clusterlabs.org