[train/stein] Increase resource bundle timeout during update.

In [1] we increase the default timeout for podman bundle when we
deploy.  It's fine for master but we need this to happen during update
for train and stein.

[1] https://review.opendev.org/#/q/Ie45a56b8dab1272798440110ad96b6ee11fcf26b

Relates-To: #1834325
Change-Id: I5517b81e113aa90253b05f67fd4910720c287437
With deployment/pacemaker/pacemaker-baremetal-puppet.yaml changed to
puppet/services/pacemaker.yaml
(cherry picked from commit 6d625c3e96)
This commit is contained in:
Sofer Athlan-Guyot 2020-01-24 16:17:11 +01:00 committed by Athlan-Guyot sofer
parent 7343c374a6
commit 018ff60cfd
1 changed files with 11 additions and 0 deletions

View File

@ -334,6 +334,17 @@ outputs:
echo "Could not retrieve and clear location constraint for VIP $v" 2>&1
fi
done
- name: Set the cluster bundle timeout
when: step|int == 1
vars:
pacemaker_bundle_operation_timeout: {get_param: PacemakerBundleOperationTimeout}
container_cli: {get_param: ContainerCli}
block:
- name: Change the bundle operation timeout
command: "pcs resource op defaults timeout={{ pacemaker_bundle_operation_timeout|ternary(pacemaker_bundle_operation_timeout,'120s') }}"
when:
- "container_cli == 'podman'"
- name: Stop pacemaker cluster
when: step|int == 1
pacemaker_cluster: state=offline