d9f673c020
This adds publishing of artifacts to AFS in parallel with the existing publishing to the static volume. The additional tasks added to the openstack-artifacts.yaml playbook have been tested in the project-config-test-artifacts-to-afs test (results at [1]) and also in an external project ironic-python-agent-builder (see notes in [2]). Thus we can have high confidence it will work. After this merges, I will manually rsync the old static tarballs data to the AFS directory (again; it has been sync'd previously) and from that point on both should be exactly the same. At that point we can switch the DNS entries for static.<openstack|opendev>.org (the sites have been created with [3]) to the new server and we will be fully migrated to the AFS volume. We can then remove the static publishing. [1] http://files.openstack.org/project/tarballs.opendev.org/openstack/project-config/afs-copy-test/ [2] https://review.opendev.org/705161 [3] https://review.opendev.org/704913 Change-Id: Ia3a0358249e9ed3d766b1b61535f2f6d67d4eb2d
31 lines
956 B
YAML
31 lines
956 B
YAML
- hosts: localhost
|
|
roles:
|
|
- role: add-fileserver
|
|
when: zuul_success | bool
|
|
|
|
- hosts: "{{ fileserver.fqdn }}"
|
|
gather_facts: False
|
|
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
|