[Linux-HA] crm_attribute question

Andrew Beekhof beekhof at gmail.com
Thu Apr 17 00:00:41 MDT 2008


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


More information about the Linux-HA mailing list