Bug 2180703

Summary: Command 'pcs config checkpoint diff' does not show configuration differences between checkpoints [rhel-8.4.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: pcsAssignee: Miroslav Lisik <mlisik>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact:
Priority: high    
Version: 8.2CC: cfeist, cluster-maint, cluster-qe, idevat, mjuricek, mlisik, mmazoure, mpospisi, nhostako, omular, tojeline
Target Milestone: rcKeywords: Regression, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.10.8-1.el8_4.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2176490 Environment:
Last Closed: 2023-04-25 08:29:18 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: 2176490    
Bug Blocks:    

Comment 1 Michal Pospisil 2023-04-11 11:34:34 UTC
DevTestResults:

[root@r08-04-a ~]# rpm -q pcs
pcs-0.10.8-1.el8_4.4.x86_64

[root@r08-04-a ~]# export NODENAME=r08-04-a.vm

[root@r08-04-a ~]# pcs host auth $NODENAME -u hacluster -p $PASSWORD
r08-04-a.vm: Authorized

[root@r08-04-a ~]# pcs cluster setup HACluster $NODENAME --start --wait
No addresses specified for host 'r08-04-a.vm', using 'r08-04-a.vm'
Destroying cluster on hosts: 'r08-04-a.vm'...
r08-04-a.vm: Successfully destroyed cluster
Requesting remove 'pcsd settings' from 'r08-04-a.vm'
r08-04-a.vm: successful removal of the file 'pcsd settings'
Sending 'corosync authkey', 'pacemaker authkey' to 'r08-04-a.vm'
r08-04-a.vm: successful distribution of the file 'corosync authkey'
r08-04-a.vm: successful distribution of the file 'pacemaker authkey'
Sending 'corosync.conf' to 'r08-04-a.vm'
r08-04-a.vm: successful distribution of the file 'corosync.conf'
Cluster has been successfully set up.
Starting cluster on hosts: 'r08-04-a.vm'...
Waiting for node(s) to start: 'r08-04-a.vm'...
r08-04-a.vm: Cluster started

[root@r08-04-a ~]# pcs stonith create fence-1 fence_xvm

[root@r08-04-a ~]# pcs stonith create fence-2 fence_xvm

[root@r08-04-a ~]# pcs stonith level add 1 $NODENAME fence-1

[root@r08-04-a ~]# pcs stonith level add 2 $NODENAME fence-2

[root@r08-04-a ~]# pcs resource create p-1 ocf:pacemaker:Dummy --no-default-ops

[root@r08-04-a ~]# pcs resource create p-2 ocf:pacemaker:Dummy --no-default-ops

[root@r08-04-a ~]# pcs resource create s-1 ocf:pacemaker:Stateful promotable --no-default-ops

[root@r08-04-a ~]# pcs resource create oc-1 ocf:pacemaker:Dummy --no-default-ops

[root@r08-04-a ~]# pcs resource create oc-2 ocf:pacemaker:Dummy --no-default-ops

[root@r08-04-a ~]# pcs constraint order oc-1 then oc-2
Adding oc-1 oc-2 (kind: Mandatory) (Options: first-action=start then-action=start)

[root@r08-04-a ~]# pcs constraint colocation add oc-2 with oc-1

[root@r08-04-a ~]# pcs resource create oc-set-1 ocf:pacemaker:Dummy --no-default-ops

[root@r08-04-a ~]# pcs resource create oc-set-2 ocf:pacemaker:Dummy --no-default-ops

[root@r08-04-a ~]# pcs constraint order set oc-set-1 oc-set-2

[root@r08-04-a ~]# pcs constraint colocation set oc-set-2 oc-set-1

[root@r08-04-a ~]# pcs resource create t ocf:pacemaker:Dummy --no-default-ops

[root@r08-04-a ~]# pcs constraint ticket add Ticket t

[root@r08-04-a ~]# pcs constraint ticket set p-1 p-2 setoptions ticket=Ticket-set

[root@r08-04-a ~]# pcs alert create path=/usr/bin/true id=Alert

[root@r08-04-a ~]# pcs alert recipient add Alert value=recipient-value

[root@r08-04-a ~]# pcs resource defaults resource-stickiness=2
Warning: This command is deprecated and will be removed. Please use 'pcs resource defaults update' instead.
Warning: Defaults do not apply to resources which override them with their own defined values

[root@r08-04-a ~]# pcs resource op defaults timeout=90
Warning: This command is deprecated and will be removed. Please use 'pcs resource op defaults update' instead.
Warning: Defaults do not apply to resources which override them with their own defined values

[root@r08-04-a ~]# pcs property set maintenance-mode=false

[root@r08-04-a ~]# pcs tag create TAG p-1 p-2

[root@r08-04-a ~]# pcs resource defaults set create id=set-1 meta target-role=Started
Warning: Defaults do not apply to resources which override them with their own defined values

[root@r08-04-a ~]# pcs resource op defaults set create id=op-set-1 score=10 meta interval=30s
Warning: Defaults do not apply to resources which override them with their own defined values

[root@r08-04-a ~]# pcs config checkpoint diff 1 live                                                                                                                                                                                                                                                                                                     	 
Differences between checkpoint 1 (-) and live configuration (+):
Resources:                                                                                                                                                                                                                                                                                                                                      	 
+  Resource: p-1 (class=ocf provider=pacemaker type=Dummy)
+   Operations: monitor interval=10s timeout=20s (p-1-monitor-interval-10s)
+  Resource: p-2 (class=ocf provider=pacemaker type=Dummy)
+   Operations: monitor interval=10s timeout=20s (p-2-monitor-interval-10s)
+  Clone: s-1-clone
+   Meta Attrs: promotable=true
+   Resource: s-1 (class=ocf provider=pacemaker type=Stateful)
+	Operations: monitor interval=10s role=Master timeout=20s (s-1-monitor-interval-10s)
+            	monitor interval=11s role=Slave timeout=20s (s-1-monitor-interval-11s)
+  Resource: oc-1 (class=ocf provider=pacemaker type=Dummy)
+   Operations: monitor interval=10s timeout=20s (oc-1-monitor-interval-10s)
+  Resource: oc-2 (class=ocf provider=pacemaker type=Dummy)
+   Operations: monitor interval=10s timeout=20s (oc-2-monitor-interval-10s)
+  Resource: oc-set-1 (class=ocf provider=pacemaker type=Dummy)
+   Operations: monitor interval=10s timeout=20s (oc-set-1-monitor-interval-10s)
+  Resource: oc-set-2 (class=ocf provider=pacemaker type=Dummy)
+   Operations: monitor interval=10s timeout=20s (oc-set-2-monitor-interval-10s)
+  Resource: t (class=ocf provider=pacemaker type=Dummy)
+   Operations: monitor interval=10s timeout=20s (t-monitor-interval-10s)

  Stonith Devices:
+  Resource: fence-1 (class=stonith type=fence_xvm)
+   Operations: monitor interval=60s (fence-1-monitor-interval-60s)
+  Resource: fence-2 (class=stonith type=fence_xvm)
+   Operations: monitor interval=60s (fence-2-monitor-interval-60s)
  Fencing Levels:
+   Target: r08-04-a.vm
+ 	Level 1 - fence-1
+ 	Level 2 - fence-2

  Location Constraints:
  Ordering Constraints:
+   start oc-1 then start oc-2 (kind:Mandatory) (id:order-oc-1-oc-2-mandatory)
+   Resource Sets:
+ 	set oc-set-1 oc-set-2 (id:order_set_o1o2_set) (id:order_set_o1o2)
  Colocation Constraints:
+   oc-2 with oc-1 (score:INFINITY) (id:colocation-oc-2-oc-1-INFINITY)
+   Resource Sets:
+ 	set oc-set-2 oc-set-1 (id:colocation_set_o2o1_set) setoptions score=INFINITY (id:colocation_set_o2o1)
  Ticket Constraints:
+   t ticket=Ticket (id:ticket-Ticket-t)
+   Resource Sets:
+ 	set p-1 p-2 (id:ticket_set_p1p2_set) setoptions ticket=Ticket-set (id:ticket_set_p1p2)

  Alerts:
-  No alerts defined
+  Alert: Alert (path=/usr/bin/true)
+   Recipients:
+	Recipient: Alert-recipient (value=recipient-value)

  Resources Defaults:
-   No defaults set
+   Meta Attrs: rsc_defaults-meta_attributes
+ 	resource-stickiness=2
+   Meta Attrs: set-1
+ 	target-role=Started
  Operations Defaults:
-   No defaults set
+   Meta Attrs: op_defaults-meta_attributes
+ 	timeout=90
+   Meta Attrs: op-set-1 score=10
+ 	interval=30s

  Cluster Properties:
+  cluster-infrastructure: corosync
+  cluster-name: HACluster
+  dc-version: 2.0.5-9.el8_4.5-ba59be7122
+  have-watchdog: false
+  maintenance-mode: false

  Tags:
-  No tags defined
+  TAG
+	p-1
+	p-2

Comment 9 errata-xmlrpc 2023-04-25 08:29:18 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 (Moderate: pcs security and bug fix 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/RHSA-2023:1961