Merge "Publish tarballs artifacts to AFS in parallel"

This commit is contained in:
Zuul 2020-02-17 15:11:00 +00:00 committed by Gerrit Code Review
commit 13cc1c64d0
5 changed files with 20 additions and 51 deletions

View File

@ -1,15 +0,0 @@
- hosts: all
tasks:
- name: Ensure artifacts directory exists
file:
path: '{{ zuul.executor.work_root }}/artifacts/afs-copy-test/'
state: directory
delegate_to: localhost
- name: Write a dummy artifact file
copy:
content: 'This is an artifact created by {{ zuul.change }}/{{ zuul.patchset }}'
dest: '{{ zuul.executor.work_root }}/artifacts/afs-copy-test/{{ zuul.change }}.txt'
delegate_to: localhost

View File

@ -1,16 +0,0 @@
- hosts: localhost
tasks:
- block:
- name: Create AFS token
include_role:
name: create-afs-token
- name: Upload to afs
include_role:
name: upload-afs-synchronize
vars:
afs_source: "{{ zuul.executor.work_root }}/artifacts/"
afs_target: "/afs/.openstack.org/project/tarballs.opendev.org/{{ zuul.project.name}}/"
- name: Destroy AFS token
include_role:
name: destroy-afs-token
when: zuul_success | bool

View File

@ -8,3 +8,23 @@
roles:
- role: publish-artifacts-to-fileserver
when: zuul_success | bool
# NOTE(ianw) 2020-02-10 : upload to AFS in parallel until we switch
# DNS for the static.<openstack|opendev>.org servers. After that
# remove above section to stop static server publishing.
- hosts: localhost
tasks:
- block:
- name: Create AFS token
include_role:
name: create-afs-token
- name: Upload to afs
include_role:
name: upload-afs-synchronize
vars:
afs_source: "{{ zuul.executor.work_root }}/artifacts/"
afs_target: "/afs/.openstack.org/project/tarballs.opendev.org/{{ zuul.project.name}}/"
- name: Destroy AFS token
include_role:
name: destroy-afs-token
when: zuul_success | bool

View File

@ -78,17 +78,6 @@
secrets:
- secret: site_tarballs
name: fileserver
# NOTE(ianw) 2020-01-30 : we are moving tarballs to publish to an AFS
# volume. This job is intended to replace publish-openstack-artifacts
# when it is debugged and ready.
- job:
name: publish-openstack-artifacts-with-afs
description: |
Publish job to upload artifacts to /afs/.openstack.org/project/tarballs.opendev.org
post-review: true
post-run: playbooks/publish/openstack-artifacts-with-afs.yaml
secrets:
- secret: afs_tarballs_opendev_org
name: afs
@ -1199,11 +1188,3 @@
The testing is done for Ubuntu Xenial.
nodeset: ubuntu-xenial
# NOTE(ianw) : 2020-01-31 temporary job for testing
- job:
name: project-config-test-artifacts-to-afs
parent: publish-openstack-artifacts-with-afs
description: |
Temporary job to test uploading artifacts to AFS
run: playbooks/publish/openstack-artifacts-with-afs-test.yaml

View File

@ -3265,7 +3265,6 @@
files: *infra-docs-index
- promote-openstack-specs-site:
files: *specs-site
- project-config-test-artifacts-to-afs
periodic:
jobs:
- propose-project-config-update