Bug 2142683

Summary: "pcs node utilization" command sets incorrect attribute value
Product: Red Hat Enterprise Linux 9 Reporter: Ken Gaillot <kgaillot>
Component: pacemakerAssignee: Chris Lumens <clumens>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 9.1CC: cfeist, clumens, cluster-maint, cluster-qe, jrehova, msmazova
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 9.2Flags: pm-rhel: mirror+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: pacemaker-2.1.5-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2142681
: 2144869 (view as bug list) Environment:
Last Closed: 2023-05-09 07:18:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version: 2.1.5
Embargoed:
Bug Depends On: 2142681    
Bug Blocks: 2144869    

Description Ken Gaillot 2022-11-14 21:19:09 UTC
+++ This bug was initially created as a clone of Bug #2142681 +++

Description of problem: The "pcs node utilization <node> <name>=<value>" command should set a permanent node attribute with the given name and value in a utilization block. In the 9.1 packages, it instead uses "utilization" as the value.


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


How reproducible: reliably


Steps to Reproduce:
1. Configure and start a cluster.
2. Set a node utilization attribute with "pcs node utilization".
3. Check the attribute value with "pcs node utilization".

Actual results: The attribute value is "utilization".


Expected results: The attribute value is the one specified when set.

--- Additional comment from Ken Gaillot on 2022-11-14 21:17:01 UTC ---

Fixed upstream by commit 566fb0c5

Comment 9 Chris Lumens 2022-12-07 15:40:03 UTC
Upon closer inspection, this bug is not a regression.  It was introduced in Pacemaker-2.1.5-rc1, not 2.1.3 as previously thought.  It was not in any RHEL release.  The commit message with the fix does reference the commit that introduced the bug correctly, and it has been fixed in a subsequent RC.  It's worth checking that it is fixed.  It's probably worth scrubbing the CCFR text and any references to a regression from this bug report.

Comment 10 Chris Lumens 2022-12-07 15:54:14 UTC
Note to QE:  The bug was introduced in -rc1 and fixed in -rc2.  There was not a -rc1 build for RHEL, so you should just need to confirm that the bug was never introduced.

Comment 11 jrehova 2022-12-08 11:57:45 UTC
* 2 nodes cluster

Version of pacemaker:

> [root@virt-533 ~]# rpm -q pacemaker
> pacemaker-2.1.5-2.el9.x86_64

Set a node utilization attribute:

> [root@virt-533 ~]# pcs node utilization
> Node Utilization:
 
> [root@virt-533 ~]# pcs node utilization virt-533 cpu=4

> [root@virt-533 ~]# pcs node utilization
> Node Utilization:
>  virt-533: cpu=4

Comment 13 errata-xmlrpc 2023-05-09 07:18:17 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 (pacemaker 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:2150