Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2151575

Summary: 'pcs resource config' fails to print boolean attributes set to false [rhel-9.1.0.z]
Product: Red Hat Enterprise Linux 9 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: pcsAssignee: Michal Pospisil <mpospisi>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact:
Priority: high    
Version: 9.1CC: cfeist, cluster-maint, idevat, mjuricek, mlisik, mmazoure, mpospisi, nhostako, omular, tojeline
Target Milestone: rcKeywords: Regression, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.11.3-4.el9_1.1 Doc Type: Bug Fix
Doc Text:
Cause: Values of bool and int type are handled incorrectly in `pcs resource|stonith config` command Consequence: Options with values `0` and `false` are not displayed at all as if they were not set. Fix: Correctly handle bool and int values. Result: All set options are correctly displayed.
Story Points: ---
Clone Of: 2151164 Environment:
Last Closed: 2023-01-23 15:17:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2151164    
Bug Blocks:    

Comment 1 Michal Pospisil 2022-12-19 14:35:49 UTC
Upstream patch:
https://github.com/ClusterLabs/pcs/commit/f9de2cbf0e17f4bdd1a81f329e7fa905b0e2e066

ENVIRONMENT PREPARATION:
- any cluster

DEV TEST:
## Create a resource with disabled monitor operation
# pcs resource create dummy ocf:pacemaker:Dummy op monitor enabled=false

## Display the configuration, "enabled=0" must be present in the output
# pcs resource config dummy
Resource: dummy (class=ocf provider=pacemaker type=Dummy)
  Operations:
    migrate_from: dummy-migrate_from-interval-0s
      interval=0s
      timeout=20s
    migrate_to: dummy-migrate_to-interval-0s
      interval=0s
      timeout=20s
    monitor: dummy-monitor-interval-60s
      interval=60s
      enabled=0
    reload: dummy-reload-interval-0s
      interval=0s
      timeout=20s
    reload-agent: dummy-reload-agent-interval-0s
      interval=0s
      timeout=20s
    start: dummy-start-interval-0s
      interval=0s
      timeout=20s
    stop: dummy-stop-interval-0s
      interval=0s
      timeout=20s

Comment 2 Michal Pospisil 2022-12-21 12:14:59 UTC
DevTestResults:

[root@r09-01-a ~]# rpm -q pcs
pcs-0.11.3-4.el9_1.1.x86_64

[root@r09-01-a ~]# pcs resource create dummy2 ocf:pacemaker:Dummy op monitor enabled=false

[root@r09-01-a ~]# pcs resource config dummy2
Resource: dummy2 (class=ocf provider=pacemaker type=Dummy)
 Operations:
   migrate_from: dummy2-migrate_from-interval-0s
     interval=0s
     timeout=20s
   migrate_to: dummy2-migrate_to-interval-0s
     interval=0s
     timeout=20s
   monitor: dummy2-monitor-interval-60s
     interval=60s
     enabled=0
   reload: dummy2-reload-interval-0s
     interval=0s
     timeout=20s
   reload-agent: dummy2-reload-agent-interval-0s
     interval=0s
     timeout=20s
   start: dummy2-start-interval-0s
     interval=0s
     timeout=20s
   stop: dummy2-stop-interval-0s
     interval=0s
     timeout=20s

Comment 9 errata-xmlrpc 2023-01-23 15:17:32 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 (pcs bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2023:0301