Re: [Pacemaker] crm_attribute not returning node attribute

2013-04-29 Thread Andrew Beekhof

On 20/04/2013, at 3:39 AM, Brian J. Murrell  wrote:

> Given:
> 
> host1# crm node attribute host1 show foo
> scope=nodes  name=foo value=bar
> 
> Why doesn't this return anything:
> 
> host1# crm_attribute --node host1 --name foo --query

This is looking up transient attributes.
You need to add "-l forever"

> host1# echo $?
> 0
> 
> cibadmin -Q confirms the presence of the attribute:
> 
>  
>
>  
>
>  
> 
> This is on pacemaker 1.1.8 on EL6.4 and crmsh.
> 
> Thoughts?
> 
> b.
> 
> ___
> 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


[Pacemaker] crm_attribute not returning node attribute

2013-04-19 Thread Brian J. Murrell
Given:

host1# crm node attribute host1 show foo
scope=nodes  name=foo value=bar

Why doesn't this return anything:

host1# crm_attribute --node host1 --name foo --query
host1# echo $?
0

cibadmin -Q confirms the presence of the attribute:

  

  

  

This is on pacemaker 1.1.8 on EL6.4 and crmsh.

Thoughts?

b.



signature.asc
Description: OpenPGP digital signature
___
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