Add upgrade task to run gnocchi upgrade

Closes-bug: #1724328

Change-Id: Id7fed3746733c0ea0804532beda627c69e4ce078
This commit is contained in:
Pradeep Kilambi 2017-11-20 13:10:25 -05:00
parent 38d0525a5e
commit 60925faefc
1 changed files with 11 additions and 0 deletions

View File

@ -157,3 +157,14 @@ outputs:
- name: Stop gnocchi_api service (running under httpd)
tags: step1
service: name=httpd state=stopped
- name: get bootstrap nodeid
tags: common
command: hiera bootstrap_nodeid
register: bootstrap_node
- name: set is_bootstrap_node fact
tags: common
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
- name: Setup gnocchi db during upgrade
tags: step5
command: gnocchi-upgrade
when: is_bootstrap_node