Re: [Pacemaker] CRM help

2009-10-30 Thread Dejan Muhamedagic
Hi again,

You can make a quick change yourself, providing that you run a very
recent version of crm. Lookup a line which says:

if len(args < 3):

and replace it with:

if len(args) < 3:

Thanks,

Dejan


On Fri, 30 Oct 2009 15:20 +0100, "Dejan Muhamedagic"
 wrote:
> Hi,
> 
> On Fri, 30 Oct 2009 11:08 +0100, "Lars Marowsky-Bree" 
> wrote:
> > On 2009-10-29T12:34:22, Eliot Gable  wrote:
> > 
> > > Yes, files are there. See my first post. Ran ocf-tester on mysql RA and 
> > > get this:
> > > 
> > > /usr/lib/ocf/resource.d/heartbeat/mysql passed all tests
> > > 
> > > But, after modifying the crm Python code to uncomment one of the error 
> > > messages, I see this:
> > > 
> > > crm(live)configure#  primitive mysql ocf:heartbeat:mysql
> > > ERROR: could not parse meta-data for (ocf,mysql,heartbeat)
> > > ERROR: ocf:heartbeat:mysql: no such resource agent
> > > 
> > > Why would CRM not be able to parse the meta-data while the ocf-tester 
> > > script seems to like the RA and it's meta-data just fine?
> 
> I think that's the problem I introduced last week with the meta-data
> processing. I'll fix that.
> 
> Thanks,
> 
> Dejan
> 
> > What are the details on your install? Packages, sources, distro ...?
> > 
> > Have you tried using the interactive mode step-by-step, including tab
> > completion, to build up your script and see what's going on?
> > 
> > 
> > Regards,
> > Lars
> > 
> > -- 
> > Architect Storage/HA, OPS Engineering, Novell, Inc.
> > SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
> > "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
> > 
> > 
> > ___
> > Pacemaker mailing list
> > Pacemaker@oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> -- 
> http://www.fastmail.fm - IMAP accessible web-mail
> 
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker

-- 
http://www.fastmail.fm - mmm... Fastmail...


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] CRM help

2009-10-30 Thread Dejan Muhamedagic
Hi,

On Fri, 30 Oct 2009 11:08 +0100, "Lars Marowsky-Bree" 
wrote:
> On 2009-10-29T12:34:22, Eliot Gable  wrote:
> 
> > Yes, files are there. See my first post. Ran ocf-tester on mysql RA and get 
> > this:
> > 
> > /usr/lib/ocf/resource.d/heartbeat/mysql passed all tests
> > 
> > But, after modifying the crm Python code to uncomment one of the error 
> > messages, I see this:
> > 
> > crm(live)configure#  primitive mysql ocf:heartbeat:mysql
> > ERROR: could not parse meta-data for (ocf,mysql,heartbeat)
> > ERROR: ocf:heartbeat:mysql: no such resource agent
> > 
> > Why would CRM not be able to parse the meta-data while the ocf-tester 
> > script seems to like the RA and it's meta-data just fine?

I think that's the problem I introduced last week with the meta-data
processing. I'll fix that.

Thanks,

Dejan

> What are the details on your install? Packages, sources, distro ...?
> 
> Have you tried using the interactive mode step-by-step, including tab
> completion, to build up your script and see what's going on?
> 
> 
> Regards,
> Lars
> 
> -- 
> Architect Storage/HA, OPS Engineering, Novell, Inc.
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
> 
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker

-- 
http://www.fastmail.fm - IMAP accessible web-mail


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] CRM help

2009-10-30 Thread Lars Marowsky-Bree
On 2009-10-29T12:34:22, Eliot Gable  wrote:

> Yes, files are there. See my first post. Ran ocf-tester on mysql RA and get 
> this:
> 
> /usr/lib/ocf/resource.d/heartbeat/mysql passed all tests
> 
> But, after modifying the crm Python code to uncomment one of the error 
> messages, I see this:
> 
> crm(live)configure#  primitive mysql ocf:heartbeat:mysql
> ERROR: could not parse meta-data for (ocf,mysql,heartbeat)
> ERROR: ocf:heartbeat:mysql: no such resource agent
> 
> Why would CRM not be able to parse the meta-data while the ocf-tester script 
> seems to like the RA and it's meta-data just fine?

What are the details on your install? Packages, sources, distro ...?

Have you tried using the interactive mode step-by-step, including tab
completion, to build up your script and see what's going on?


Regards,
Lars

-- 
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Yes, files are there. See my first post. Ran ocf-tester on mysql RA and get 
this:

/usr/lib/ocf/resource.d/heartbeat/mysql passed all tests

But, after modifying the crm Python code to uncomment one of the error 
messages, I see this:

crm(live)configure#  primitive mysql ocf:heartbeat:mysql
ERROR: could not parse meta-data for (ocf,mysql,heartbeat)
ERROR: ocf:heartbeat:mysql: no such resource agent

Why would CRM not be able to parse the meta-data while the ocf-tester script 
seems to like the RA and it's meta-data just fine?



Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 12:24 PM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

have you checked the /usr/lib/ocf directory?

J.

On Thu, 2009-10-29 at 12:06 -0400, Eliot Gable wrote:
> Actually, that was a bad example because it is called 'pgsql', but I get it 
> for all of them:
>
> ERROR: ocf:heartbeat:apache: no such resource agent
> ERROR: ocf:heartbeat:mysql: no such resource agent
> ERROR: ocf:heartbeat:pgsql: no such resource agent
> ERROR: ocf:heartbeat:pingd: no such resource agent
>
>
>
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
>
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
>
>
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
>
>
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 12:02 PM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
>
> Ok, I figured out I need to change the clone to primitive to define the thing 
> first and then reference the primitive using the clone command. I now no 
> longer get the object does not exist message, but it now says it cannot find 
> the resource agent:
>
> ERROR: ocf:heartbeat:postgresql: no such resource agent
>
>
>
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
>
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
>
>
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
>
>
> -----Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:52 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
>
> Ok, that still does not work. When I run the script, it just sits there and 
> does nothing (does not even return me to the prompt). When I hit CTRL-C to 
> try to terminate it, it just gives me the same errors I was getting before 
> about ocf:heartbeat:apache and etc not existing. But I have to keep hitting 
> CTRL-C for each line until it gives me all errors and then it exits.
>
> The documentation clearly shows doing it the way I first posted.
>
>
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
>
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
>
>
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
>
>
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:48 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
>
> Nevermind. I had a leading 'configure' statement by itself.
>
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
>
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
>
>
> CONFIDENTIAL COMMUNICATION.  This e-mail and 

Re: [Pacemaker] CRM help

2009-10-29 Thread Johan Verrept
have you checked the /usr/lib/ocf directory?

J.

On Thu, 2009-10-29 at 12:06 -0400, Eliot Gable wrote:
> Actually, that was a bad example because it is called 'pgsql', but I get it 
> for all of them:
> 
> ERROR: ocf:heartbeat:apache: no such resource agent
> ERROR: ocf:heartbeat:mysql: no such resource agent
> ERROR: ocf:heartbeat:pgsql: no such resource agent
> ERROR: ocf:heartbeat:pingd: no such resource agent
> 
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 12:02 PM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Ok, I figured out I need to change the clone to primitive to define the thing 
> first and then reference the primitive using the clone command. I now no 
> longer get the object does not exist message, but it now says it cannot find 
> the resource agent:
> 
> ERROR: ocf:heartbeat:postgresql: no such resource agent
> 
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -----Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:52 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Ok, that still does not work. When I run the script, it just sits there and 
> does nothing (does not even return me to the prompt). When I hit CTRL-C to 
> try to terminate it, it just gives me the same errors I was getting before 
> about ocf:heartbeat:apache and etc not existing. But I have to keep hitting 
> CTRL-C for each line until it gives me all errors and then it exits.
> 
> The documentation clearly shows doing it the way I first posted.
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:48 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Nevermind. I had a leading 'configure' statement by itself.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:47 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> That just results in syntax errors on every line.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Johan Verre

Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Actually, that was a bad example because it is called 'pgsql', but I get it for 
all of them:

ERROR: ocf:heartbeat:apache: no such resource agent
ERROR: ocf:heartbeat:mysql: no such resource agent
ERROR: ocf:heartbeat:pgsql: no such resource agent
ERROR: ocf:heartbeat:pingd: no such resource agent



Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 12:02 PM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Ok, I figured out I need to change the clone to primitive to define the thing 
first and then reference the primitive using the clone command. I now no longer 
get the object does not exist message, but it now says it cannot find the 
resource agent:

ERROR: ocf:heartbeat:postgresql: no such resource agent



Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:52 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Ok, that still does not work. When I run the script, it just sits there and 
does nothing (does not even return me to the prompt). When I hit CTRL-C to try 
to terminate it, it just gives me the same errors I was getting before about 
ocf:heartbeat:apache and etc not existing. But I have to keep hitting CTRL-C 
for each line until it gives me all errors and then it exits.

The documentation clearly shows doing it the way I first posted.


Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:48 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Nevermind. I had a leading 'configure' statement by itself.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> E

Re: [Pacemaker] CRM help

2009-10-29 Thread Johan Verrept
On Thu, 2009-10-29 at 12:02 -0400, Eliot Gable wrote:
> Ok, I figured out I need to change the clone to primitive to define the thing 
> first and then reference the primitive using the clone command. I now no 
> longer get the object does not exist message, but it now says it cannot find 
> the resource agent:
> 
> ERROR: ocf:heartbeat:postgresql: no such resource agent

ocf:heartbeat:pgsql

J.

> 
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:52 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Ok, that still does not work. When I run the script, it just sits there and 
> does nothing (does not even return me to the prompt). When I hit CTRL-C to 
> try to terminate it, it just gives me the same errors I was getting before 
> about ocf:heartbeat:apache and etc not existing. But I have to keep hitting 
> CTRL-C for each line until it gives me all errors and then it exits.
> 
> The documentation clearly shows doing it the way I first posted.
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:48 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Nevermind. I had a leading 'configure' statement by itself.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:47 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> That just results in syntax errors on every line.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Johan Verrept [mailto:johan.verr...@able.be]
> Sent: Thursday, October 29, 2009 11:42 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> 
> If you use scripted input to crm, use full command lines:
> 
> CRM < 
> configure erase
> configure clone apache ocf:heartbeat:apache params...
> 
> etc
> 
> J.
> 
> 
> On Thu, 2009-10-29 at 11:38 -0400, Eliot Gable wrote:
> > In the past, I have always done things by manually creating a CIB XML
> > file and then importing it. But, to save time, I thought I would try
> > CRM. So, I made this script:
> >
> >
> >
> > #!/bin/bash
> >
> >
> >
> > crm< >
> > configure
> >
> >  erase
> >
> > clone apache ocf:heartbeat:apache params
> > configfile=/etc/httpd/httpd.conf
> >
> >  monitor apache 1s:5s
> >
> >  clone mysql ocf:heartbeat:mysql
> >
> >  monitor mysql 1s:5s
> >
> >  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
> &

Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Ok, I figured out I need to change the clone to primitive to define the thing 
first and then reference the primitive using the clone command. I now no longer 
get the object does not exist message, but it now says it cannot find the 
resource agent:

ERROR: ocf:heartbeat:postgresql: no such resource agent



Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:52 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Ok, that still does not work. When I run the script, it just sits there and 
does nothing (does not even return me to the prompt). When I hit CTRL-C to try 
to terminate it, it just gives me the same errors I was getting before about 
ocf:heartbeat:apache and etc not existing. But I have to keep hitting CTRL-C 
for each line until it gives me all errors and then it exits.

The documentation clearly shows doing it the way I first posted.


Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:48 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Nevermind. I had a leading 'configure' statement by itself.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intend

Re: [Pacemaker] CRM help

2009-10-29 Thread Johan Verrept
Ah. you could also try this:

primitive apacheserver ocf:heartbeat:apache params
configfile=/etc/httpd/httpd.conf
clone apache apacheserver meta clone-max="2"

No guarantees this is 100% correct (i didn't try) but you should get the
idea of what is wrong.

Anyway, if you are creating a script for an existing configuration, try
"crm configure show"

J.

On Thu, 2009-10-29 at 11:51 -0400, Eliot Gable wrote:
> Ok, that still does not work. When I run the script, it just sits there and 
> does nothing (does not even return me to the prompt). When I hit CTRL-C to 
> try to terminate it, it just gives me the same errors I was getting before 
> about ocf:heartbeat:apache and etc not existing. But I have to keep hitting 
> CTRL-C for each line until it gives me all errors and then it exits.
> 
> The documentation clearly shows doing it the way I first posted.
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:48 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Nevermind. I had a leading 'configure' statement by itself.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -----Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:47 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> That just results in syntax errors on every line.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Johan Verrept [mailto:johan.verr...@able.be]
> Sent: Thursday, October 29, 2009 11:42 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> 
> If you use scripted input to crm, use full command lines:
> 
> CRM < 
> configure erase
> configure clone apache ocf:heartbeat:apache params...
> 
> etc
> 
> J.
> 
> 
> On Thu, 2009-10-29 at 11:38 -0400, Eliot Gable wrote:
> > In the past, I have always done things by manually creating a CIB XML
> > file and then importing it. But, to save time, I thought I would try
> > CRM. So, I made this script:
> >
> >
> >
> > #!/bin/bash
> >
> >
> >
> > crm< >
> > configure
> >
> >  erase
> >
> > clone apache ocf:heartbeat:apache params
> > configfile=/etc/httpd/httpd.conf
> >
> >  monitor apache 1s:5s
> >
> >  clone mysql ocf:heartbeat:mysql
> >
> >  monitor mysql 1s:5s
> >
> >  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
> >
> >  monitor postgres 1s:5s
> >
> > EOF
> >
> 
> >
> 
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
> be destroyed and/or returned if you are not the intended and proper recipient.
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
> be destroyed an

Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Ok, that still does not work. When I run the script, it just sits there and 
does nothing (does not even return me to the prompt). When I hit CTRL-C to try 
to terminate it, it just gives me the same errors I was getting before about 
ocf:heartbeat:apache and etc not existing. But I have to keep hitting CTRL-C 
for each line until it gives me all errors and then it exits.

The documentation clearly shows doing it the way I first posted.


Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:48 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Nevermind. I had a leading 'configure' statement by itself.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Nevermind. I had a leading 'configure' statement by itself.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] CRM help

2009-10-29 Thread Johan Verrept

If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
> 
>  
> 
> #!/bin/bash
> 
>  
> 
> crm< 
> configure
> 
>  erase
> 
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
> 
>  monitor apache 1s:5s
> 
>  clone mysql ocf:heartbeat:mysql
> 
>  monitor mysql 1s:5s
> 
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
> 
>  monitor postgres 1s:5s
> 
> EOF
> 

> 


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
In the past, I have always done things by manually creating a CIB XML file and 
then importing it. But, to save time, I thought I would try CRM. So, I made 
this script:

#!/bin/bash

crm

[cid:image001.gif@01CA588C.4C9D1870]
CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.



CONFIDENTIAL. This e-mail and any attached files are confidential and should be 
destroyed and/or returned if you are not the intended and proper recipient.
<>___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker