diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-10-10 04:38:12 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-10-10 04:38:12 +0000 |
commit | 43062a1eae30a7a0ade11ee2a1841def93fdc0c8 (patch) | |
tree | 952f1d3e572ea326c54a248bad02ab9faaf1bebd /puppet/services | |
parent | 0f0da45d9a5f4c13cbca45e9083ef3af5b748803 (diff) | |
parent | 911edab71e435736dc094c9633520315d310f60c (diff) |
Merge "Adds pacemaker update_tasks for Pike minor update workflow" into stable/pike
Diffstat (limited to 'puppet/services')
-rw-r--r-- | puppet/services/pacemaker.yaml | 12 | ||||
-rw-r--r-- | puppet/services/tripleo-packages.yaml | 9 |
2 files changed, 20 insertions, 1 deletions
diff --git a/puppet/services/pacemaker.yaml b/puppet/services/pacemaker.yaml index 158d04bd..badb1a4e 100644 --- a/puppet/services/pacemaker.yaml +++ b/puppet/services/pacemaker.yaml @@ -156,3 +156,15 @@ outputs: - name: Start pacemaker cluster tags: step4 pacemaker_cluster: state=online + update_tasks: + - name: Check pacemaker cluster running before the minor update + when: step == "0" # TODO(marios) disabling validations? + pacemaker_cluster: state=online check_and_fail=true + async: 30 + poll: 4 + - name: Stop pacemaker cluster + when: step == "1" + pacemaker_cluster: state=offline + - name: Start pacemaker cluster + when: step == "4" + pacemaker_cluster: state=online diff --git a/puppet/services/tripleo-packages.yaml b/puppet/services/tripleo-packages.yaml index 0dbdbf89..bfdac3e3 100644 --- a/puppet/services/tripleo-packages.yaml +++ b/puppet/services/tripleo-packages.yaml @@ -66,6 +66,13 @@ outputs: tags: step3 yum: name=* state=latest update_tasks: + - name: Check for existing yum.pid + stat: path=/var/run/yum.pid + register: yum_pid_file + when: step == "0" or step == "3" + - name: Exit if existing yum process + fail: msg="ERROR existing yum.pid detected - can't continue! Please ensure there is no other package update process for the duration of the minor update worfklow. Exiting." + when: (step == "0" or step == "3") and yum_pid_file.stat.exists - name: Update all packages - yum: name=* state=latest + yum: name=* state=latest update_cache=yes # cache for tripleo/+bug/1703830 when: step == "3" |