<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 8/3/20 7:04 AM, Reid Wahl wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPiuu9-cppfbxmJ3qMHrOzQ-z9zXbqTf_HvVdYAd4HKkgR3GKw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi, Илья. `stonith_admin --cleanup` doesn't get rid of
          pending actions, only failed ones. You might be hitting <a
            href="https://bugs.clusterlabs.org/show_bug.cgi?id=5401"
            moz-do-not-send="true">https://bugs.clusterlabs.org/show_bug.cgi?id=5401</a>.</div>
        <div><br>
        </div>
        <div>I believe a simultaneous reboot of both nodes will clear
          the pending actions. I don't recall whether there's any other
          way to clear them.</div>
      </div>
    </blockquote>
    Even simultaneous rebooting might be some kind of a challenge.<br>
    When a node is coming up it will request the history from the<br>
    running nodes. Thus a simultaneous reboot might not be<br>
    simultaneous enough so that the nodes aren't still able to<br>
    pass this list from one to another.<br>
    To be on the safe side you would have to shut down all nodes<br>
    and fire them up again.<br>
    <br>
    If it is not the bug stated above and we are talking about a<br>
    pending fence-action that was going on on node that itself<br>
    just got fenced (and is still down) pacemaker coming up on<br>
    that node will remove (fail) the pending fence-action.<br>
    <br>
    Just for completeness:<br>
    'stonith_admin --cleanup' cleans everything that is 'just'<br>
    history (failed & successful) whereas weather an attempt is<br>
    still pending does have an effect on how fencing is working.<br>
    As nobody would expect a history-cleanup to influence<br>
    behavior, not touching pending actions is a safety measure<br>
    and not a bug.<br>
    <br>
    Klaus<br>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAPiuu9-cppfbxmJ3qMHrOzQ-z9zXbqTf_HvVdYAd4HKkgR3GKw@mail.gmail.com"><br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sun, Aug 2, 2020 at 8:26 PM
          Илья Насонов <<a href="mailto:elias@po-mayak.ru"
            moz-do-not-send="true">elias@po-mayak.ru</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div lang="RU">
            <div class="gmail-m_633193629332790705WordSection1">
              <p class="MsoNormal">Hello!</p>
              <p class="MsoNormal">  </p>
              <p class="MsoNormal">After troubleshooting 2-Node cluster,
                crm_mon deprecated actions are displayed in “Pending
                Fencing Action:” list.</p>
              <p class="MsoNormal">How can I delete them.</p>
              <p class="MsoNormal">«stonith_admin --cleanup --history=*»
                does not delete it.</p>
              <p class="MsoNormal"> </p>
              <p class="MsoNormal"> </p>
              <p class="MsoNormal">С уважением,<br>
                Илья Насонов<br>
                elias@po-mayak<span lang="EN-US">.ru</span></p>
              <p class="MsoNormal"> </p>
            </div>
          </div>
          _______________________________________________<br>
          Manage your subscription:<br>
          <a href="https://lists.clusterlabs.org/mailman/listinfo/users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
          <br>
          ClusterLabs home: <a href="https://www.clusterlabs.org/"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.clusterlabs.org/</a><br>
        </blockquote>
      </div>
      <br clear="all">
      <br>
      -- <br>
      <div dir="ltr" class="gmail_signature">
        <div dir="ltr">
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div>Regards,<br>
                                      <br>
                                    </div>
                                    Reid Wahl, RHCA<br>
                                  </div>
                                  <div>Software Maintenance Engineer,
                                    Red Hat<br>
                                  </div>
                                  CEE - Platform Support Delivery -
                                  ClusterHA</div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
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>
    <br>
  </body>
</html>