Make sure resource_op_defaults are set before bundles

See LP#1948032. We set a higher default resource op time out because
podman often times out within the default 20s. We need to guarantee
that this timeout is set *before* we create any bundles otherwise
it might be too late and we'd fail a deployment like described in the
LP.

Change-Id: Ic6ac8d21d12389e70cd382018290324d3ae948ce
Closes-Bug: #1948032
This commit is contained in:
Michele Baldessari 2021-10-21 16:49:45 +02:00
parent a9e0ec90f4
commit e4e9be76dc
1 changed files with 5 additions and 0 deletions

View File

@ -298,5 +298,10 @@ class tripleo::profile::base::pacemaker (
tries => $pcs_tries,
}
}
# See LP#1948032. We want to ensure that we set the default resource time out
# before we create any bundles. Because the default timeout affects how long
# we wait for podman, and on a starved system the default of 20s might bite us
# too early on
Pcmk_resource_default<||> -> Pcmk_bundle<||>
}
}