Hi Kristoffer,

Thank you for comments.

All right!

About "commit replace", I confirm it on Monday.


Many Thanks!
Hideo Yamauchi.


----- Original Message -----
> From: Kristoffer Grönlund <[email protected]>
> To: [email protected]; General Linux-HA mailing list 
> <[email protected]>; LINUX-HA <[email protected]>
> Cc: 
> Date: 2014/11/28, Fri 19:06
> Subject: Re: [Linux-HA] [crmsh] Question about latest crmsh.
> 
> 
> Hi,
> 
> Answers to your questions follow inline.
> 
> [email protected] writes:
> 
>>  Hi All,
>> 
>>  We used the latest edition of 
> crmsh-b932826fb4f924137eab9efd13b7bddf8afde3f0 with Pacamerk1.1.12.
>>  We sent the following CLI file.
>> 
> [snip]
>>  We had three questions.
>> 
>>  Q1) When we executed the next command, the contents of the CLI file are 
> displayed in the form that ""(double quatation) disappeared.
>> 
>>  [root@snmp1 ~]# crm configure show
>>  (snip)
>>  primitive prmDummy1 ocf:pacemaker:Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor interval=10s timeout=60s on-fail=restart \
>>          op stop interval=0s timeout=300s on-fail=block
>>  primitive prmDummy2 Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor interval=10s timeout=60s on-fail=restart \
>>          op stop interval=0s timeout=300s on-fail=block
>>  (snip)
>> 
>>  When we used Pacemaker1.0, results seem to be different.
>>  Are these specifications of new crm command?
>> 
> 
> Yes, this is the new CLI syntax for crmsh. Where possible, crmsh now
> tries to avoid adding the double quotation marks.
> 
> 
>>  Q2) When we executed the next command, ocf:heartbeat is not displayed.
>> 
>>  (snip)
>>  [root@snmp1 ~]# crm configure show
>>  (snip)
>>  primitive prmDummy2 Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor interval=10s timeout=60s on-fail=restart \
>>          op stop interval=0s timeout=300s on-fail=block
>>  (snip)
>> 
>>  When we used Pacemaker1.0, results seem to be different.
>>  Are these specifications of new crm command?
>> 
> 
> Yes, this is also a new feature in crmsh. When using agents from
> ocf:heartbeat:, crmsh does not display the prefix part.
> 
>>  Q3) We used the editing feature in the next procedure, but it is not 
> changed.
>>  Is a procedure of our editing wrong?
> 
> Unfortunately, this is a bug in pacemaker, fixed very recently:
> 
> https://github.com/ClusterLabs/pacemaker/pull/613
> 
> With your version of crmsh, it is possible to work around this issue by
> using the interactive shell to modify:
> 
> crm configure
> edit
> commit replace
> 
> Using the "commit replace" command circumvents the buggy CIB patching
> feature and uses cibadmin to update the CIB.
> 
> Cheers,
> Kristoffer
> 
>> 
>>  ----------------------------------------------
>>  [root@snmp1 ~]# crm configure edit prmDummy1
>> 
>>  primitive prmDummy1 ocf:pacemaker:Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor enabled=false interval=10s timeout=60s on-fail=restart 
> \
>>          ---> Add enabled=false.
>>          op stop interval=0s timeout=300s on-fail=block
>>  # vim: set filetype=pcmk:
>>  :wq
>> 
>>  [root@snmp1 ~]# crm configure show prmDummy1
>>  primitive prmDummy1 ocf:pacemaker:Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor enabled=false interval=10s timeout=60s on-fail=restart 
> \
>>          ---> Okay! : Add enabled=false.
>>          op stop interval=0s timeout=300s on-fail=block
>> 
>>  [root@snmp1 ~]# crm configure edit prmDummy1
>> 
>>  primitive prmDummy1 ocf:pacemaker:Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor interval=10s timeout=60s on-fail=restart \
>>          ---> Delete enabled=false.
>>          op stop interval=0s timeout=300s on-fail=block
>>  # vim: set filetype=pcmk:
>>  :wq
>> 
>>  [root@snmp1 ~]# crm configure show prmDummy1
>>  primitive prmDummy1 ocf:pacemaker:Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor interval=10s timeout=60s on-fail=restart enabled=false 
> \
>>          ---> why? Not Delete.
>>          op stop interval=0s timeout=300s on-fail=block
>> 
>>  [root@snmp1 ~]# crm configure edit prmDummy1
>> 
>>  primitive prmDummy1 ocf:pacemaker:Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor interval=11s timeout=60s on-fail=restart \
>>          ---> Delete enabled=false and Change interval.(10->11)
>>          op stop interval=0s timeout=300s on-fail=block
>>  # vim: set filetype=pcmk:
>>  :wq
>> 
>>  [root@snmp1 ~]# crm configure show prmDummy1
>>  primitive prmDummy1 ocf:pacemaker:Dummy \
>>          op start interval=0s timeout=300s on-fail=restart \
>>          op monitor interval=11s timeout=60s on-fail=restart \
>>          ---> Okay! : Delete enabled=false. 
>>          ---> why?
>>          op stop interval=0s timeout=300s on-fail=block
>> 
>>  ----------------------------------------------
>> 
>>  Best Regards,
>>  Hideo Yamauchi.
>> 
>>  _______________________________________________
>>  Linux-HA mailing list
>>  [email protected]
>>  http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>  See also: http://linux-ha.org/ReportingProblems
>> 
> 
> -- 
> // Kristoffer Grönlund
> // [email protected]
> 
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to