Skip to content

Commit

Permalink
Fix: libpe_status: Don't fence a remote node due to failed migrate_from
Browse files Browse the repository at this point in the history
Fixes T214

Signed-off-by: Reid Wahl <[email protected]>
  • Loading branch information
nrwahl2 committed May 13, 2024
1 parent 9d3f82f commit e714f22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/pengine/pe_actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,13 +962,16 @@ pcmk__parse_on_fail(const pcmk_resource_t *rsc, const char *action_name,

/* Remote node connections are handled specially. Failures that result
* in dropping an active connection must result in fencing. The only
* failures that don't are probes and starts. The user can explicitly set
* PCMK_META_ON_FAIL=PCMK_VALUE_FENCE to fence after start failures.
* failures that don't are probes, starts, and migrate_froms (which are
* essentially starts during a migration). The user can explicitly set
* PCMK_META_ON_FAIL=PCMK_VALUE_FENCE to fence after start and migrate_from
* failures.
*/
if (rsc->is_remote_node
&& pcmk__is_remote_node(pcmk_find_node(rsc->cluster, rsc->id))
&& !pcmk_is_probe(action_name, interval_ms)
&& !pcmk__str_eq(action_name, PCMK_ACTION_START, pcmk__str_none)) {
&& !pcmk__str_any_of(action_name, PCMK_ACTION_START,
PCMK_ACTION_MIGRATE_FROM, NULL)) {
needs_remote_reset = true;
if (!pcmk_is_set(rsc->flags, pcmk_rsc_managed)) {
desc = NULL; // Force default for unmanaged connections
Expand Down

0 comments on commit e714f22

Please sign in to comment.