Bug 1432283 - pcs hides debugging options for (some?) fencing devices
Summary: pcs hides debugging options for (some?) fencing devices
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: cluster-qe@redhat.com
Steven J. Levine
Depends On:
TreeView+ depends on / blocked
Reported: 2017-03-15 01:17 UTC by Andrew Beekhof
Modified: 2018-04-10 15:40 UTC (History)
6 users (show)

Fixed In Version: pcs-0.9.160-1.el7
Doc Type: Bug Fix
Doc Text:
It is now possible to enable stonith agent debugging without specifying the `--force` flag Previously, attempting to enable debugging of a stonith agent by setting the `debug` or `verbose` parameters required that the user specify the `--force` flag. With this fix, using the `--force` flag is no longer necessary.
Clone Of:
Last Closed: 2018-04-10 15:39:15 UTC
Target Upstream Version:

Attachments (Terms of Use)
proposed fix + tests (4.94 KB, patch)
2017-06-12 11:33 UTC, Tomas Jelinek
no flags Details | Diff

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0866 0 None None None 2018-04-10 15:40:17 UTC

Description Andrew Beekhof 2017-03-15 01:17:48 UTC
Description of problem:

[root@overcloud-controller-0 heat-admin]# crm_resource --show-metadata stonith:fence_ipmilan | grep -e verbose -e debug
    <parameter name="verbose" unique="0" required="0">
    <parameter name="debug" unique="0" required="0">
      <getopt mixed="-d [pathtodebugfile]           Path to debug file"/>
        Path to debug file
[root@overcloud-controller-0 heat-admin]# pcs stonith describe fence_ipmilan | grep -e verbose -e debug
[root@overcloud-controller-0 heat-admin]#

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 2 Tomas Jelinek 2017-06-12 11:33:14 UTC
Created attachment 1287034 [details]
proposed fix + tests

Comment 4 Ivan Devat 2017-10-11 07:53:37 UTC
After Fix:

[vm-rhel72-1 ~] $ rpm -q pcs

[vm-rhel72-1 ~] $ pcs stonith create S fence_apc login=l ipaddr=i verbose=v debug=d
[vm-rhel72-1 ~] $ pcs cluster cib --config | grep 'id="S"' -A10
    <primitive class="stonith" id="S" type="fence_apc">
      <instance_attributes id="S-instance_attributes">
        <nvpair id="S-instance_attributes-debug" name="debug" value="d"/>
        <nvpair id="S-instance_attributes-ipaddr" name="ipaddr" value="i"/>
        <nvpair id="S-instance_attributes-login" name="login" value="l"/>
        <nvpair id="S-instance_attributes-verbose" name="verbose" value="v"/>
        <op id="S-monitor-interval-60s" interval="60s" name="monitor"/>

Comment 11 errata-xmlrpc 2018-04-10 15:39:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.