[Pacemaker] [pacemaker] Error while executing crm_attribute command from command line

rakesh k rakirocker4236 at gmail.com
Fri May 6 17:00:22 UTC 2011


Hi All

while i am executing crm_attribute command from the command line, it is
throwing the following error

*bash-3.2# crm_attribute -N mysql3 -n master-Mysql:0 -l forever -v 3
Error setting master-Mysql:0=3 (section=nodes,
set=nodes-87b8b88e-3ded-4e34-8708-46f7afe62935): Update does not conform to
the configured schema/DTD
Error performing operation: Update does not conform to the configured
schema/DTD*

Please find my cib.xml file

<cib validate-with="pacemaker-1.0" crm_feature_set="3.0.1" have-quorum="1"
admin_epoch="0" epoch="1194" num_updates="23" cib-last-written="Fri May  6
03:46:57 2011" dc-uuid="87b8b88e-3ded-4e34-8708-46f7afe62935">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
value="1.0.9-89bd754939df5150de7cd76835f98fe90851b677"/>
        <nvpair id="cib-bootstrap-options-cluster-infrastructure"
name="cluster-infrastructure" value="Heartbeat"/>
        <nvpair id="cib-bootstrap-options-stonith-enabled"
name="stonith-enabled" value="false"/>
        <nvpair id="cib-bootstrap-options-no-quorum-policy"
name="no-quorum-policy" value="ignore"/>
        <nvpair id="cib-bootstrap-options-last-lrm-refresh"
name="last-lrm-refresh" value="1300787402"/>
      </cluster_property_set>
    </crm_config>
    <nodes>
      <node id="87b8b88e-3ded-4e34-8708-46f7afe62935" type="normal"
uname="mysql3"/>
      <node id="6317f856-e57b-4a03-acf1-ca81af4f19ce" type="normal"
uname="cisco-demomsf"/>
    </nodes>
    <resources>
      <primitive class="ocf" id="MysqlVIP" provider="heartbeat"
type="IPaddr3">
        <instance_attributes id="MysqlVIP-instance_attributes">
          <nvpair id="MysqlVIP-instance_attributes-ip" name="ip"
value="172.21.52.150"/>
          <nvpair id="MysqlVIP-instance_attributes-eth_num" name="eth_num"
value="eth0:3"/>
          <nvpair id="MysqlVIP-instance_attributes-vip_cleanup_file"
name="vip_cleanup_file" value="/var/run/bigha.pid"/>
        </instance_attributes>
        <operations>
          <op id="MysqlVIP-start-0" interval="0" name="start"
timeout="120s"/>
          <op id="MysqlVIP-monitor-30s" interval="30s" name="monitor"/>
        </operations>
        <meta_attributes id="MysqlVIP-meta_attributes">
          <nvpair id="MysqlVIP-meta_attributes-target-role"
name="target-role" value="Started"/>
        </meta_attributes>
      </primitive>
      <master id="MS_Mysql">
        <meta_attributes id="MS_Mysql-meta_attributes">
          <nvpair id="MS_Mysql-meta_attributes-notify" name="notify"
value="true"/>
          <nvpair id="MS_Mysql-meta_attributes-target-role"
name="target-role" value="Started"/>
        </meta_attributes>
        <primitive class="ocf" id="Mysql" provider="heartbeat" type="mysql">
          <instance_attributes id="Mysql-instance_attributes">
            <nvpair id="Mysql-instance_attributes-binary" name="binary"
value="/usr/bin/mysqld_safe"/>
            <nvpair id="Mysql-instance_attributes-config" name="config"
value="/etc/my.cnf"/>
            <nvpair id="Mysql-instance_attributes-datadir" name="datadir"
value="/var/lib/mysql"/>
            <nvpair id="Mysql-instance_attributes-user" name="user"
value="mysql"/>
            <nvpair id="Mysql-instance_attributes-pid" name="pid"
value="/var/lib/mysql/mysql.pid"/>
            <nvpair id="Mysql-instance_attributes-socket" name="socket"
value="/var/lib/mysql/mysql.sock"/>
            <nvpair id="Mysql-instance_attributes-test_passwd"
name="test_passwd" value="slavepass"/>
            <nvpair id="Mysql-instance_attributes-test_table"
name="test_table" value="msfha.conn"/>
            <nvpair id="Mysql-instance_attributes-test_user"
name="test_user" value="repl"/>
            <nvpair id="Mysql-instance_attributes-replication_user"
name="replication_user" value="repl"/>
            <nvpair id="Mysql-instance_attributes-replication_passwd"
name="replication_passwd" value="slavepass"/>
          </instance_attributes>
          <operations>
            <op id="Mysql-start-0" interval="0" name="start"
timeout="120s"/>
            <op id="Mysql-stop-0" interval="0" name="stop" timeout="120s"/>
            <op id="Mysql-monitor-10s" interval="10s" name="monitor"
role="Master" timeout="8s"/>
            <op id="Mysql-monitor-12s" interval="12s" name="monitor"
timeout="8s"/>
          </operations>
        </primitive>
      </master>
    </resources>
    <constraints>
      <rsc_location id="L_Master" rsc="MS_Mysql">
        <rule id="L_Master-rule1" role="Master" score="100">
          <expression attribute="#uname" id="L_Master-expression-0"
operation="eq" value="mysql3"/>
        </rule>
        <rule id="L_Master-rule2" role="Master" score="100">
          <expression attribute="#uname" id="L_Master-expression"
operation="eq" value="cisco-demomsf"/>
        </rule>
      </rsc_location>
      <rsc_colocation id="Mysql-with-ip" rsc="MysqlVIP" score="INFINITY"
with-rsc="MS_Mysql" with-rsc-role="Master"/>
      <rsc_order first="MysqlVIP" id="Mysql-after-ip" score="INFINITY"
then="MS_Mysql"/>
    </constraints>
    <rsc_defaults>
      <meta_attributes id="rsc-options">
        <nvpair id="rsc-options-resource-stickiness"
name="resource-stickiness" value="100"/>
      </meta_attributes>
    </rsc_defaults>
    <op_defaults/>
  </configuration>
  <status>
    <node_state id="87b8b88e-3ded-4e34-8708-46f7afe62935" uname="mysql3"
ha="active" in_ccm="true" crmd="online" join="member" expected="member"
crm-debug-origin="do_update_resource" shutdown="0">
      <lrm id="87b8b88e-3ded-4e34-8708-46f7afe62935">
        <lrm_resources>
          <lrm_resource id="Mysql:0" type="mysql" class="ocf"
provider="heartbeat">
            <lrm_rsc_op id="Mysql:0_monitor_0" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="5:1:7:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:7;5:1:7:3b704de5-9486-4536-a27c-96b49d353828"
call-id="3" rc-code="7" op-status="0" interval="0" last-run="1304679810"
last-rc-change="1304679810" exec-time="30" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:0_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="8:3:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;8:3:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="6" rc-code="0" op-status="0" interval="0" last-run="1304679823"
last-rc-change="1304679823" exec-time="4270" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:0_post_notify_start_0" operation="notify"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="44:3:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;44:3:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="7" rc-code="0" op-status="0" interval="0" last-run="1304679828"
last-rc-change="1304679828" exec-time="40" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:0_pre_notify_promote_0" operation="notify"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="52:4:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;52:4:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="8" rc-code="0" op-status="0" interval="0" last-run="1304679830"
last-rc-change="1304679830" exec-time="60" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:0_promote_0" operation="promote"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="11:4:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;11:4:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="9" rc-code="0" op-status="0" interval="0" last-run="1304679832"
last-rc-change="1304679832" exec-time="70" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:0_post_notify_promote_0"
operation="notify" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.1"
transition-key="53:4:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;53:4:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="10" rc-code="0" op-status="0" interval="0" last-run="1304679832"
last-rc-change="1304679832" exec-time="40" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:0_monitor_10000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="12:5:8:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:8;12:5:8:3b704de5-9486-4536-a27c-96b49d353828"
call-id="11" rc-code="8" op-status="0" interval="10000"
last-run="1304679834" last-rc-change="1304679834" exec-time="40"
queue-time="0" op-digest="282b206c37147b338449bf3cf06f0e42"/>
          </lrm_resource>
          <lrm_resource id="MysqlVIP" type="IPaddr3" class="ocf"
provider="heartbeat">
            <lrm_rsc_op id="MysqlVIP_monitor_0" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="4:1:7:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:7;4:1:7:3b704de5-9486-4536-a27c-96b49d353828"
call-id="2" rc-code="7" op-status="0" interval="0" last-run="1304679810"
last-rc-change="1304679810" exec-time="80" queue-time="0"
op-digest="c2e64819b2adc07985af2b7eb7c1f0af"/>
            <lrm_rsc_op id="MysqlVIP_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="5:2:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;5:2:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="4" rc-code="0" op-status="0" interval="0" last-run="1304679812"
last-rc-change="1304679812" exec-time="10630" queue-time="0"
op-digest="c2e64819b2adc07985af2b7eb7c1f0af"/>
            <lrm_rsc_op id="MysqlVIP_monitor_30000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="7:3:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;7:3:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="5" rc-code="0" op-status="0" interval="30000" last-run="1304679823"
last-rc-change="1304679823" exec-time="120" queue-time="0"
op-digest="d39b820eb95a078a3a72c4346673a544"/>
          </lrm_resource>
        </lrm_resources>
      </lrm>
      <transient_attributes id="87b8b88e-3ded-4e34-8708-46f7afe62935">
        <instance_attributes
id="status-87b8b88e-3ded-4e34-8708-46f7afe62935">
          <nvpair
id="status-87b8b88e-3ded-4e34-8708-46f7afe62935-probe_complete"
name="probe_complete" value="true"/>
          <nvpair
id="status-87b8b88e-3ded-4e34-8708-46f7afe62935-master-Mysql:0"
name="master-Mysql:0" value="3601"/>
        </instance_attributes>
      </transient_attributes>
    </node_state>
    <node_state id="6317f856-e57b-4a03-acf1-ca81af4f19ce"
uname="cisco-demomsf" ha="active" in_ccm="true" crmd="online" join="member"
expected="member" crm-debug-origin="do_update_resource" shutdown="0">
      <lrm id="6317f856-e57b-4a03-acf1-ca81af4f19ce">
        <lrm_resources>
          <lrm_resource id="MysqlVIP" type="IPaddr3" class="ocf"
provider="heartbeat">
            <lrm_rsc_op id="MysqlVIP_monitor_0" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="7:1:7:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:7;7:1:7:3b704de5-9486-4536-a27c-96b49d353828"
call-id="2" rc-code="7" op-status="0" interval="0" last-run="1304679811"
last-rc-change="1304679811" exec-time="60" queue-time="0"
op-digest="c2e64819b2adc07985af2b7eb7c1f0af"/>
          </lrm_resource>
          <lrm_resource id="Mysql:1" type="mysql" class="ocf"
provider="heartbeat">
            <lrm_rsc_op id="Mysql:1_monitor_0" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="8:1:7:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:7;8:1:7:3b704de5-9486-4536-a27c-96b49d353828"
call-id="3" rc-code="7" op-status="0" interval="0" last-run="1304679811"
last-rc-change="1304679811" exec-time="60" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:1_start_0" operation="start"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="11:3:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;11:3:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="4" rc-code="0" op-status="0" interval="0" last-run="1304679824"
last-rc-change="1304679824" exec-time="4230" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:1_post_notify_start_0" operation="notify"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="45:3:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;45:3:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="5" rc-code="0" op-status="0" interval="0" last-run="1304679829"
last-rc-change="1304679829" exec-time="30" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:1_pre_notify_promote_0" operation="notify"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="54:4:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;54:4:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="6" rc-code="0" op-status="0" interval="0" last-run="1304679831"
last-rc-change="1304679831" exec-time="60" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:1_post_notify_promote_0"
operation="notify" crm-debug-origin="do_update_resource"
crm_feature_set="3.0.1"
transition-key="55:4:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;55:4:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="7" rc-code="0" op-status="0" interval="0" last-run="1304679833"
last-rc-change="1304679833" exec-time="50" queue-time="0"
op-digest="932125359d1c755081106e266778dcbd"/>
            <lrm_rsc_op id="Mysql:1_monitor_12000" operation="monitor"
crm-debug-origin="do_update_resource" crm_feature_set="3.0.1"
transition-key="16:5:0:3b704de5-9486-4536-a27c-96b49d353828"
transition-magic="0:0;16:5:0:3b704de5-9486-4536-a27c-96b49d353828"
call-id="8" rc-code="0" op-status="0" interval="12000" last-run="1304679835"
last-rc-change="1304679835" exec-time="40" queue-time="0"
op-digest="282b206c37147b338449bf3cf06f0e42"/>
          </lrm_resource>
        </lrm_resources>
      </lrm>
      <transient_attributes id="6317f856-e57b-4a03-acf1-ca81af4f19ce">
        <instance_attributes
id="status-6317f856-e57b-4a03-acf1-ca81af4f19ce">
          <nvpair
id="status-6317f856-e57b-4a03-acf1-ca81af4f19ce-probe_complete"
name="probe_complete" value="true"/>
          <nvpair
id="status-6317f856-e57b-4a03-acf1-ca81af4f19ce-master-Mysql:1"
name="master-Mysql:1" value="1"/>
        </instance_attributes>
      </transient_attributes>
    </node_state>
  </status>
</cib>


   - What is the exact meaning of transient_attributes and instance
   attributes,

crm_attribute -N mysql3 -n master-Mysql:0 -l reboot -v 200

when i executed the above command from the command line it has been executed
without any errors and updated the cib.xml file in the transient and
instance attributes directives,

but if use forever instead of reboot , i am facing the issue, can you please
help me regarding this issue, and let me know exactly what is meant by
transient_attributes and instance attributes,

Regards
Rakesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110506/70e6f573/attachment-0003.html>


More information about the Pacemaker mailing list