[Pacemaker] exit code crm_attibute

Andrey Groshev greenx at yandex.ru
Tue Nov 19 07:07:34 EST 2013


Hellow Andrew!

I'm sorry, forgot about this thread, and now again came across the same problem.
# crm_attribute --type nodes --node-uname fackename.node.org --attr-name notexistattibute --query > /dev/null; echo $?
Could not map name=fackename.node.org to a UUID
0

Version PCMK 1.1.11

23.09.2013, 08:23, "Andrew Beekhof" <andrew at beekhof.net>:
> On 20/09/2013, at 5:53 PM, Andrey Groshev <greenx at yandex.ru> wrote:
>
>>  Hi again!
>>
>>  Today again met a strange behavior.
>>  I asked for a non-existent attribute of an existing node.
>>
>>  # crm_attribute --type nodes --node-uname exist.node.domain.com --attr-name notexistattibute --query  ; echo $?
>>  Could not map name=dev-cluster2-node2.unix.tensor.ru to a UUID
>>  0
>>
>>  That is, to STDERR - swore, but the exit code - 0.
>
> That probably shouldn't happen.  Version?
>
>>  _______________________________________________
>>  Pacemaker mailing list: Pacemaker at 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 at 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




More information about the Pacemaker mailing list