On 2012-06-20T16:37:35, Ulrich Windl <[email protected]> wrote:
> so what exit code is failed? Then: With the standard logic of "stop"
> only performing when the resource is up (i.e. monitor reports
> "stopped"), a partially started resource that the monitor considers
> "stopped" may fail to be cleanly stopped on "stop".
That "standard logic" you cite is *NOT* the standard logic. A partially
started resource must not report 'stopped', it would need to report
failed (OCF_ERR_GENERIC) - since it is neither cleanly started nor
cleanly stopped.
See, it's simple. Any "partially" completed operation or state -> not
successful, ergo failure must be reported.
> > My answer is not too simple - I said "failed", not "stopped" ;-)
> Maybe if you could present a skeletton of code for a resource that can
> fail partially, we could be more concrete...
Me? *You* are constructing this use case. ;-)
Regards,
Lars
--
Architect Storage/HA
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB
21284 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems