<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Madison,</p>
    <p>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.</p>
    <p>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.<br>
    </p>
    <p>The issue is tracked in <a class="issue-link"
        data-issue-key="RHEL-92043"
        href="https://issues.redhat.com/browse/RHEL-92043" id="key-val"
        rel="16986013">RHEL-92043</a>. It has been fixed in pcs in <a
href="https://github.com/ClusterLabs/pcs/commit/1f4db601021a291fe229496dfc3a150a53dcc201">1f4db60</a>
      for pcs-0.12 branch and <a
href="https://github.com/ClusterLabs/pcs/commit/945ecd9a863d7a95ac6fc8ef4207c52b953b78a9">945ecd9</a>
      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<br>
    </p>
    <p>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.</p>
    <p>As a workaround, set the target-role meta attribute of resources
      in CIB to one of Started, Stopped, Promoted, Unpromoted.</p>
    <p>Regards,<br>
      Tomas</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Dne 08. 07. 25 v 22:26 Madison Kelly
      napsal(a):<br>
    </div>
    <blockquote type="cite"
      cite="mid:e06037d3-ab72-4d74-9b6f-89ffab637071@alteeve.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hi all, <br>
      </p>
      <p>  I'm trying to delete a resource, but pcs is throwing an odd
        error;</p>
      <p><font face="monospace">[root@vm-a01n01 ~]# pcs resource status<br>
            * srv01-al10       (ocf:alteeve:server):     Started
          vm-a01n01<br>
            * <b>srv02-win11      (ocf:alteeve:server):     Stopped
            (disabled)</b><br>
            * srv03-win11      (ocf:alteeve:server):     Stopped
          (disabled)<br>
            * srv04-win2025    (ocf:alteeve:server):     Started
          vm-a01n01<br>
          [root@vm-a01n01 ~]# <b>pcs resource delete srv02-win11</b><br>
          Removing dependant elements:<br>
            Location constraints: 'location-srv02-win11-vm-a01n01-200',
          'location-srv02-win11-vm-a01n02-100'<br>
          Stopping resource 'srv02-win11' before deleting<br>
          Error: Cannot load cluster status, xml does not describe valid
          cluster status: <b>Resource 'srv02-win11' contains an unknown
            role 'stopped'</b><br>
          Error: Errors have occurred, therefore pcs is unable to
          continue<br>
          [root@vm-a01n01 ~]# rpm -q pcs<br>
          pcs-0.11.9-2.el9_6.1.x86_64<br>
        </font></p>
      <p>This is an Alma Linux 9.6 based host. <br>
      </p>
      <pre class="moz-signature" cols="72">-- 
wiki - <a class="moz-txt-link-freetext" href="https://alteeve.com/w"
      moz-do-not-send="true">https://alteeve.com/w</a>
cell - 647-471-0951
work - 647-417-7486 x 404</pre>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre wrap="" class="moz-quote-pre">_______________________________________________
Manage your subscription:
<a class="moz-txt-link-freetext" href="https://lists.clusterlabs.org/mailman/listinfo/users">https://lists.clusterlabs.org/mailman/listinfo/users</a>

ClusterLabs home: <a class="moz-txt-link-freetext" href="https://www.clusterlabs.org/">https://www.clusterlabs.org/</a>
</pre>
    </blockquote>
  </body>
</html>