Vladislav Bogdanov <bub...@hoster-ok.com> writes:

> Hi Kristoffer,
>
> may be it is worth to silently (or at least with rc=0) allow deletion of 
> non-existing or already-deleted configuration statements?
>
> Background for that is that I keep track of the all configuration 
> statements myself, and, when I delete some resources (together with 
> accompanying constraints), they may go "out-of-order" to 'crm configure 
> delete', thus some constraints are automatically deleted when deleting 
> "lower" resource before the "upper" one. That leads to the whole crm 
> script to fail.

Actually, I decided that it does make sense to return 0 as the error
code even if the resource to delete doesn't exist, so I pushed a commit
to change this. The error message is still printed, though.

>
> Best,
> Vladislav
>
> 13.02.2015 17:03, Vladislav Bogdanov wrote:
>> Hi,
>>
>> Following fails with the current crmsh (e4b10ee).
>> # crm resource stop cl-http-lv
>> # crm resource stop cl-http-lv
>> ERROR: crm_diff apparently failed to produce the diff (rc=0)
>> ERROR: Failed to commit updates to cl-http-lv
>> # echo $?
>> 1
>>
>>
>> Best,
>> Vladislav
>> _______________________________________________
>> Linux-HA mailing list
>> Linux-HA@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>
>

-- 
// Kristoffer Grönlund
// kgronl...@suse.com
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to