Hi Madison,

This issue partially originates in pacemaker. Pacemaker documents allowed target-role values to be capitalized, e.g. Stopped, Started, etc. So pcs expects the status xml produced by pacemaker to follow this and the target-role values to be in this form. Unfortunately, the reality doesn't match the documentation - pacemaker keeps the target-role value in whatever format entered by the user.

This is not an issue as long as 'pcs resource disable' command is used to set target-role, as that sets the value in the expected format. The problem happens when target-role is set by other means and the expected format is not followed.

The issue is tracked in RHEL-92043 <https://issues.redhat.com/browse/RHEL-92043>. It has been fixed in pcs in 1f4db60 <https://github.com/ClusterLabs/pcs/commit/1f4db601021a291fe229496dfc3a150a53dcc201> for pcs-0.12 branch and 945ecd9 <https://github.com/ClusterLabs/pcs/commit/945ecd9a863d7a95ac6fc8ef4207c52b953b78a9> for pcs-0.11 branch. With this fix, pcs is case-insensitive when reading target-role from status xml. The fix will be included in the upcoming upstream releases 0.12.1 and 0.11.10

The fix has also been released in RHEL packages pcs-0.12.0-3.el10_0.2 and pcs-0.11.9-2.el9_6.1 and upgrading to those should resolve the issue. However, upon checking Alma Linux pcs packages, it looks like Alma Linux decided not to include the fix in their pcs-0.11.9-2.el9_6.1 package.

As a workaround, set the target-role meta attribute of resources in CIB to one of Started, Stopped, Promoted, Unpromoted.

Regards,
Tomas


Dne 08. 07. 25 v 22:26 Madison Kelly napsal(a):

Hi all,

  I'm trying to delete a resource, but pcs is throwing an odd error;

[root@vm-a01n01 ~]# pcs resource status
  * srv01-al10       (ocf:alteeve:server):     Started vm-a01n01
  * *srv02-win11      (ocf:alteeve:server):     Stopped (disabled)*
  * srv03-win11      (ocf:alteeve:server):     Stopped (disabled)
  * srv04-win2025    (ocf:alteeve:server):     Started vm-a01n01
[root@vm-a01n01 ~]# *pcs resource delete srv02-win11*
Removing dependant elements:
  Location constraints: 'location-srv02-win11-vm-a01n01-200', 'location-srv02-win11-vm-a01n02-100'
Stopping resource 'srv02-win11' before deleting
Error: Cannot load cluster status, xml does not describe valid cluster status: *Resource 'srv02-win11' contains an unknown role 'stopped'*
Error: Errors have occurred, therefore pcs is unable to continue
[root@vm-a01n01 ~]# rpm -q pcs
pcs-0.11.9-2.el9_6.1.x86_64

This is an Alma Linux 9.6 based host.

--
wiki -https://alteeve.com/w
cell - 647-471-0951
work - 647-417-7486 x 404

_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home:https://www.clusterlabs.org/
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

Reply via email to