Re: [Pacemaker] crm_simulate a resource failure

2012-10-25 Thread Andrew Beekhof
On Fri, Oct 26, 2012 at 2:31 AM, Cal Heldenbrand wrote: > Andrew, > > The updated description looks nice, but could you please remove my > fbsdata.com domain name from the man page? Sure. I assumed it was an internal network name that wasn't reachable from outside. > Also, the "memcached" OCF s

Re: [Pacemaker] crm_simulate a resource failure

2012-10-25 Thread Cal Heldenbrand
> Just integers I'm afraid. > The full list for OCF agents is here: > > http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html/Pacemaker_Explained/s-ocf-return-codes.html > LSB return codes are slightly different. > Sure, that's good enough for me. Do you think it'd be possible to somehow re

Re: [Pacemaker] crm_simulate a resource failure

2012-10-25 Thread Cal Heldenbrand
Andrew, The updated description looks nice, but could you please remove my fbsdata.com domain name from the man page? Also, the "memcached" OCF script was my own creation, and might not be a good example. Maybe one of the other commonly used example resources like an IP address or mysql or somet

Re: [Pacemaker] crm_simulate a resource failure

2012-10-25 Thread Jake Smith
- Original Message - > From: "Andrew Beekhof" > To: "Jake Smith" > Cc: "The Pacemaker cluster resource manager" > Sent: Wednesday, October 24, 2012 8:02:34 PM > Subject: Re: [Pacemaker] crm_simulate a resource failure > > O

Re: [Pacemaker] crm_simulate a resource failure

2012-10-24 Thread Andrew Beekhof
How is this? ... -i, --op-inject=value Generate a failure for the cluster to react to in the simulation Value is of the form ${resource}_${task}_${interval}@${node}=${rc}. Eg. memcached_monitor_20...@m1.fbsdata.com=7 -F, --op-fail=value I

Re: [Pacemaker] crm_simulate a resource failure

2012-10-24 Thread Andrew Beekhof
On Thu, Oct 25, 2012 at 1:51 AM, Jake Smith wrote: > > - Original Message - >> From: "Andrew Beekhof" >> To: "Jake Smith" >> Cc: "The Pacemaker cluster resource manager" >> Sent: Wednesday, October 24, 2012 5:36:13 AM >>

Re: [Pacemaker] crm_simulate a resource failure

2012-10-24 Thread Andrew Beekhof
On Thu, Oct 25, 2012 at 1:47 AM, Jake Smith wrote: > > - Original Message - > >> From: "Cal Heldenbrand" >> To: "The Pacemaker cluster resource manager" >> >> Sent: Wednesday, October 24, 2012 10:37:27 AM >> Subject: Re: [Pacema

Re: [Pacemaker] crm_simulate a resource failure

2012-10-24 Thread Andrew Beekhof
On Thu, Oct 25, 2012 at 1:37 AM, Cal Heldenbrand wrote: > Thanks Andrew! My first few attempts at playing around with the failure > states are working as expected. > > A few follow-ups below: > > >> --op-fail isn't the command you want though. >> From the man page: >> >>-i, --op-inject=va

Re: [Pacemaker] crm_simulate a resource failure

2012-10-24 Thread Jake Smith
- Original Message - > From: "Andrew Beekhof" > To: "Jake Smith" > Cc: "The Pacemaker cluster resource manager" > Sent: Wednesday, October 24, 2012 5:36:13 AM > Subject: Re: [Pacemaker] crm_simulate a resource failure > > O

Re: [Pacemaker] crm_simulate a resource failure

2012-10-24 Thread Jake Smith
- Original Message - > From: "Cal Heldenbrand" > To: "The Pacemaker cluster resource manager" > > Sent: Wednesday, October 24, 2012 10:37:27 AM > Subject: Re: [Pacemaker] crm_simulate a resource failure > Thanks Andrew! My first few attempt

Re: [Pacemaker] crm_simulate a resource failure

2012-10-24 Thread Cal Heldenbrand
Thanks Andrew! My first few attempts at playing around with the failure states are working as expected. A few follow-ups below: --op-fail isn't the command you want though. > From the man page: > >-i, --op-inject=value > $rsc_$task_$interval@$node=$rc - Inject the specifie

Re: [Pacemaker] crm_simulate a resource failure

2012-10-24 Thread Andrew Beekhof
On Wed, Oct 24, 2012 at 9:35 AM, Jake Smith wrote: > Ubuntu 12.04 > > pacemaker1.1.6-2ubuntu3 > > If I run crm_simulate -L I get this: > > root@Vulture:~# crm_simulate -L > *** glibc detected *** crm_simulate: double free or corruption (out): > 0x01fc2e00 ***

Re: [Pacemaker] crm_simulate a resource failure

2012-10-23 Thread Jake Smith
Jake - Original Message - From: "Andrew Beekhof" To: "Jake Smith" , "The Pacemaker cluster resource manager" Cc: "Cal Heldenbrand" Sent: Tuesday, October 23, 2012 6:24:51 PM Subject: Re: [Pacemaker] crm_simulate a resource failure On Wed, Oct 24, 20

Re: [Pacemaker] crm_simulate a resource failure

2012-10-23 Thread Andrew Beekhof
seg fault so I can't test :-( Really? What version? > > Jake > > > > From: "Cal Heldenbrand" > To: "Jake Smith" , "The Pacemaker cluster resource > manager" > Sent: Tuesday, October 23, 2012 2:01:59 PM

Re: [Pacemaker] crm_simulate a resource failure

2012-10-23 Thread Andrew Beekhof
On Wed, Oct 24, 2012 at 5:01 AM, Cal Heldenbrand wrote: > Thanks Jake, that at gives a little better description of the parameters, > but I still just can't seem to get anything to trigger with the various > syntaxes I'm trying. See below, I'm using single quotes so the $ symbol > isn't parsed by

Re: [Pacemaker] crm_simulate a resource failure

2012-10-23 Thread Cal Heldenbrand
> *From: *"Cal Heldenbrand" > *To: *"Jake Smith" , "The Pacemaker cluster resource > manager" > *Sent: *Tuesday, October 23, 2012 2:01:59 PM > *Subject: *Re: [Pacemaker] crm_simulate a resource failure > > > Thanks Jake, that at

Re: [Pacemaker] crm_simulate a resource failure

2012-10-23 Thread Jake Smith
From: "Cal Heldenbrand" To: "Jake Smith" , "The Pacemaker cluster resource manager" Sent: Tuesday, October 23, 2012 2:01:59 PM Subject: Re: [Pacemaker] crm_simulate a resource failure Thanks Jake, that at gives a little better description of the parameters,

Re: [Pacemaker] crm_simulate a resource failure

2012-10-23 Thread Cal Heldenbrand
Thanks Jake, that at gives a little better description of the parameters, but I still just can't seem to get anything to trigger with the various syntaxes I'm trying. See below, I'm using single quotes so the $ symbol isn't parsed by bash. I've tried using my clone name, different return values,

Re: [Pacemaker] crm_simulate a resource failure

2012-10-23 Thread Jake Smith
- Original Message - > From: "Cal Heldenbrand" > To: pacemaker@oss.clusterlabs.org > Sent: Tuesday, October 23, 2012 11:50:11 AM > Subject: [Pacemaker] crm_simulate a resource failure > Hi everyone, > I'm not able to find documentation or examples on this. If I have a > cloned primiti