Andrew Beekhof wrote: > On Thu, Apr 17, 2008 at 12:13 AM, Johan Hoeke <[EMAIL PROTECTED]> 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: >> >> [EMAIL PROTECTED] ~]# 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="[EMAIL PROTECTED],[EMAIL PROTECTED]"/> >> <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: >> [EMAIL PROTECTED] ~]# crm_attribute --attr-id id_mailto_email >> --attr-name=email --attr-value [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL >> PROTECTED] >> >> I get: >> Error setting [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] >> (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 [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]
grrr, its not working here. tried --get-value first to check what I'm doing. getting errors like [EMAIL PROTECTED] ~]# crm_attribute -G -i email id=email value=(null) Error performing operation: The object/attribute does not exist [EMAIL PROTECTED] ~]# crm_attribute -G -s email value=(null) Error performing operation: cib object missing [EMAIL PROTECTED] ~]# crm_attribute -G -n email name=email value=(null) Error performing operation: The object/attribute does not exist [EMAIL PROTECTED] ~]# crm_attribute -G -i id_mailto_email id=id_mailto_email value=(null) Error performing operation: The object/attribute does not exist [EMAIL PROTECTED] ~]# 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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
