redhat-openstack / ansible-role-tripleo-image-build

An ansible role used to create and publish quickstart built images
Apache License 2.0
5 stars 3 forks source link

make output for failed job during tripleo-common exist #29

Open halcyondude opened 8 years ago

halcyondude commented 8 years ago

When the failures happen during DIB, we get logs, but the ansible output is fairly worthless. One always has to look in the logs generated by the tripleo-common library, and can never tell from the ansible output what the issue is/was, nor what logs to look in. The experience is sub-optimal. Here's an example of a failure:

TASK [tripleo-image-build : Build the overcloud-full image] ********************
task path: /home/matyoung/ci/ansible-role-tripleo-image-build/tests/pip/wd-mitaka/usr/local/share/ansible/roles/tripleo-image-build/tasks/dib_build.yml:69
Thursday 11 August 2016  15:20:15 -0400 (0:00:03.088)       0:19:39.769 ******* 
fatal: [centos-kvm]: FAILED! => {"changed": false, "failed": true, "msg": ""}

TASK [tripleo-image-build : fail] **********************************************
task path: /home/matyoung/ci/ansible-role-tripleo-image-build/tests/pip/wd-mitaka/usr/local/share/ansible/roles/tripleo-image-build/tasks/main.yml:46
Thursday 11 August 2016  15:20:16 -0400 (0:00:00.995)       0:19:40.764 ******* 
fatal: [centos-kvm]: FAILED! => {"changed": false, "failed": true, "msg": "*** Image Build Error ***"}