fencing and (virtual) power button pression reaction

Hello, in RHCS we have the fencing concept for targets very similar to the oVirt ones: avoid data corruption and also fast react to problematic hosts situations. The implementation is quite similar to the oVirt one, with several fencing agents sometimes common, like fence_ipmilan. In RHCS documentation there is a chapter describing how to configure hosts so that they don't react to power button pressure. This guarantees that failover is as fast as possible, and also that the same host to be fenced, could create more damages if it reacts and begins the shutdown procedure instead of simply powering off. See: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/htm... It seems to me that oVirt / RHV lack this feature. Inside oVirt NGN and also RHVH-H, the /etc/systemd/logind.conf file is not configured with an entry of type HandlePowerKey=ignore So in some cases of tests I'm doing, I see in its virtual console that the to-be-fenced host begins its OS shutdown flow when it detects the power button pressure. Typically after 2-3 seconds the system powers off and then on again, but I also saw about 10 seconds delays in one case. I have opened a case (number 03002278) for my RHV products, but I would also like to get your comments here if I'm wrong with my considerations. Gianluca

It's also valid for HA clustering (corosync/pacemaker). There are some HW vendor implementations (HPE iLO, DELL iDRAC,etc) where the ipmi request will trigger a graceful shutdown (power button press) ,where the system could stuck indefinitely but still accessing the resources (for example Storage), and only then it will go for a ungraceful (which is the expected fencing behavior) poweroff. Thus when configuring ipmi fencing, you must always block power button press. Best Regards,Strahil Nikolov . This guarantees that failover is as fast as possible, and also that the same host to be fenced, could create more damages if it reacts and begins the shutdown procedure instead of simply powering off.
participants (2)
-
Gianluca Cecchi
-
Strahil Nikolov