On 25/09/11 01:16, Brian J. Murrell wrote:
Using pacemaker-1.0.10-1.4.el5 I am trying to add the "R_10.10.10.101"
IPaddr2 example resource:
<primitive id="R_10.10.10.101" class="ocf" type="IPaddr2"
provider="heartbeat">
<instance_attributes id="RA_R_10.10.10.101">
<attributes>
<nvpair id="R_ip_P_ip" name="ip" value="10.10.10.101"/>
<nvpair id="R_ip_P_nic" name="nic" value="eth0"/>
</attributes>
</instance_attributes>
</primitive>
from the cibadmin manpage under EXAMPLES and getting:
# cibadmin -o resources -U -x test.xml
Call cib_modify failed (-22): The object/attribute does not exist
<null>
Any ideas why?
Because:
1) You need to run "cibadmin -o resources -C -x test.xml" to create the
resource (-C creates, -U updates an existing resource).
2) Even if you use -C, it will probably still fail due to a schema
violation, because the <attributes> element is bogus (apparently the
cibadmin man page needs tweaking). Try:
<primitive id="R_10.10.10.101" class="ocf" type="IPaddr2"
provider="heartbeat">
<instance_attributes id="RA_R_10.10.10.101">
<nvpair id="R_ip_P_ip" name="ip" value="10.10.10.101"/>
<nvpair id="R_ip_P_nic" name="nic" value="eth0"/>
</instance_attributes>
</primitive>
Better yet, use the crm shell instead of cibadmin, and you can forget
about the XML :)
Regards,
Tim
--
Tim Serong
Senior Clustering Engineer
SUSE
tser...@suse.com
_______________________________________________
Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker