D'oh! Yes, it's Pacemaker 1.0.3 I should have said so.
I am sorry for what turns out to be a[nother] the stupid question. Thank you for your kind patience. Be well, Karl On Mon, Aug 10, 2009 at 1:50 PM, Dejan Muhamedagic <[email protected]>wrote: > Hi, > > On Mon, Aug 10, 2009 at 12:54:44PM -0400, Karl W. Lewis wrote: > > I have used cibadmin to add contraints to a running cluster, but now I > wish > > to add another resource, a stonith configuration, to my cluster. > > I guess that this is pacemaker 1.0. > > > The snippet of xml I am trying to feed the cluster looks like this: > > >>>> > > <resources> > > <clone id="DoFencing"> > > <meta_attributes id = "DoFencing_options"> > > <nvpair id="DoFencing_option-1" name="globally-unique" > value="false"/> > > </meta_attributes> > > <instance_attributes> > > <nvpair name="clone_max" value="3"/> > > <nvpair name="clone_node_max" value="1"/> > > Both are missing id. Also, replace "_" with "-". > > > </instance_attributes> > > <primitive id="child_DoFencing" class="stonith" type="external/egenera" > > provider="heartbeat"> > > <operations> > > <op name="monitor" interval="400s" timeout="200s" > prereq="nothing"/> > > Missing id. "prereq" is now named "requires". > > Thanks, > > Dejan > > > </operations> > > <instance_attributes id="egenera-parameters"> > > <nvpair id="egenera-parameter-1" name="hostlist" > value="wsc-voo-205, > > wsc-voo-206, wsc-voo-207"/> > > </instance_attributes> > > </primitive> > > </clone> > > </resources> > > > > <<<< > > > > >>> > > cibadmin -V -V -V -V -V -V -V -C -o resources -x stonith_production.xml > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug2: main: Option o => > > resources > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug2: main: Option x => > > stonith_production.xml > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <resources > > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <clone id="DoFencing" > > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <meta_attributes id="DoFencing_options" > > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <nvpair id="DoFencing_option-1" name="globally-unique" > > value="false" /> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] </meta_attributes> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <instance_attributes > > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <nvpair name="clone_max" value="3" /> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <nvpair name="clone_node_max" value="1" /> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] </instance_attributes> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <primitive id="child_DoFencing" class="stonith" > > type="external/egenera" provider="heartbeat" > > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <operations > > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <op name="monitor" interval="400s" timeout="200s" > > prereq="nothing" /> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] </operations> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <instance_attributes id="egenera-parameters" > > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] <nvpair id="egenera-parameter-1" name="hostlist" > > value="wsc-voo-205, wsc-voo-206, wsc-voo-207" /> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] </instance_attributes> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] </primitive> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] </clone> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: log_data_element: main: > [admin > > input] </resources> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: > > init_client_ipc_comms_nodispatch: Attempting to talk on: > /var/run/crm/cib_rw > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug3: > > init_client_ipc_comms_nodispatch: Processing of /var/run/crm/cib_rw > complete > > cibadmin[18807]: 2009/08/10_12:44:17 debug: > > init_client_ipc_comms_nodispatch: Attempting to talk on: > > /var/run/crm/cib_callback > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug3: > > init_client_ipc_comms_nodispatch: Processing of /var/run/crm/cib_callback > > complete > > cibadmin[18807]: 2009/08/10_12:44:17 debug: cib_native_signon_raw: > > Connection to CIB successful > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug3: > cib_native_perform_op: > > Sending cib_create message to CIB service > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug3: > cib_native_perform_op: > > Message sent > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug3: > cib_native_perform_op: > > Async call, returning > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug3: main: cibadmin > waiting > > for reply from the local CIB > > cibadmin[18807]: 2009/08/10_12:44:17 info: main: Starting mainloop > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug2: cib_native_callback: > > Invoking callback cibadmin_op_callback for call 2 > > cibadmin[18807]: 2009/08/10_12:44:17 WARN: cibadmin_op_callback: Call > > cib_create failed (-47): Update does not conform to the configured > > schema/DTD > > Call cib_create failed (-47): Update does not conform to the configured > > schema/DTD > > <null> > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug3: cib_native_msgready: > No > > message pending > > cibadmin[18807]: 2009/08/10_12:44:17 debug: cib_native_signoff: Signing > out > > of the CIB Service > > cibadmin[18807]: 2009/08/10_12:44:17 debug: debug3: main: cibadmin > exiting > > normally > > <<< > > > > The log says: > > >> > > cib[4164]: 2009/08/10_12:44:17 ERROR: Element instance_attributes failed > to > > validate content > > > > cib[4164]: 2009/08/10_12:44:17 ERROR: Extra element instance_attributes > in > > interleave > > > > cib[4164]: 2009/08/10_12:44:17 ERROR: Element clone failed to validate > > content > > > > cib[4164]: 2009/08/10_12:44:17 ERROR: Element resources has extra > content: > > group > > > > cib[4164]: 2009/08/10_12:44:17 ERROR: Invalid sequence in interleave > > > > cib[4164]: 2009/08/10_12:44:17 ERROR: Element cib failed to validate > content > > > > cib[4164]: 2009/08/10_12:44:17 WARN: cib_perform_op: Updated CIB does not > > validate against pacemaker-1.0 schema/dtd > > cib[4164]: 2009/08/10_12:44:17 WARN: cib_diff_notify: Update (client: > > cibadmin, call:2): 0.154.17 -> 0.155.1 (Update does not conform to the > > configured schema/DTD) > > cib[4164]: 2009/08/10_12:44:17 WARN: cib_process_request: Operation > > complete: op cib_create for section resources (origin=local/cibadmin/2, > > version=0.154.17): Updat > > e does not conform to the configured schema/DTD (rc=-47) > > << > > > > The reference to "group" doesn't make sense to me, except that my cluster > > resourdces as currently configured include a group of resources that must > > stay together, (a disk to mount and an IP address). > > > > Is it obvious what I am doing wrong? > > > > Thanks, > > > > Karl > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
