[Linux-HA] Querying resource state

Andrew Beekhof abeekhof at suse.de
Fri Jul 6 04:26:10 MDT 2007


On Jul 6, 2007, at 11:50 AM, Lars Marowsky-Bree wrote:

> On 2007-07-05T23:37:44, Ciro Iriarte <cyruspy at gmail.com> wrote:
>
>> Hi, i could query the "target_role" property after creating a  
>> resource
>> with crm_resource. But after modifying it i get "attribute does not
>> exist", is this correct?
>>
>> asusis-ope2:~ # crm_resource -r fs_hadata -g target_role --meta
>> stopped
>> asusis-ope2:~ # crm_resource -r fs_hadata -p target_role --meta -v
>> '#default'
>> asusis-ope2:~ # crm_resource -r fs_hadata -g target_role --meta
>> Error performing operation: The object/attribute does not exist
>
> It doesn't seem correct.
>
> Andrew?

"#default" is a special value that basically acts as if it doesn't exist

we do this because we made the mistake of allowing "meta-attributes"  
to be part of the <primitive ...> line from which its really hard to  
remove them.
so instead of trying to remove them, we set them to "#default".

in this scenario, Ciro would have been better of just using -d instead



More information about the Linux-HA mailing list