base-jobs/playbooks/base/post-logs.yaml
Jeremy Stanley e6e69e4aac Temporarily disable log uploads to OVH BHS Swift
We're getting numerous 503 errors when trying to authenticate to
storage.bhs.cloud.ovh.net, so disable uploads for it temporarily
until the problem is resolved on their end.

Change-Id: I477589bfffd87a5296288d78083390b924f9a853
2021-04-06 15:39:44 +00:00

47 lines
1.5 KiB
YAML

- hosts: localhost
tasks:
- name: Include Zuul manifest role
include_role:
name: generate-zuul-manifest
- name: Generate bulk log download script
include_role:
name: local-log-download
vars:
local_log_download_api: 'https://zuul.opendev.org/api/tenant/{{ zuul.tenant }}'
- name: Include upload logs role
no_log: true
include_role:
name: upload-logs-swift
vars:
zuul_log_path_shard_build: true
zuul_log_cloud_config: '{{ item }}'
zuul_log_partition: true
zuul_log_delete_after: 2592000
# Unique log prefix to avoid container name collisions when ceph is
# used.
zuul_log_container: zuul_opendev_logs
with_random_choice:
- '{{ opendev_cloud_ovh_gra }}'
- '{{ opendev_cloud_rax_dfw }}'
- '{{ opendev_cloud_rax_iad }}'
- '{{ opendev_cloud_rax_ord }}'
# NOTE(ianw): file generated by local-log-download, upload_results
# is registered by the upload-logs-swift role
- name: Register quick-download link
zuul_return:
data:
zuul:
artifacts:
- name: Download all logs
url: 'download-logs.sh'
metadata:
command: 'curl "{{ upload_results.url }}/download-logs.sh" | bash'
- hosts: localhost
# NOTE(pabelanger): We ignore_errors for the following tasks as not to fail
# successful jobs.
ignore_errors: yes
roles:
- submit-logstash-jobs
- submit-subunit-jobs