]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
ansible: read the ansible failure log and raise a more meaningful error 589/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 4 Aug 2015 20:10:25 +0000 (15:10 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 5 Aug 2015 15:42:00 +0000 (10:42 -0500)
commitfdc11d9e5922811533e51968a34d05a2d94feec2
tree36a3e6cf346c380c69592c7ab3fe672ee50a408a
parente9d3e8deb321d4f0abd97b31f27f023b19cdafc2
ansible: read the ansible failure log and raise a more meaningful error

This works with a custom ansible callback plugin that intercepts task
failures and writes them to a log file (in yaml format) provided by the
ansible task as an environment variable. If the playbook fails, teuthology
reads that failure log and raises an AnsibleFailedError with the actual
output from the failed ansible task.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
teuthology/exceptions.py
teuthology/task/ansible.py