The resource-agent `portblock` is causing continuous flapping and monitor failure

Solution In Progress - Updated -

Issue

  • The resource-agent portblock is causing continuous flapping and monitor failure. In the logs the ocf:heartbeat:portblock resources are starting and then failing over and over.

    Nov 26 10:22:16 rhel8-3 pacemaker-controld[33775]: notice: Result of monitor operation for pb-unblock on rhel8-3.examplerh.com: ok
    Nov 26 10:22:20 rhel8-3 pacemaker-controld[33775]: notice: Result of monitor operation for pb-block on rhel8-3.examplerh.com: not running
    Nov 26 10:22:20 rhel8-3 pacemaker-attrd[33773]: notice: Setting last-failure-pb-block#monitor_10000[rhel8-3.examplerh.com] in instance_attributes: (unset) -> 1764170540
    Nov 26 10:22:20 rhel8-3 pacemaker-attrd[33773]: notice: Setting fail-count-pb-block#monitor_10000[rhel8-3.examplerh.com] in instance_attributes: (unset) -> 1
    Nov 26 10:22:20 rhel8-3 pacemaker-controld[33775]: notice: Requesting local execution of stop operation for pb-unblock on rhel8-3.examplerh.com
    
    Nov 26 10:22:20 rhel8-3 pacemaker-attrd[46403]: notice: Setting last-failure-pb-block#monitor_10000[rhel8-3.examplerh.com] in instance_attributes: (unset) -> 1764170540
    Nov 26 10:22:20 rhel8-3 pacemaker-attrd[46403]: notice: Setting fail-count-pb-block#monitor_10000[rhel8-3.examplerh.com] in instance_attributes: (unset) -> 1
    Nov 26 10:22:20 rhel8-3 pacemaker-schedulerd[46404]: warning: Unexpected result (not running) was recorded for monitor of pb-block on rhel8-3.examplerh.com at Nov 26 10:22:20 2025
    Nov 26 10:22:20 rhel8-3 pacemaker-schedulerd[46404]: notice: Actions: Recover    pb-block          (                          rhel8-3.examplerh.com )
    Nov 26 10:22:20 rhel8-3 pacemaker-schedulerd[46404]: notice: Actions: Restart    pb-unblock        (                          rhel8-3.examplerh.com )  due to required pb-block start
    

Environment

  • Red Hat Enterprise Linux Server 8 (with the High Availability Add On)
  • A ocf:heartbeat:portblock resource-agent is managed by pacemaker
  • RHEL 8.8.z: resource-agents-4.9.0-40.el8_8.13
  • RHEL 8.10.z: resource-agents-4.9.0-54.el8_10.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content