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

2011-07-01 Thread Andrew Beekhof
On Tue, May 17, 2011 at 2:55 AM, Rakesh K  wrote:
> Andrew Beekhof  writes:
>
>>
>> # CIB_file=./cib.xml crm_attribute -N mysql3 -n master-Mysql:0 -l
>> forever -v 3 -V
>> crm_attribute[23703]: 2011/05/10_08:42:59 info: Invoked: crm_attribute
>> -N mysql3 -n master-Mysql:0 -l forever -v 3 -V
>> crm_attribute[23703]: 2011/05/10_08:42:59 ERROR: Type ID doesn't allow
>> value 'nodes-87b8b88e-3ded-4e34-8708-46f7afe62935-master-Mysql:0'
>>
>> So no colons allowed I'm afraid.
>>
> Hi andrew
>
> Thank you very much for replying back
>
> the colons are created by the HA itself

No, I mean when you specify a value for -n.

Bad:
 -n master-Mysql:0

Good:
 -n master-Mysql
>
>
>           id="status-87b8b88e-3ded-4e34-8708-46f7afe62935-master-Mysql:0" value="3601"/>
>
>
>           id="status-6317f856-e57b-4a03-acf1-ca81af4f19ce-master-Mysql:1"
> name="master-Mysql:1" value="1"/>
>
> Regards
> Rakesh
>
>
>
> ___
> 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
>

___
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


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

2011-05-16 Thread Rakesh K
Andrew Beekhof  writes:

> 
> # CIB_file=./cib.xml crm_attribute -N mysql3 -n master-Mysql:0 -l
> forever -v 3 -V
> crm_attribute[23703]: 2011/05/10_08:42:59 info: Invoked: crm_attribute
> -N mysql3 -n master-Mysql:0 -l forever -v 3 -V
> crm_attribute[23703]: 2011/05/10_08:42:59 ERROR: Type ID doesn't allow
> value 'nodes-87b8b88e-3ded-4e34-8708-46f7afe62935-master-Mysql:0'
> 
> So no colons allowed I'm afraid.
> 
Hi andrew 

Thank you very much for replying back

the colons are created by the HA itself

  
  
 

  
  
Regards
Rakesh



___
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


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

2011-05-09 Thread Andrew Beekhof
On Tue, May 10, 2011 at 8:44 AM, Andrew Beekhof  wrote:
> # CIB_file=./cib.xml crm_attribute -N mysql3 -n master-Mysql:0 -l
> forever -v 3 -V
> crm_attribute[23703]: 2011/05/10_08:42:59 info: Invoked: crm_attribute
> -N mysql3 -n master-Mysql:0 -l forever -v 3 -V
> crm_attribute[23703]: 2011/05/10_08:42:59 ERROR: Type ID doesn't allow
> value 'nodes-87b8b88e-3ded-4e34-8708-46f7afe62935-master-Mysql:0'
>
> So no colons allowed I'm afraid.

Try adding this to the command line: -i some-other-id-without-a-colon

>
> On Fri, May 6, 2011 at 7:00 PM, rakesh k  wrote:
>> 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
>>
>> > 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">
>>   
>>     
>>   
>>     > value="1.0.9-89bd754939df5150de7cd76835f98fe90851b677"/>
>>     > name="cluster-infrastructure" value="Heartbeat"/>
>>     > name="stonith-enabled" value="false"/>
>>     > name="no-quorum-policy" value="ignore"/>
>>     > name="last-lrm-refresh" value="1300787402"/>
>>   
>>     
>>     
>>   > uname="mysql3"/>
>>   > uname="cisco-demomsf"/>
>>     
>>     
>>   > type="IPaddr3">
>>     
>>   > value="172.21.52.150"/>
>>   > value="eth0:3"/>
>>   > name="vip_cleanup_file" value="/var/run/bigha.pid"/>
>>     
>>     
>>   > timeout="120s"/>
>>   
>>     
>>     
>>   > name="target-role" value="Started"/>
>>     
>>   
>>   
>>     
>>   > value="true"/>
>>   > name="target-role" value="Started"/>
>>     
>>     
>>   
>>     > value="/usr/bin/mysqld_safe"/>
>>     > value="/etc/my.cnf"/>
>>     > value="/var/lib/mysql"/>
>>     > value="mysql"/>
>>     > value="/var/lib/mysql/mysql.pid"/>
>>     > value="/var/lib/mysql/mysql.sock"/>
>>     > name="test_passwd" value="slavepass"/>
>>     > name="test_table" value="msfha.conn"/>
>>     > name="test_user" value="repl"/>
>>     > name="replication_user" value="repl"/>
>>     > name="replication_passwd" value="slavepass"/>
>>   
>>   
>>     > timeout="120s"/>
>>     
>>     > role="Master" timeout="8s"/>
>>     > timeout="8s"/>
>>   
>>     
>>   
>>     
>>     
>>   
>>     
>>   > operation="eq" value="mysql3"/>
>>     
>>     
>>   > operation="eq" value="cisco-demomsf"/>
>>     
>>   
>>   > with-rsc="MS_Mysql" with-rsc-role="Master"/>
>>   > then="MS_Mysql"/>
>>     
>>     
>>   
>>     > name="resource-stickiness" value="100"/>
>>   
>>     
>>     
>>   
>>   
>>     > ha="active" in_ccm="true" crmd="online" join="member" expected="member"
>> crm-debug-origin="do_update_resource" shutdown="0">
>>   
>>     
>>   > provider="heartbeat">
>>     > 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"/>
>>     > 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"/>
>>     > 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"/>
>>     > 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="932125359d1c

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

2011-05-09 Thread Andrew Beekhof
# CIB_file=./cib.xml crm_attribute -N mysql3 -n master-Mysql:0 -l
forever -v 3 -V
crm_attribute[23703]: 2011/05/10_08:42:59 info: Invoked: crm_attribute
-N mysql3 -n master-Mysql:0 -l forever -v 3 -V
crm_attribute[23703]: 2011/05/10_08:42:59 ERROR: Type ID doesn't allow
value 'nodes-87b8b88e-3ded-4e34-8708-46f7afe62935-master-Mysql:0'

So no colons allowed I'm afraid.

On Fri, May 6, 2011 at 7:00 PM, rakesh k  wrote:
> 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
>
>  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">
>   
>     
>   
>      value="1.0.9-89bd754939df5150de7cd76835f98fe90851b677"/>
>      name="cluster-infrastructure" value="Heartbeat"/>
>      name="stonith-enabled" value="false"/>
>      name="no-quorum-policy" value="ignore"/>
>      name="last-lrm-refresh" value="1300787402"/>
>   
>     
>     
>    uname="mysql3"/>
>    uname="cisco-demomsf"/>
>     
>     
>    type="IPaddr3">
>     
>    value="172.21.52.150"/>
>    value="eth0:3"/>
>    name="vip_cleanup_file" value="/var/run/bigha.pid"/>
>     
>     
>    timeout="120s"/>
>   
>     
>     
>    name="target-role" value="Started"/>
>     
>   
>   
>     
>    value="true"/>
>    name="target-role" value="Started"/>
>     
>     
>   
>      value="/usr/bin/mysqld_safe"/>
>      value="/etc/my.cnf"/>
>      value="/var/lib/mysql"/>
>      value="mysql"/>
>      value="/var/lib/mysql/mysql.pid"/>
>      value="/var/lib/mysql/mysql.sock"/>
>      name="test_passwd" value="slavepass"/>
>      name="test_table" value="msfha.conn"/>
>      name="test_user" value="repl"/>
>      name="replication_user" value="repl"/>
>      name="replication_passwd" value="slavepass"/>
>   
>   
>      timeout="120s"/>
>     
>      role="Master" timeout="8s"/>
>      timeout="8s"/>
>   
>     
>   
>     
>     
>   
>     
>    operation="eq" value="mysql3"/>
>     
>     
>    operation="eq" value="cisco-demomsf"/>
>     
>   
>    with-rsc="MS_Mysql" with-rsc-role="Master"/>
>    then="MS_Mysql"/>
>     
>     
>   
>      name="resource-stickiness" value="100"/>
>   
>     
>     
>   
>   
>      ha="active" in_ccm="true" crmd="online" join="member" expected="member"
> crm-debug-origin="do_update_resource" shutdown="0">
>   
>     
>    provider="heartbeat">
>      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"/>
>      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"/>
>      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"/>
>      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"/>
>      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"
>

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

2011-05-06 Thread rakesh k
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


  

  





  


  
  


  

  
  
  


  
  


  

  
  

  
  


  











  
  




  

  


  

  


  

  
  
  


  

  


  
  

  

  







  
  



  

  
  

  
  

  


  

  

  
  






  

  
  

  
  

  

  



   - 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
___
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