[Linux-HA] crm_attribute question
Johan Hoeke
johan.hoeke at uvt.nl
Thu Apr 17 04:21:49 MDT 2008
Andrew Beekhof wrote:
> On Thu, Apr 17, 2008 at 12:13 AM, Johan Hoeke <johan.hoeke at uvt.nl> wrote:
>> Hi,
>>
>> Looking to change the email adresses of my MailTo resource using
>> crm_attribute. (heartbeat 2.1.3 on RHEL AS 4)
>>
>> similar to the question posed here:
>> http://www.gossamer-threads.com/lists/linuxha/users/46939
>>
>> where the cib looks like this:
>>
>> [root at abel ~]# crm_resource -x -r R_MailTo
>> R_MailTo (heartbeat::ocf:MailTo): Started bernoulli.uvt.nl
>> raw xml:
>> <primitive class="ocf" type="MailTo" provider="heartbeat" id="R_MailTo">
>> <instance_attributes id="R_MailTo_instance_attrs">
>> <attributes>
>> <nvpair name="target_role" id="R_MailTo_target_role"
>> value="started"/>
>> <nvpair id="id_mailto_email" name="email"
>> value="name1 at mail.not,name2 at mail.not"/>
>> <nvpair id="id_mailto_subject" name="subject" value="failover
>> occured on dloacc cluster!"/>
>> </attributes>
>> </instance_attributes>
>> <instance_attributes id="R_MailTo">
>> <attributes>
>> <nvpair name="is_managed" id="R_MailTo-is_managed" value="true"/>
>> </attributes>
>> </instance_attributes>
>> </primitive>
>>
>> if I do:
>> [root at abel ~]# crm_attribute --attr-id id_mailto_email
>> --attr-name=email --attr-value name1 at mail.not,mail2 at mail.not,mail3 at mail.not
>>
>> I get:
>> Error setting email=name1 at mail.not,mail2 at mail.not,mail3 at mail.not
>> (section=crm_config, set=cib-bootstrap-options): missing id or
>> id-collision detected
>> Error performing operation: missing id or id-collision detected
>>
>> I tried --set-name too, same errors.
>>
>> what am I doing wrong?
>
> nothing - there was a bug.
> the values supplied with --set-name and --attr-id were being used incorrectly.
>
> try:
>
> crm_attribute --set-name id_mailto_email --attr-name=email
> --attr-value name1 at mail.not,mail2 at mail.not,mail3 at mail.not
grrr, its not working here. tried --get-value first to check what I'm
doing. getting errors like
[root at abel ~]# crm_attribute -G -i email
id=email value=(null)
Error performing operation: The object/attribute does not exist
[root at abel ~]# crm_attribute -G -s email
value=(null)
Error performing operation: cib object missing
[root at abel ~]# crm_attribute -G -n email
name=email value=(null)
Error performing operation: The object/attribute does not exist
[root at abel ~]# crm_attribute -G -i id_mailto_email
id=id_mailto_email value=(null)
Error performing operation: The object/attribute does not exist
[root at abel ~]# crm_attribute -G -s id_mailto_email
value=(null)
Error performing operation: cib object missing
sticking with cibadmin for now. I'll try again as soon as i've got the
packages from de build site installed on our test cluster.
thanks,
Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20080417/439d50de/signature-0001.pgp
More information about the Linux-HA
mailing list