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 2151577 - 'pcs resource config' fails to print boolean attributes set to false [rhel-8.7.0.z]
Summary: 'pcs resource config' fails to print boolean attributes set to false [rhel-8....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcs
Version: 8.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Michal Pospisil
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 2151166
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-07 14:34 UTC by RHEL Program Management Team
Modified: 2023-01-12 09:29 UTC (History)
11 users (show)

Fixed In Version: pcs-0.10.14-5.el8_7.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.
Clone Of: 2151166
Environment:
Last Closed: 2023-01-12 09:26:39 UTC
Type: ---
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-141556 0 None None None 2022-12-07 14:42:17 UTC
Red Hat Product Errata RHBA-2023:0127 0 None None None 2023-01-12 09:26:40 UTC

Comment 1 Michal Pospisil 2022-12-19 12:47:06 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 15:29:39 UTC
DevTestResults:

[root@r08-07-a ~]# rpm -q pcs
pcs-0.10.14-5.el8_7.1.x86_64

[root@r08-07-a ~]# pcs resource create dummy1 ocf:pacemaker:Dummy op monitor enabled=false

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

Comment 9 errata-xmlrpc 2023-01-12 09:26:39 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:0127


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