<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Vitaly,</p>
    <p>You don't need to worry much about this.</p>
    <p>When pcs is editing CIB, it prefers using the new role names and
      automatically falls back to the old role names based on pacemaker
      / CIB schema version. When pcs is printing the configuration, it
      does a reverse transformation and prints the new role names even
      if CIB contains the old ones.<br>
    </p>
    <p>Pacemaker 2.1, which pcs 0.11 is compatible with, is capable of
      handling both old and new role names.</p>
    <p>If you want to get rid of the old role names, you may replace
      them in CIB ('pcs cluster edit') or drop the constraints and
      recreate them using pcs. If it fails, you maybe have an old CIB
      version. You can update that with 'pcs cluster cib-upgrade'.</p>
    <p>Regards,<br>
      Tomas</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Dne 09. 04. 25 v 20:35 vitaly
      napsal(a):<br>
    </div>
    <blockquote type="cite"
cite="mid:667851102.674832.1744223706342@webmail-oxcs.networksolutionsemail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <meta charset="UTF-8">
      <div class="default-style">
        <div style="margin-bottom: 0in;"> Hello, </div>
        <div style="margin-bottom: 0in;"> I have dual node clusters with
          postgres as one of the resources. </div>
        <div style="margin-bottom: 0in;"> The clusters were upgraded
          from pcs v 0.10 to pcs v 0.11. </div>
        <div style="margin-bottom: 0in;"> Pcs V 0.11 eliminated Master
          role and replaced it with Promoted. </div>
        <div style="margin-bottom: 0in;"> For clusters that were
          upgraded I needed to remove old configuration for colocation
          because with old one in place while creating new one commit of
          the configuration was failing due to duplicate constraint. </div>
        <div style="margin-bottom: 0in;"> Update works fine on all the
          clusters but on one of them AFTER UPGRADE I see different
          output in “cibadmin --query” and in “pcs constraint list” </div>
        <div>   </div>
        <div style="margin-bottom: 0in;"> The constraints in “cibadmin
          –query” are showing: <br>
          <rsc_colocation rsc="DBSlave" with-rsc="postgres-ms"
          score="-10000" rsc-role="Started" with-rsc-role="Master"
          id="colocation-DBSlave-postgres-ms-Promoted"/> </div>
        <div>   </div>
        <div style="margin-bottom: 0in;"> <rsc_colocation
          rsc="DBMaster" with-rsc="postgres-ms" score="INFINITY"
          rsc-role="Started" with-rsc-role="Master"
          id="colocation-DBMaster-postgres-ms-Promoted"/> </div>
        <div>   </div>
        <div style="margin-bottom: 0in;"> Same constraints in “pcs
          constraint list” were showing: <br>
          Colocation Constraints: </div>
        <div style="margin-bottom: 0in;"> Started resource 'DBSlave'
          with Promoted resource 'postgres-ms' score=-10000 </div>
        <div>   </div>
        <div style="margin-bottom: 0in;"> Started resource 'DBMaster'
          with Promoted resource 'postgres-ms' score=INFINITY </div>
        <div>   </div>
        <div style="margin-bottom: 0in;"> On all other systems “cibadmin
          –query” is in agreement with pcs and shows: <br>
          <rsc_colocation rsc="DBSlave" with-rsc="postgres-ms"
          score="-10000" rsc-role="Started" with-rsc-role="Promoted"
          id="colocation-DBSlave-postgres-ms-Promoted"/> </div>
        <div>   </div>
        <div style="margin-bottom: 0in;"> <rsc_colocation
          rsc="DBMaster" with-rsc="postgres-ms" score="INFINITY"
          rsc-role="Started" with-rsc-role="Promoted"
          id="colocation-DBMaster-postgres-ms-Promoted"/> </div>
        <div>   </div>
        <div style="margin-bottom: 0in;"> So my problem is in
          with-rsc-role showing “Master” on a single system and
          “Promoted” on all others. </div>
        <div>   </div>
        <div style="margin-bottom: 0in;"> Would appreciate it if anybody
          could shed some light on the issue. </div>
        <div style="margin-bottom: 0in;"> Thank you very much! </div>
        <div style="margin-bottom: 0in;"> _Vitaly <br>
          <br>
        </div>
        <div>   </div>
      </div>
      <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>