Re: [Pacemaker] how to determin crm version / features from within a RA

2009-06-25 Thread Lars Ellenberg
On Thu, Jun 25, 2009 at 04:47:55PM +0200, Andrew Beekhof wrote: Can we back up a moment though and restate the problem? It was also sort of a philosophical question. But anyways ;) Is there a specific version barrier you're looking for? DRBD is one of the few Multi State (or Master Slave or

Re: [Pacemaker] how to determin crm version / features from within a RA

2009-06-25 Thread Andrew Beekhof
On Thu, Jun 25, 2009 at 5:13 PM, Lars Ellenberglars.ellenb...@linbit.com wrote: On Thu, Jun 25, 2009 at 04:47:55PM +0200, Andrew Beekhof wrote: Can we back up a moment though and restate the problem? It was also sort of a philosophical question. But anyways ;) As a philosophical question, I'd

Re: [Pacemaker] how to determin crm version / features from within a RA

2009-06-15 Thread Dejan Muhamedagic
On Thu, Jun 11, 2009 at 03:16:28PM +0200, Lars Ellenberg wrote: On Thu, Jun 11, 2009 at 01:59:56PM +0200, Dejan Muhamedagic wrote: so, to summarize, I hacked up a compare_version. and I think I even avoided bashisms! that is once in a life time :) Exemplary ;-) It may depend on some

Re: [Pacemaker] how to determin crm version / features from within a RA

2009-06-12 Thread Lars Ellenberg
On Thu, Jun 11, 2009 at 01:59:56PM +0200, Dejan Muhamedagic wrote: so, to summarize, I hacked up a compare_version. and I think I even avoided bashisms! that is once in a life time :) Exemplary ;-) It may depend on some GNU stuff in sed and sort, though. comments? overkill? useful?

Re: [Pacemaker] how to determin crm version / features from within a RA

2009-06-11 Thread Dejan Muhamedagic
On Wed, Jun 10, 2009 at 08:44:20PM +0200, Lars Ellenberg wrote: On Wed, Jun 10, 2009 at 04:42:32PM +0200, Dejan Muhamedagic wrote: On Wed, Jun 10, 2009 at 04:26:31PM +0200, Andrew Beekhof wrote: On Wed, Jun 10, 2009 at 3:53 PM, Lars Ellenberglars.ellenb...@linbit.com wrote: taking

Re: [Pacemaker] how to determin crm version / features from within a RA

2009-06-11 Thread Lars Ellenberg
attaching revised generic shell level version compare scriptlet plus cib/crm detection logic. hopefully it is more less instransparent what is going on now, and clear why the eval for the cibadmin -Ql | sed thingy is ok. the shell version compare may be useful for inclusion into the ocf shell

[Pacemaker] how to determin crm version / features from within a RA

2009-06-10 Thread Lars Ellenberg
taking this to the pacemaker list... On Wed, Jun 10, 2009 at 02:53:24PM +0200, Andrew Beekhof wrote: since 1.0.4, giving --version to almost any of the crm tools will give you the current version number. it also includes the supported stacks and (if built correctly) the Hg changeset used.

Re: [Pacemaker] how to determin crm version / features from within a RA

2009-06-10 Thread Andrew Beekhof
On Wed, Jun 10, 2009 at 3:53 PM, Lars Ellenberglars.ellenb...@linbit.com wrote: taking this to the pacemaker list... On Wed, Jun 10, 2009 at 02:53:24PM +0200, Andrew Beekhof wrote: since 1.0.4, giving --version to almost any of the crm tools will give you the current version number. it also