Improve debuggability of update workflow

This gets the debuggability on par with the main deployment
workflow. It uses Ansible verbosity level 1, and it stores the
workflow artifacts in /var/lib/mistral/<execution id>, same as the
deployment workflow does.

Change-Id: Ifc6c3afc5c15753a08f08df0c2152a00262ed38c
This commit is contained in:
Jiri Stransky 2018-01-24 16:37:32 +01:00
parent f69ea9e8af
commit 0efebf22f6

View File

@ -116,6 +116,8 @@ workflows:
- module_path: /usr/share/ansible-modules
- ansible_extra_env_variables:
ANSIBLE_HOST_KEY_CHECKING: 'False'
- verbosity: 1
- work_dir: /var/lib/mistral
tags:
- tripleo-common-managed
@ -123,9 +125,9 @@ workflows:
tasks:
download_config:
action: tripleo.config.download_config
input:
work_dir: <% $.work_dir %>/<% execution().id %>
on-success: get_private_key
publish:
tmp_path: <% task().result %>
on-error: node_update_failed
get_private_key:
@ -138,11 +140,11 @@ workflows:
action: tripleo.ansible-playbook
input:
inventory: <% $.inventory_file %>
playbook: <% $.tmp_path %>/<% $.playbook %>
playbook: <% $.work_dir %>/<% execution().id %>/<% $.playbook %>
remote_user: <% $.node_user %>
become: true
become_user: root
verbosity: 0
verbosity: <% $.verbosity %>
ssh_private_key: <% $.private_key %>
extra_env_variables: <% $.ansible_extra_env_variables %>
limit_hosts: <% $.nodes %>