Browse Source

Merge "Move stonith resource creation to step2" into stable/train

changes/95/787395/1
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
d6643e507b
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      manifests/profile/base/pacemaker.pp

+ 8
- 1
manifests/profile/base/pacemaker.pp View File

@ -146,7 +146,14 @@ class tripleo::profile::base::pacemaker (
$pacemaker_master = false
}
# enable_fencing guides the enablement of the stonith-enabled cluster-wide property
# enable_stonith_resources drives the creation of the stonith resources themselves and happens at
# step2. The reason for step2 is the following:
# During step1 the cluster is created (and also the pcmk remote resources in case of IHA)
# Since stonith resources are created on each node separately we need to have the guarantee that
# all cluster nodes + remote exist before creating stonith resources for them
$enable_fencing = str2bool(hiera('enable_fencing', false)) and $step >= 5
$enable_stonith_resources = str2bool(hiera('enable_fencing', false)) and $step >= 2
if $step >= 1 {
include ::pacemaker::params
@ -233,7 +240,7 @@ class tripleo::profile::base::pacemaker (
}
Class['pacemaker::stonith'] -> Exec<|tag == 'pacemaker-scaleup'|>
}
if $enable_fencing {
if $enable_stonith_resources {
include ::tripleo::fencing
# enable stonith after all Pacemaker resources have been created


Loading…
Cancel
Save