Merge "ffu: Introduce Pacemaker fast-forward upgrade tasks"

This commit is contained in:
Zuul 2018-02-21 19:16:29 +00:00 committed by Gerrit Code Review
commit 3f97f8dc21
1 changed files with 18 additions and 0 deletions

View File

@ -171,3 +171,21 @@ outputs:
- name: Start pacemaker cluster
when: step|int == 4
pacemaker_cluster: state=online
fast_forward_upgrade_tasks:
- name: get internal_api_virtual_ip
tags: common
command: hiera -c /etc/puppet/hiera.yaml tripleo::keepalived::internal_api_virtual_ip
register: internal_api_virtual_ip
- name: Disable all pacemaker resources except Api virtual ip, haproxy and galera
shell: |
pcs resource show --full |\
grep Resource |\
grep -v galera |\
grep -v haproxy |\
grep -v {{internal_api_virtual_ip.stdout}} |\
awk '{print $2}' |\
xargs pcs resource disable
when:
- step|int == 3
- release == 'ocata'
- is_bootstrap_node|bool