Bug 2166388
| Summary: | Cleaning up migration history can result in unnecessary resource recovery | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Ken Gaillot <kgaillot> | |
| Component: | pacemaker | Assignee: | Ken Gaillot <kgaillot> | |
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | 8.8 | CC: | cluster-maint, msmazova | |
| Target Milestone: | rc | Keywords: | Regression, Triaged | |
| Target Release: | 8.8 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| Fixed In Version: | pacemaker-2.1.5-6.el8 | Doc Type: | No Doc Update | |
| Doc Text: |
The goal is to have a fix before the issue makes it into the release.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 2166393 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-16 08:35:22 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: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2166393 | |||
|
Description
Ken Gaillot
2023-02-01 17:09:12 UTC
after fix ---------- > [root@virt-282 ~]# rpm -q pacemaker > pacemaker-2.1.5-8.el8.x86_64 Create and start a cluster with at least three nodes, create a migrateable resource: > [root@virt-282 ~]# pcs resource create migrator ocf:pacemaker:Dummy meta allow-migrate=true > [root@virt-282 ~]# pcs status > Cluster name: STSRHTS31958 > Status of pacemakerd: 'Pacemaker is running' (last updated 2023-02-27 16:30:53 +01:00) > Cluster Summary: > * Stack: corosync > * Current DC: virt-283 (version 2.1.5-8.el8-a3f44794f94) - partition with quorum > * Last updated: Mon Feb 27 16:30:53 2023 > * Last change: Mon Feb 27 16:30:50 2023 by root via cibadmin on virt-282 > * 3 nodes configured > * 4 resource instances configured > Node List: > * Online: [ virt-282 virt-283 virt-284 ] > Full List of Resources: > * fence-virt-282 (stonith:fence_xvm): Started virt-282 > * fence-virt-283 (stonith:fence_xvm): Started virt-283 > * fence-virt-284 (stonith:fence_xvm): Started virt-284 > * migrator (ocf::pacemaker:Dummy): Started virt-282 > Daemon Status: > corosync: active/enabled > pacemaker: active/enabled > pcsd: active/enabled Ban the resource from its current node. It should live-migrate to a new node: > [root@virt-282 ~]# pcs resource ban migrator > Warning: Creating location constraint 'cli-ban-migrator-on-virt-282' with a score of -INFINITY for resource migrator on virt-282. > This will prevent migrator from running on virt-282 until the constraint is removed > This will be the case even if virt-282 is the last node in the cluster > [root@virt-282 ~]# pcs resource > * migrator (ocf::pacemaker:Dummy): Started virt-283 Ban the resource from its new node. It should live-migrate to a third node: > [root@virt-282 ~]# pcs resource ban migrator > Warning: Creating location constraint 'cli-ban-migrator-on-virt-283' with a score of -INFINITY for resource migrator on virt-283. > This will prevent migrator from running on virt-283 until the constraint is removed > This will be the case even if virt-283 is the last node in the cluster > [root@virt-282 ~]# pcs resource > * migrator (ocf::pacemaker:Dummy): Started virt-284 Check the resource operations on the second node, where was resource active on: > [root@virt-282 ~]# crm_resource --list-all-operations --resource migrator --node virt-283 > migrator (ocf::pacemaker:Dummy): Started: migrator_migrate_from_0 (node=virt-283, call=58, rc=0, last-rc-change='Mon Feb 27 16:31:05 2023', exec=39ms): complete > migrator (ocf::pacemaker:Dummy): Started: migrator_monitor_10000 (node=virt-283, call=60, rc=0, last-rc-change='Mon Feb 27 16:31:05 2023', exec=48ms): complete > migrator (ocf::pacemaker:Dummy): Started: migrator_migrate_to_0 (node=virt-283, call=63, rc=0, last-rc-change='Mon Feb 27 16:31:19 2023', exec=54ms): complete > migrator (ocf::pacemaker:Dummy): Started: migrator_stop_0 (node=virt-283, call=66, rc=0, last-rc-change='Mon Feb 27 16:31:19 2023', exec=30ms): complete Run `pcs resource refresh` for the resource with node parameter set to the second node (virt-283) that it was active on: > [root@virt-282 ~]# date && pcs resource refresh migrator node=virt-283 > Mon 27 Feb 16:33:08 CET 2023 > Cleaned up migrator on virt-283 > Waiting for 1 reply from the controller > ... got reply (done) Check the resource operations on the second node again: > [root@virt-282 ~]# crm_resource --list-all-operations --resource migrator --node virt-283 > migrator (ocf::pacemaker:Dummy): Started: migrator_monitor_0 (node=virt-283, call=72, rc=7, last-rc-change='Mon Feb 27 16:33:10 2023', exec=22ms): complete RESULT: Resource did not restart on the second node. marking verified in pacemaker-2.1.5-8.el8 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:2818 |