Re: [ClusterLabs] PCMK_OCF_DEGRADED (_MASTER): exit codes are mapped to PCMK_OCF_UNKNOWN_ERROR

2017-03-06 Thread Ken Gaillot
On 03/06/2017 10:55 AM, Lars Ellenberg wrote: > On Thu, Mar 02, 2017 at 05:31:33PM -0600, Ken Gaillot wrote: >> On 03/01/2017 05:28 PM, Andrew Beekhof wrote: >>> On Tue, Feb 28, 2017 at 12:06 AM, Lars Ellenberg >>> wrote: When I recently tried to make use of the

Re: [ClusterLabs] PCMK_OCF_DEGRADED (_MASTER): exit codes are mapped to PCMK_OCF_UNKNOWN_ERROR

2017-03-06 Thread Lars Ellenberg
On Thu, Mar 02, 2017 at 05:31:33PM -0600, Ken Gaillot wrote: > On 03/01/2017 05:28 PM, Andrew Beekhof wrote: > > On Tue, Feb 28, 2017 at 12:06 AM, Lars Ellenberg > > wrote: > >> When I recently tried to make use of the DEGRADED monitoring results, > >> I found out that

Re: [ClusterLabs] PCMK_OCF_DEGRADED (_MASTER): exit codes are mapped to PCMK_OCF_UNKNOWN_ERROR

2017-03-02 Thread Ken Gaillot
On 03/01/2017 05:28 PM, Andrew Beekhof wrote: > On Tue, Feb 28, 2017 at 12:06 AM, Lars Ellenberg > wrote: >> When I recently tried to make use of the DEGRADED monitoring results, >> I found out that it does still not work. >> >> Because LRMD choses to filter them in

Re: [ClusterLabs] PCMK_OCF_DEGRADED (_MASTER): exit codes are mapped to PCMK_OCF_UNKNOWN_ERROR

2017-03-01 Thread Andrew Beekhof
On Tue, Feb 28, 2017 at 12:06 AM, Lars Ellenberg wrote: > When I recently tried to make use of the DEGRADED monitoring results, > I found out that it does still not work. > > Because LRMD choses to filter them in ocf2uniform_rc(), > and maps them to

[ClusterLabs] PCMK_OCF_DEGRADED (_MASTER): exit codes are mapped to PCMK_OCF_UNKNOWN_ERROR

2017-02-27 Thread Lars Ellenberg
When I recently tried to make use of the DEGRADED monitoring results, I found out that it does still not work. Because LRMD choses to filter them in ocf2uniform_rc(), and maps them to PCMK_OCF_UNKNOWN_ERROR. See patch suggestion below. It also filters away the other "special" rc values. Do we