We currently have the following ordering constraints collectors:
Exec<| title == 'wait-for-settle' |> -> Pcmk_constraint<||>
Exec<| title == 'wait-for-settle' |> -> Pcmk_resource<||>
Exec<| title == 'wait-for-settle' |> -> Pcmk_property<||>
Exec<| title == 'wait-for-settle' |> -> Pcmk_bundle<||>
The problem here is that on rhel8 remotes are a dedicated puppet resource
'pcmk_remote'. From manifests/resource/remote.pp:
if $::pacemaker::params::pcs_010 {
pcmk_remote { $name:
ensure => $ensure,
...
} else { pcmk_resource { $name:
ensure => $ensure,
This means that on rhel8 we do not have the guarantee that remotes will be
created after the cluster has settled. This has been observed in a real-life
scenario (the wait-for-settle took place *after* the error):
Mar 12 01:51:05 controller-0.redhat.local puppet-user[27085]: Error: /Stage[main]/Tripleo::Profile::Base::Pacemaker/Pacemaker::Resource::Remote[compute-0]/Pcmk_remote[compute-0]: Could not evaluate: backup_cib: Running: pcs cluster cib /var/lib/pacemaker/cib/puppet-cib-backup20200312-27084-1ewlz0x failed with code: 1 -> Error: unable to get cib
With this change we did not observe the above error any longer.
Reviewed: https:/ /review. opendev. org/712623 /git.openstack. org/cgit/ openstack/ puppet- pacemaker/ commit/ ?id=e1f66f226a6 96f02d587848322 35d2663c39887e
Committed: https:/
Submitter: Zuul
Branch: master
commit e1f66f226a696f0 2d58784832235d2 663c39887e
Author: Michele Baldessari <email address hidden>
Date: Thu Mar 12 08:55:09 2020 +0100
order pcmk_remote after Exec['wait- for-settle' ]
We currently have the following ordering constraints collectors:
Exec<| title == 'wait-for-settle' |> -> Pcmk_constraint<||>
Exec<| title == 'wait-for-settle' |> -> Pcmk_resource<||>
Exec<| title == 'wait-for-settle' |> -> Pcmk_property<||>
Exec<| title == 'wait-for-settle' |> -> Pcmk_bundle<||>
The problem here is that on rhel8 remotes are a dedicated puppet resource resource/ remote. pp: :params: :pcs_010 {
pcmk_resource { $name:
'pcmk_remote'. From manifests/
if $::pacemaker:
pcmk_remote { $name:
ensure => $ensure,
...
} else {
ensure => $ensure,
This means that on rhel8 we do not have the guarantee that remotes will be
created after the cluster has settled. This has been observed in a real-life
scenario (the wait-for-settle took place *after* the error):
Mar 12 01:51:05 controller- 0.redhat. local puppet-user[27085]: Error: /Stage[ main]/Tripleo: :Profile: :Base:: Pacemaker/ Pacemaker: :Resource: :Remote[ compute- 0]/Pcmk_ remote[ compute- 0]: Could not evaluate: backup_cib: Running: pcs cluster cib /var/lib/ pacemaker/ cib/puppet- cib-backup20200 312-27084- 1ewlz0x failed with code: 1 -> Error: unable to get cib
With this change we did not observe the above error any longer.
Co-Authored-By: Luca Miccini <email address hidden>
Closes-Bug: #1867105
Change-Id: Id46d22d9a0e4d0 92c45aed1e90d20 669c6808d64