zuul-jobs/roles/upload-logs-swift
Felix Edel a108e6440f
Return upload_results in upload-logs-swift role
We are facing some issues where the log upload to swift fails, but the
role is always succeeding. To get some more information about the
upload failures, we let the upload() method return those to the Ansible
module and provide them in the module's JSON result.

The equivalent change in the test-upload-logs-swift [1] role is
validated in [2].

[1] https://review.opendev.org/#/c/735503/1
[2] https://review.opendev.org/#/c/737441/

Change-Id: Ie0d4ea2f3365600eae0e572e4c0790b131d3b13e
2020-06-23 09:01:52 +02:00
..
defaults Revert "upload-logs-swift: Create a download script" 2020-03-27 14:59:49 +01:00
library Return upload_results in upload-logs-swift role 2020-06-23 09:01:52 +02:00
tasks Return upload_results in upload-logs-swift role 2020-06-23 09:01:52 +02:00
__init__.py Enable Python 2.7 unit tests 2018-08-17 10:23:20 +10:00
README.rst Revert "upload-logs-swift: Create a download script" 2020-03-27 14:59:49 +01:00

Upload logs to a swift container

This uploads logs to an OpenStack Object Store (Swift) container.

Role Variables

Complex argument which contains the cloud configuration in os-cloud-config (clouds.yaml) format. It is expected that this argument comes from a Secret.