ClusterLabs/resource-agents — pull request #475 by davidvossel (2014-08-01 20:08:51+00:00)
Title: exit reason string fixes along support for nfs/ip/virtdomain resources.

Now that we are starting to set exit reasons strings, it
is becoming obvious that most of the exit reasons are already
logged as ERRORs. To avoid having to both set the exit string
and log the error, the ocf_exit_reason function now logs both
the exit reason to stderr, and the exit string as a priority
ERROR message to any log facilities. Since it is possible the
logfacility may just be echoing to stderr, we avoid duplicate
prints to stderr by ignoring printing to stderr when ha_log
is called from ocf_exit_reason

This patch also adds support for exit reason strings to a few
agents. I plan on updating more agents as I have time.