Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-27 Thread Jehan-Guillaume de Rorthais
Le Mon, 23 May 2016 19:21:23 +0300,
Andrey Rogovsky  a écrit :

> Hi
> Any idea why it not work on my cluster?

Ok, I think I understood the problem. By default, crm_master use "forever" as
lifetime attribute. So my commands were incomplete to get live master score
set from the RA itself. Try the following command:

  crm_master -l reboot -r pgsqld -Q

or 

  crm_master -l reboot -r pgsqld -N $NODENAME -Q

> 2016-05-23 19:00 GMT+03:00 Jehan-Guillaume de Rorthais :
> 
> > Le Mon, 23 May 2016 15:42:55 +0300,
> > Andrey Rogovsky  a écrit :
> >
> > > Hi
> > > Your commands is not works
> > > root@c:~#   crm_master -r pgsqld -N $HOSTNAME -Q
> > > Error performing operation: No such device or address
> > > root@c:~#   crm_master -r pgsqld -Q
> > > Error performing operation: No such device or address
> >
> >
> > It works here:
> >
> > root@srv1:~$ crm_master -r pgsqld -Q
> > 1
> > root@srv1:~$ crm_master -r pgsqld -N srv2 -Q
> > 1001
> >
> > >
> > >
> > > 2016-05-23 13:38 GMT+03:00 Jehan-Guillaume de Rorthais  > >:
> > >
> > > > ok, you were trying with the attribute name. I wrote you had a use the
> > > > **resource** name.
> > > >
> > > > Your command should be (again):
> > > >
> > > >   crm_master -r pgsqld -N $HOSTNAME -Q
> > > >
> > > > Or simply this if you want to check the score on the local node:
> > > >
> > > >   crm_master -r pgsqld -Q
> > > >
> > > > Moreover, you should really consider doing some cleanup in your
> > attributes,
> > > > "pgsql-data-status" and "maintenance" definitely does not comes from
> > the
> > > > PAF
> > > > project.
> > > >
> > > >
> > > > Le Mon, 23 May 2016 12:44:29 +0300,
> > > > Andrey Rogovsky  a écrit :
> > > >
> > > > > Stack: corosync
> > > > > Current DC: b (version 1.1.12-cdf310a) - partition with quorum
> > > > > Last updated: Mon May 23 12:43:57 2016 Last change: Wed May  4
> > 12:15:06
> > > > > 2016 via crm_attribute on c
> > > > >
> > > > > 3 nodes and 7 resources configured
> > > > >
> > > > > Online: [ a b c ]
> > > > >
> > > > >  Resource Group: master
> > > > >  pgsql-master-ip (ocf::heartbeat:IPaddr2): Started a
> > > > >  Master/Slave Set: msPostgresql [pgsqld]
> > > > >  Masters: [ a ]
> > > > >  Slaves: [ b c ]
> > > > >  Clone Set: WebFarm [apache]
> > > > >  Started: [ a b c ]
> > > > >
> > > > > Node Attributes:
> > > > > * Node a:
> > > > > + maintenance : off
> > > > > + master-pgsqld   : 1001
> > > > > + pgsql-data-status   : STREAMING|ASYNC
> > > > > * Node b:
> > > > > + maintenance : off
> > > > > + master-pgsqld   : 1000
> > > > > + pgsql-data-status   : LATEST
> > > > > * Node c:
> > > > > + maintenance : off
> > > > > + master-pgsqld   : 1
> > > > > + pgsql-data-status   : STREAMING|ASYNC
> > > > >
> > > > >
> > > > > 2016-05-23 12:35 GMT+03:00 Jehan-Guillaume de Rorthais <
> > j...@dalibo.com
> > > > >:
> > > > >
> > > > > > Le Mon, 23 May 2016 12:31:37 +0300,
> > > > > > Andrey Rogovsky  a écrit :
> > > > > >
> > > > > > > This is not work
> > > > > > > #   crm_master -r master-pgsqld -N $HOSTNAME -Q
> > > > > > > Error performing operation: No such device or address
> > > > > >
> > > > > > as I wrote: you must use the resource name that is cloned by your
> > > > master
> > > > > > resource.
> > > > > >
> > > > > > Could you show us your configuration please?
> > > > > >
> > > > > > > 2016-05-23 11:46 GMT+03:00 Jehan-Guillaume de Rorthais <
> > > > j...@dalibo.com
> > > > > > >:
> > > > > > >
> > > > > > > > Le Mon, 23 May 2016 11:36:37 +0300,
> > > > > > > > Andrey Rogovsky  a écrit :
> > > > > > > >
> > > > > > > > > Hi
> > > > > > > > > This is not work for me:
> > > > > > > > > #   crm_master -r pgsqld -N $HOSTNAME $HOSTNAME -Q
> > > > > > > > > Error performing operation: No such device or address
> > > > > > > >
> > > > > > > > This should be :
> > > > > > > >
> > > > > > > >   crm_master -r pgsqld -N $HOSTNAME -Q
> > > > > > > >
> > > > > > > > (supposing as your resource name is "pgsqld")
> > > > > > > >
> > > > > > > > > 2016-05-23 11:19 GMT+03:00 Jehan-Guillaume de Rorthais <
> > > > > > j...@dalibo.com
> > > > > > > > >:
> > > > > > > > >
> > > > > > > > > > Le Mon, 23 May 2016 09:28:41 +0300,
> > > > > > > > > > Andrey Rogovsky  a écrit :
> > > > > > > > > >
> > > > > > > > > > > I try crm_master, but it not works:
> > > > > > > > > > > # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname
> > > > > > $HOSTNAME
> > > > > > > > > > > --attr-name master-pgsqld --get-value
> > > > > > > > > > > crm_master: invalid option -- 't'
> > > > > > > > > > > crm_master: unrecognized option '--node-uname'
> > > > > > > > > > > crm_master: unrecognized option '--attr-name'
> > > > 

Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-23 Thread Andrey Rogovsky
Hi
Any idea why it not work on my cluster?


2016-05-23 19:00 GMT+03:00 Jehan-Guillaume de Rorthais :

> Le Mon, 23 May 2016 15:42:55 +0300,
> Andrey Rogovsky  a écrit :
>
> > Hi
> > Your commands is not works
> > root@c:~#   crm_master -r pgsqld -N $HOSTNAME -Q
> > Error performing operation: No such device or address
> > root@c:~#   crm_master -r pgsqld -Q
> > Error performing operation: No such device or address
>
>
> It works here:
>
> root@srv1:~$ crm_master -r pgsqld -Q
> 1
> root@srv1:~$ crm_master -r pgsqld -N srv2 -Q
> 1001
>
> >
> >
> > 2016-05-23 13:38 GMT+03:00 Jehan-Guillaume de Rorthais  >:
> >
> > > ok, you were trying with the attribute name. I wrote you had a use the
> > > **resource** name.
> > >
> > > Your command should be (again):
> > >
> > >   crm_master -r pgsqld -N $HOSTNAME -Q
> > >
> > > Or simply this if you want to check the score on the local node:
> > >
> > >   crm_master -r pgsqld -Q
> > >
> > > Moreover, you should really consider doing some cleanup in your
> attributes,
> > > "pgsql-data-status" and "maintenance" definitely does not comes from
> the
> > > PAF
> > > project.
> > >
> > >
> > > Le Mon, 23 May 2016 12:44:29 +0300,
> > > Andrey Rogovsky  a écrit :
> > >
> > > > Stack: corosync
> > > > Current DC: b (version 1.1.12-cdf310a) - partition with quorum
> > > > Last updated: Mon May 23 12:43:57 2016 Last change: Wed May  4
> 12:15:06
> > > > 2016 via crm_attribute on c
> > > >
> > > > 3 nodes and 7 resources configured
> > > >
> > > > Online: [ a b c ]
> > > >
> > > >  Resource Group: master
> > > >  pgsql-master-ip (ocf::heartbeat:IPaddr2): Started a
> > > >  Master/Slave Set: msPostgresql [pgsqld]
> > > >  Masters: [ a ]
> > > >  Slaves: [ b c ]
> > > >  Clone Set: WebFarm [apache]
> > > >  Started: [ a b c ]
> > > >
> > > > Node Attributes:
> > > > * Node a:
> > > > + maintenance : off
> > > > + master-pgsqld   : 1001
> > > > + pgsql-data-status   : STREAMING|ASYNC
> > > > * Node b:
> > > > + maintenance : off
> > > > + master-pgsqld   : 1000
> > > > + pgsql-data-status   : LATEST
> > > > * Node c:
> > > > + maintenance : off
> > > > + master-pgsqld   : 1
> > > > + pgsql-data-status   : STREAMING|ASYNC
> > > >
> > > >
> > > > 2016-05-23 12:35 GMT+03:00 Jehan-Guillaume de Rorthais <
> j...@dalibo.com
> > > >:
> > > >
> > > > > Le Mon, 23 May 2016 12:31:37 +0300,
> > > > > Andrey Rogovsky  a écrit :
> > > > >
> > > > > > This is not work
> > > > > > #   crm_master -r master-pgsqld -N $HOSTNAME -Q
> > > > > > Error performing operation: No such device or address
> > > > >
> > > > > as I wrote: you must use the resource name that is cloned by your
> > > master
> > > > > resource.
> > > > >
> > > > > Could you show us your configuration please?
> > > > >
> > > > > > 2016-05-23 11:46 GMT+03:00 Jehan-Guillaume de Rorthais <
> > > j...@dalibo.com
> > > > > >:
> > > > > >
> > > > > > > Le Mon, 23 May 2016 11:36:37 +0300,
> > > > > > > Andrey Rogovsky  a écrit :
> > > > > > >
> > > > > > > > Hi
> > > > > > > > This is not work for me:
> > > > > > > > #   crm_master -r pgsqld -N $HOSTNAME $HOSTNAME -Q
> > > > > > > > Error performing operation: No such device or address
> > > > > > >
> > > > > > > This should be :
> > > > > > >
> > > > > > >   crm_master -r pgsqld -N $HOSTNAME -Q
> > > > > > >
> > > > > > > (supposing as your resource name is "pgsqld")
> > > > > > >
> > > > > > > > 2016-05-23 11:19 GMT+03:00 Jehan-Guillaume de Rorthais <
> > > > > j...@dalibo.com
> > > > > > > >:
> > > > > > > >
> > > > > > > > > Le Mon, 23 May 2016 09:28:41 +0300,
> > > > > > > > > Andrey Rogovsky  a écrit :
> > > > > > > > >
> > > > > > > > > > I try crm_master, but it not works:
> > > > > > > > > > # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname
> > > > > $HOSTNAME
> > > > > > > > > > --attr-name master-pgsqld --get-value
> > > > > > > > > > crm_master: invalid option -- 't'
> > > > > > > > > > crm_master: unrecognized option '--node-uname'
> > > > > > > > > > crm_master: unrecognized option '--attr-name'
> > > > > > > > > > crm_master - A convenience wrapper for crm_attribute
> > > > > > > > >
> > > > > > > > > I tried this with success:
> > > > > > > > >
> > > > > > > > >   crm_master -r pgsqld -N hanode1 -Q
> > > > > > > > >
> > > > > > > > > The resource you have to give is the resource (the one
> that is
> > > > > cloned),
> > > > > > > > > not the
> > > > > > > > > master resource.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > 2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais <
> > > > > > > j...@dalibo.com
> > > > > > > > > >:
> > > > > > > > > >
> > > > > > > > > > > Le Fri, 20 May 2016 15:31:16 +0300,
> > > > > > > > > > > 

Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-23 Thread Jehan-Guillaume de Rorthais
ok, you were trying with the attribute name. I wrote you had a use the
**resource** name.

Your command should be (again):

  crm_master -r pgsqld -N $HOSTNAME -Q

Or simply this if you want to check the score on the local node:

  crm_master -r pgsqld -Q

Moreover, you should really consider doing some cleanup in your attributes,
"pgsql-data-status" and "maintenance" definitely does not comes from the PAF
project.


Le Mon, 23 May 2016 12:44:29 +0300,
Andrey Rogovsky  a écrit :

> Stack: corosync
> Current DC: b (version 1.1.12-cdf310a) - partition with quorum
> Last updated: Mon May 23 12:43:57 2016 Last change: Wed May  4 12:15:06
> 2016 via crm_attribute on c
> 
> 3 nodes and 7 resources configured
> 
> Online: [ a b c ]
> 
>  Resource Group: master
>  pgsql-master-ip (ocf::heartbeat:IPaddr2): Started a
>  Master/Slave Set: msPostgresql [pgsqld]
>  Masters: [ a ]
>  Slaves: [ b c ]
>  Clone Set: WebFarm [apache]
>  Started: [ a b c ]
> 
> Node Attributes:
> * Node a:
> + maintenance : off
> + master-pgsqld   : 1001
> + pgsql-data-status   : STREAMING|ASYNC
> * Node b:
> + maintenance : off
> + master-pgsqld   : 1000
> + pgsql-data-status   : LATEST
> * Node c:
> + maintenance : off
> + master-pgsqld   : 1
> + pgsql-data-status   : STREAMING|ASYNC
> 
> 
> 2016-05-23 12:35 GMT+03:00 Jehan-Guillaume de Rorthais :
> 
> > Le Mon, 23 May 2016 12:31:37 +0300,
> > Andrey Rogovsky  a écrit :
> >
> > > This is not work
> > > #   crm_master -r master-pgsqld -N $HOSTNAME -Q
> > > Error performing operation: No such device or address
> >
> > as I wrote: you must use the resource name that is cloned by your master
> > resource.
> >
> > Could you show us your configuration please?
> >
> > > 2016-05-23 11:46 GMT+03:00 Jehan-Guillaume de Rorthais  > >:
> > >
> > > > Le Mon, 23 May 2016 11:36:37 +0300,
> > > > Andrey Rogovsky  a écrit :
> > > >
> > > > > Hi
> > > > > This is not work for me:
> > > > > #   crm_master -r pgsqld -N $HOSTNAME $HOSTNAME -Q
> > > > > Error performing operation: No such device or address
> > > >
> > > > This should be :
> > > >
> > > >   crm_master -r pgsqld -N $HOSTNAME -Q
> > > >
> > > > (supposing as your resource name is "pgsqld")
> > > >
> > > > > 2016-05-23 11:19 GMT+03:00 Jehan-Guillaume de Rorthais <
> > j...@dalibo.com
> > > > >:
> > > > >
> > > > > > Le Mon, 23 May 2016 09:28:41 +0300,
> > > > > > Andrey Rogovsky  a écrit :
> > > > > >
> > > > > > > I try crm_master, but it not works:
> > > > > > > # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname
> > $HOSTNAME
> > > > > > > --attr-name master-pgsqld --get-value
> > > > > > > crm_master: invalid option -- 't'
> > > > > > > crm_master: unrecognized option '--node-uname'
> > > > > > > crm_master: unrecognized option '--attr-name'
> > > > > > > crm_master - A convenience wrapper for crm_attribute
> > > > > >
> > > > > > I tried this with success:
> > > > > >
> > > > > >   crm_master -r pgsqld -N hanode1 -Q
> > > > > >
> > > > > > The resource you have to give is the resource (the one that is
> > cloned),
> > > > > > not the
> > > > > > master resource.
> > > > > >
> > > > > >
> > > > > > > 2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais <
> > > > j...@dalibo.com
> > > > > > >:
> > > > > > >
> > > > > > > > Le Fri, 20 May 2016 15:31:16 +0300,
> > > > > > > > Andrey Rogovsky  a écrit :
> > > > > > > >
> > > > > > > > > Hi!
> > > > > > > > > I cant get attribute value:
> > > > > > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname
> > $HOSTNAME
> > > > > > > > --attr-name
> > > > > > > > > master-pgsqld --get-value
> > > > > > > > > Error performing operation: No such device or address
> > > > > > > > >
> > > > > > > > > This value is present:
> > > > > > > > > crm_mon -A1  | grep master-pgsqld
> > > > > > > > > + master-pgsqld: 1001
> > > > > > > > > + master-pgsqld: 1000
> > > > > > > > > + master-pgsqld: 1
> > > > > > > >
> > > > > > > > Use crm_master to get master scores easily.
> > > > > > > >
> > > > > > > > > I use 1.1.15-rc1
> > > > > > > > > dpkg -l | grep pacemaker-cli-utils
> > > > > > > > > ii  pacemaker-cli-utils1.1.15-rc1
> > > > > > amd64
> > > > > > > > >Command line interface utilities for Pacemaker
> > > > > > > > >
> > > > > > > > > Also non-integer values work file:
> > > > > > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname
> > $HOSTNAME
> > > > > > > > --attr-name
> > > > > > > > > pgsql-data-status --get-value
> > > > > > > > > STREAMING|ASYNC
> > > > > > > >
> > > > > > > > I'm very confused. It sounds you are mixing two different
> > resource
> > > > > > agent

Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-23 Thread Jehan-Guillaume de Rorthais
Le Mon, 23 May 2016 12:31:37 +0300,
Andrey Rogovsky  a écrit :

> This is not work
> #   crm_master -r master-pgsqld -N $HOSTNAME -Q
> Error performing operation: No such device or address

as I wrote: you must use the resource name that is cloned by your master
resource.

Could you show us your configuration please?

> 2016-05-23 11:46 GMT+03:00 Jehan-Guillaume de Rorthais :
> 
> > Le Mon, 23 May 2016 11:36:37 +0300,
> > Andrey Rogovsky  a écrit :
> >
> > > Hi
> > > This is not work for me:
> > > #   crm_master -r pgsqld -N $HOSTNAME $HOSTNAME -Q
> > > Error performing operation: No such device or address
> >
> > This should be :
> >
> >   crm_master -r pgsqld -N $HOSTNAME -Q
> >
> > (supposing as your resource name is "pgsqld")
> >
> > > 2016-05-23 11:19 GMT+03:00 Jehan-Guillaume de Rorthais  > >:
> > >
> > > > Le Mon, 23 May 2016 09:28:41 +0300,
> > > > Andrey Rogovsky  a écrit :
> > > >
> > > > > I try crm_master, but it not works:
> > > > > # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME
> > > > > --attr-name master-pgsqld --get-value
> > > > > crm_master: invalid option -- 't'
> > > > > crm_master: unrecognized option '--node-uname'
> > > > > crm_master: unrecognized option '--attr-name'
> > > > > crm_master - A convenience wrapper for crm_attribute
> > > >
> > > > I tried this with success:
> > > >
> > > >   crm_master -r pgsqld -N hanode1 -Q
> > > >
> > > > The resource you have to give is the resource (the one that is cloned),
> > > > not the
> > > > master resource.
> > > >
> > > >
> > > > > 2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais <
> > j...@dalibo.com
> > > > >:
> > > > >
> > > > > > Le Fri, 20 May 2016 15:31:16 +0300,
> > > > > > Andrey Rogovsky  a écrit :
> > > > > >
> > > > > > > Hi!
> > > > > > > I cant get attribute value:
> > > > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> > > > > > --attr-name
> > > > > > > master-pgsqld --get-value
> > > > > > > Error performing operation: No such device or address
> > > > > > >
> > > > > > > This value is present:
> > > > > > > crm_mon -A1  | grep master-pgsqld
> > > > > > > + master-pgsqld: 1001
> > > > > > > + master-pgsqld: 1000
> > > > > > > + master-pgsqld: 1
> > > > > >
> > > > > > Use crm_master to get master scores easily.
> > > > > >
> > > > > > > I use 1.1.15-rc1
> > > > > > > dpkg -l | grep pacemaker-cli-utils
> > > > > > > ii  pacemaker-cli-utils1.1.15-rc1
> > > > amd64
> > > > > > >Command line interface utilities for Pacemaker
> > > > > > >
> > > > > > > Also non-integer values work file:
> > > > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> > > > > > --attr-name
> > > > > > > pgsql-data-status --get-value
> > > > > > > STREAMING|ASYNC
> > > > > >
> > > > > > I'm very confused. It sounds you are mixing two different resource
> > > > agent
> > > > > > for
> > > > > > PostgreSQL. I can recognize scores for you master resource set bu
> > the
> > > > > > pgsqlms
> > > > > > RA (PAF project) and the data-status attribute from the pgsql RA...
> > > > > >
> > > > > > > I thinking this patch
> > > > > > >
> > > > > >
> > > >
> > https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269
> > > > > > > is
> > > > > > > not apply in 1.1.15-rc1?
> > > > > > >
> > > > > > > How I can get integere value from node attribute?
> > > > > >
> > > > > > With the correct name for the given attribute.
> > > >
> > > > --
> > > > Jehan-Guillaume de Rorthais
> > > > Dalibo
> > > >
> >
> >
> >
> > --
> > Jehan-Guillaume de Rorthais
> > Dalibo
> >



-- 
Jehan-Guillaume de Rorthais
Dalibo

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-23 Thread Andrey Rogovsky
This is not work
#   crm_master -r master-pgsqld -N $HOSTNAME -Q
Error performing operation: No such device or address


2016-05-23 11:46 GMT+03:00 Jehan-Guillaume de Rorthais :

> Le Mon, 23 May 2016 11:36:37 +0300,
> Andrey Rogovsky  a écrit :
>
> > Hi
> > This is not work for me:
> > #   crm_master -r pgsqld -N $HOSTNAME $HOSTNAME -Q
> > Error performing operation: No such device or address
>
> This should be :
>
>   crm_master -r pgsqld -N $HOSTNAME -Q
>
> (supposing as your resource name is "pgsqld")
>
> > 2016-05-23 11:19 GMT+03:00 Jehan-Guillaume de Rorthais  >:
> >
> > > Le Mon, 23 May 2016 09:28:41 +0300,
> > > Andrey Rogovsky  a écrit :
> > >
> > > > I try crm_master, but it not works:
> > > > # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME
> > > > --attr-name master-pgsqld --get-value
> > > > crm_master: invalid option -- 't'
> > > > crm_master: unrecognized option '--node-uname'
> > > > crm_master: unrecognized option '--attr-name'
> > > > crm_master - A convenience wrapper for crm_attribute
> > >
> > > I tried this with success:
> > >
> > >   crm_master -r pgsqld -N hanode1 -Q
> > >
> > > The resource you have to give is the resource (the one that is cloned),
> > > not the
> > > master resource.
> > >
> > >
> > > > 2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais <
> j...@dalibo.com
> > > >:
> > > >
> > > > > Le Fri, 20 May 2016 15:31:16 +0300,
> > > > > Andrey Rogovsky  a écrit :
> > > > >
> > > > > > Hi!
> > > > > > I cant get attribute value:
> > > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> > > > > --attr-name
> > > > > > master-pgsqld --get-value
> > > > > > Error performing operation: No such device or address
> > > > > >
> > > > > > This value is present:
> > > > > > crm_mon -A1  | grep master-pgsqld
> > > > > > + master-pgsqld: 1001
> > > > > > + master-pgsqld: 1000
> > > > > > + master-pgsqld: 1
> > > > >
> > > > > Use crm_master to get master scores easily.
> > > > >
> > > > > > I use 1.1.15-rc1
> > > > > > dpkg -l | grep pacemaker-cli-utils
> > > > > > ii  pacemaker-cli-utils1.1.15-rc1
> > > amd64
> > > > > >Command line interface utilities for Pacemaker
> > > > > >
> > > > > > Also non-integer values work file:
> > > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> > > > > --attr-name
> > > > > > pgsql-data-status --get-value
> > > > > > STREAMING|ASYNC
> > > > >
> > > > > I'm very confused. It sounds you are mixing two different resource
> > > agent
> > > > > for
> > > > > PostgreSQL. I can recognize scores for you master resource set bu
> the
> > > > > pgsqlms
> > > > > RA (PAF project) and the data-status attribute from the pgsql RA...
> > > > >
> > > > > > I thinking this patch
> > > > > >
> > > > >
> > >
> https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269
> > > > > > is
> > > > > > not apply in 1.1.15-rc1?
> > > > > >
> > > > > > How I can get integere value from node attribute?
> > > > >
> > > > > With the correct name for the given attribute.
> > >
> > > --
> > > Jehan-Guillaume de Rorthais
> > > Dalibo
> > >
>
>
>
> --
> Jehan-Guillaume de Rorthais
> Dalibo
>
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-23 Thread Jehan-Guillaume de Rorthais
Le Mon, 23 May 2016 11:36:37 +0300,
Andrey Rogovsky  a écrit :

> Hi
> This is not work for me:
> #   crm_master -r pgsqld -N $HOSTNAME $HOSTNAME -Q
> Error performing operation: No such device or address

This should be :

  crm_master -r pgsqld -N $HOSTNAME -Q

(supposing as your resource name is "pgsqld")

> 2016-05-23 11:19 GMT+03:00 Jehan-Guillaume de Rorthais :
> 
> > Le Mon, 23 May 2016 09:28:41 +0300,
> > Andrey Rogovsky  a écrit :
> >
> > > I try crm_master, but it not works:
> > > # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME
> > > --attr-name master-pgsqld --get-value
> > > crm_master: invalid option -- 't'
> > > crm_master: unrecognized option '--node-uname'
> > > crm_master: unrecognized option '--attr-name'
> > > crm_master - A convenience wrapper for crm_attribute
> >
> > I tried this with success:
> >
> >   crm_master -r pgsqld -N hanode1 -Q
> >
> > The resource you have to give is the resource (the one that is cloned),
> > not the
> > master resource.
> >
> >
> > > 2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais  > >:
> > >
> > > > Le Fri, 20 May 2016 15:31:16 +0300,
> > > > Andrey Rogovsky  a écrit :
> > > >
> > > > > Hi!
> > > > > I cant get attribute value:
> > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> > > > --attr-name
> > > > > master-pgsqld --get-value
> > > > > Error performing operation: No such device or address
> > > > >
> > > > > This value is present:
> > > > > crm_mon -A1  | grep master-pgsqld
> > > > > + master-pgsqld: 1001
> > > > > + master-pgsqld: 1000
> > > > > + master-pgsqld: 1
> > > >
> > > > Use crm_master to get master scores easily.
> > > >
> > > > > I use 1.1.15-rc1
> > > > > dpkg -l | grep pacemaker-cli-utils
> > > > > ii  pacemaker-cli-utils1.1.15-rc1
> > amd64
> > > > >Command line interface utilities for Pacemaker
> > > > >
> > > > > Also non-integer values work file:
> > > > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> > > > --attr-name
> > > > > pgsql-data-status --get-value
> > > > > STREAMING|ASYNC
> > > >
> > > > I'm very confused. It sounds you are mixing two different resource
> > agent
> > > > for
> > > > PostgreSQL. I can recognize scores for you master resource set bu the
> > > > pgsqlms
> > > > RA (PAF project) and the data-status attribute from the pgsql RA...
> > > >
> > > > > I thinking this patch
> > > > >
> > > >
> > https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269
> > > > > is
> > > > > not apply in 1.1.15-rc1?
> > > > >
> > > > > How I can get integere value from node attribute?
> > > >
> > > > With the correct name for the given attribute.
> >
> > --
> > Jehan-Guillaume de Rorthais
> > Dalibo
> >



-- 
Jehan-Guillaume de Rorthais
Dalibo

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-23 Thread Jehan-Guillaume de Rorthais
Le Mon, 23 May 2016 09:28:41 +0300,
Andrey Rogovsky  a écrit :

> I try crm_master, but it not works:
> # LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME
> --attr-name master-pgsqld --get-value
> crm_master: invalid option -- 't'
> crm_master: unrecognized option '--node-uname'
> crm_master: unrecognized option '--attr-name'
> crm_master - A convenience wrapper for crm_attribute

I tried this with success:

  crm_master -r pgsqld -N hanode1 -Q

The resource you have to give is the resource (the one that is cloned), not the
master resource.


> 2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais :
> 
> > Le Fri, 20 May 2016 15:31:16 +0300,
> > Andrey Rogovsky  a écrit :
> >
> > > Hi!
> > > I cant get attribute value:
> > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> > --attr-name
> > > master-pgsqld --get-value
> > > Error performing operation: No such device or address
> > >
> > > This value is present:
> > > crm_mon -A1  | grep master-pgsqld
> > > + master-pgsqld: 1001
> > > + master-pgsqld: 1000
> > > + master-pgsqld: 1
> >
> > Use crm_master to get master scores easily.
> >
> > > I use 1.1.15-rc1
> > > dpkg -l | grep pacemaker-cli-utils
> > > ii  pacemaker-cli-utils1.1.15-rc1amd64
> > >Command line interface utilities for Pacemaker
> > >
> > > Also non-integer values work file:
> > > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> > --attr-name
> > > pgsql-data-status --get-value
> > > STREAMING|ASYNC
> >
> > I'm very confused. It sounds you are mixing two different resource agent
> > for
> > PostgreSQL. I can recognize scores for you master resource set bu the
> > pgsqlms
> > RA (PAF project) and the data-status attribute from the pgsql RA...
> >
> > > I thinking this patch
> > >
> > https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269
> > > is
> > > not apply in 1.1.15-rc1?
> > >
> > > How I can get integere value from node attribute?
> >
> > With the correct name for the given attribute.

-- 
Jehan-Guillaume de Rorthais
Dalibo

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-23 Thread Andrey Rogovsky
Hi!
I try crm_master, but it not works:
# LC_ALL=C /usr/sbin/crm_master -q -t nodes --node-uname $HOSTNAME
--attr-name master-pgsqld --get-value
crm_master: invalid option -- 't'
crm_master: unrecognized option '--node-uname'
crm_master: unrecognized option '--attr-name'
crm_master - A convenience wrapper for crm_attribute

I use PAF agent oly, and want get attribute master-pgsqld


2016-05-20 16:40 GMT+03:00 Jehan-Guillaume de Rorthais :

> Le Fri, 20 May 2016 15:31:16 +0300,
> Andrey Rogovsky  a écrit :
>
> > Hi!
> > I cant get attribute value:
> > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> --attr-name
> > master-pgsqld --get-value
> > Error performing operation: No such device or address
> >
> > This value is present:
> > crm_mon -A1  | grep master-pgsqld
> > + master-pgsqld: 1001
> > + master-pgsqld: 1000
> > + master-pgsqld: 1
>
> Use crm_master to get master scores easily.
>
> > I use 1.1.15-rc1
> > dpkg -l | grep pacemaker-cli-utils
> > ii  pacemaker-cli-utils1.1.15-rc1amd64
> >Command line interface utilities for Pacemaker
> >
> > Also non-integer values work file:
> > /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME
> --attr-name
> > pgsql-data-status --get-value
> > STREAMING|ASYNC
>
> I'm very confused. It sounds you are mixing two different resource agent
> for
> PostgreSQL. I can recognize scores for you master resource set bu the
> pgsqlms
> RA (PAF project) and the data-status attribute from the pgsql RA...
>
> > I thinking this patch
> >
> https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269
> > is
> > not apply in 1.1.15-rc1?
> >
> > How I can get integere value from node attribute?
>
> With the correct name for the given attribute.
>
> Regards,
> --
> Jehan-Guillaume de Rorthais
> Dalibo
>
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] crm_attribute bug in 1.1.15-rc1

2016-05-20 Thread Jehan-Guillaume de Rorthais
Le Fri, 20 May 2016 15:31:16 +0300,
Andrey Rogovsky  a écrit :

> Hi!
> I cant get attribute value:
> /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME --attr-name
> master-pgsqld --get-value
> Error performing operation: No such device or address
> 
> This value is present:
> crm_mon -A1  | grep master-pgsqld
> + master-pgsqld: 1001
> + master-pgsqld: 1000
> + master-pgsqld: 1

Use crm_master to get master scores easily.

> I use 1.1.15-rc1
> dpkg -l | grep pacemaker-cli-utils
> ii  pacemaker-cli-utils1.1.15-rc1amd64
>Command line interface utilities for Pacemaker
> 
> Also non-integer values work file:
> /usr/sbin/crm_attribute -q --type nodes --node-uname $HOSTNAME --attr-name
> pgsql-data-status --get-value
> STREAMING|ASYNC

I'm very confused. It sounds you are mixing two different resource agent for
PostgreSQL. I can recognize scores for you master resource set bu the pgsqlms
RA (PAF project) and the data-status attribute from the pgsql RA...

> I thinking this patch
> https://github.com/ClusterLabs/pacemaker/commit/26d34a9171bddae67c56ebd8c2513ea8fa770204?diff=unified#diff-55bc49a57c12093902e3842ce349a71fR269
> is
> not apply in 1.1.15-rc1?
> 
> How I can get integere value from node attribute?

With the correct name for the given attribute.

Regards,
-- 
Jehan-Guillaume de Rorthais
Dalibo

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org