From a5ae9f4aa0e18787b4bb676b3e725c225deae96d Mon Sep 17 00:00:00 2001 From: Kenneth Giusti Date: Mon, 20 Jul 2020 09:51:15 -0400 Subject: [PATCH] Move legacy grenade jobs to Zuul v3 Also deletes obsolete playbook files for telemetry tests that have been removed. Change-Id: Ibbb811e988cc048e6c39a0c2336c716a1a0ddb30 --- .zuul.yaml | 25 ++---- .../post.yaml | 15 ---- .../run.yaml | 53 ------------ .../oslo.messaging-src-grenade-dsvm/post.yaml | 15 ---- .../oslo.messaging-src-grenade-dsvm/run.yaml | 51 ------------ .../post.yaml | 80 ------------------- .../post.yaml | 80 ------------------- .../post.yaml | 80 ------------------- 8 files changed, 6 insertions(+), 393 deletions(-) delete mode 100644 playbooks/oslo.messaging-src-grenade-dsvm-multinode/post.yaml delete mode 100644 playbooks/oslo.messaging-src-grenade-dsvm-multinode/run.yaml delete mode 100644 playbooks/oslo.messaging-src-grenade-dsvm/post.yaml delete mode 100644 playbooks/oslo.messaging-src-grenade-dsvm/run.yaml delete mode 100644 playbooks/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml delete mode 100644 playbooks/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml delete mode 100644 playbooks/oslo.messaging-telemetry-dsvm-integration-rabbit/post.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 112797145..27cee67bb 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -82,38 +82,25 @@ zuul_copy_output: '{{ devstack_log_dir }}/server.log': logs - -# End v3 native jobs - - - job: - name: oslo.messaging-src-grenade-dsvm - parent: legacy-dsvm-base - run: playbooks/oslo.messaging-src-grenade-dsvm/run.yaml - post-run: playbooks/oslo.messaging-src-grenade-dsvm/post.yaml + name: oslo.messaging-grenade + parent: grenade timeout: 10800 required-projects: - - openstack/grenade - - openstack/devstack-gate - openstack/oslo.messaging irrelevant-files: - ^(test-|)requirements.txt$ - ^setup.cfg$ - job: - name: oslo.messaging-src-grenade-dsvm-multinode - parent: legacy-dsvm-base-multinode - run: playbooks/oslo.messaging-src-grenade-dsvm-multinode/run.yaml - post-run: playbooks/oslo.messaging-src-grenade-dsvm-multinode/post.yaml + name: oslo.messaging-grenade-multinode + parent: grenade-multinode timeout: 10800 required-projects: - - openstack/grenade - - openstack/devstack-gate - openstack/oslo.messaging irrelevant-files: - ^(test-|)requirements.txt$ - ^setup.cfg$ - nodeset: legacy-ubuntu-xenial-2-node - project: @@ -140,9 +127,9 @@ voting: false - oslo.messaging-src-dsvm-full-kafka-hybrid: voting: false - - oslo.messaging-src-grenade-dsvm: + - oslo.messaging-grenade: voting: false - - oslo.messaging-src-grenade-dsvm-multinode: + - oslo.messaging-grenade-multinode: voting: false gate: diff --git a/playbooks/oslo.messaging-src-grenade-dsvm-multinode/post.yaml b/playbooks/oslo.messaging-src-grenade-dsvm-multinode/post.yaml deleted file mode 100644 index e07f5510a..000000000 --- a/playbooks/oslo.messaging-src-grenade-dsvm-multinode/post.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- hosts: primary - tasks: - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/logs/** - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/oslo.messaging-src-grenade-dsvm-multinode/run.yaml b/playbooks/oslo.messaging-src-grenade-dsvm-multinode/run.yaml deleted file mode 100644 index 7575112d3..000000000 --- a/playbooks/oslo.messaging-src-grenade-dsvm-multinode/run.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- hosts: primary - name: Autoconverted job legacy-oslo.messaging-src-grenade-dsvm-multinode from old - job gate-oslo.messaging-src-grenade-dsvm-multinode-ubuntu-xenial-nv - tasks: - - - name: Ensure legacy workspace directory - file: - path: '{{ ansible_user_dir }}/workspace' - state: directory - - - shell: - cmd: | - set -e - set -x - cat > clonemap.yaml << EOF - clonemap: - - name: openstack/devstack-gate - dest: devstack-gate - EOF - /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ - https://opendev.org \ - openstack/devstack-gate - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -e - set -x - export PROJECTS="openstack/grenade $PROJECTS" - export PYTHONUNBUFFERED=true - export DEVSTACK_GATE_TEMPEST=1 - export DEVSTACK_GATE_GRENADE=pullup - export DEVSTACK_GATE_USE_PYTHON3=True - export BRANCH_OVERRIDE=default - if [ "$BRANCH_OVERRIDE" != "default" ] ; then - export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE - fi - export DEVSTACK_GATE_TOPOLOGY="multinode" - export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME - - # Even if the branch is overridden, make sure we use - # the correct branch using the OVERRIDE_*_PROJECT_BRANCH - # variable. - uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` - export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH - - cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh - ./safe-devstack-vm-gate-wrap.sh - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/oslo.messaging-src-grenade-dsvm/post.yaml b/playbooks/oslo.messaging-src-grenade-dsvm/post.yaml deleted file mode 100644 index e07f5510a..000000000 --- a/playbooks/oslo.messaging-src-grenade-dsvm/post.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- hosts: primary - tasks: - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/logs/** - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/oslo.messaging-src-grenade-dsvm/run.yaml b/playbooks/oslo.messaging-src-grenade-dsvm/run.yaml deleted file mode 100644 index 7324d4580..000000000 --- a/playbooks/oslo.messaging-src-grenade-dsvm/run.yaml +++ /dev/null @@ -1,51 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-oslo.messaging-src-grenade-dsvm from old job gate-oslo.messaging-src-grenade-dsvm-ubuntu-xenial-nv - tasks: - - - name: Ensure legacy workspace directory - file: - path: '{{ ansible_user_dir }}/workspace' - state: directory - - - shell: - cmd: | - set -e - set -x - cat > clonemap.yaml << EOF - clonemap: - - name: openstack/devstack-gate - dest: devstack-gate - EOF - /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ - https://opendev.org \ - openstack/devstack-gate - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -e - set -x - export PROJECTS="openstack/grenade $PROJECTS" - export PYTHONUNBUFFERED=true - export DEVSTACK_GATE_TEMPEST=1 - export DEVSTACK_GATE_GRENADE=pullup - export DEVSTACK_GATE_USE_PYTHON3=True - export BRANCH_OVERRIDE=default - if [ "$BRANCH_OVERRIDE" != "default" ] ; then - export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE - fi - export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME - - # Even if the branch is overridden, make sure we use - # the correct branch using the OVERRIDE_*_PROJECT_BRANCH - # variable. - uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` - export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH - - cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh - ./safe-devstack-vm-gate-wrap.sh - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml b/playbooks/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml deleted file mode 100644 index dac875340..000000000 --- a/playbooks/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- hosts: primary - tasks: - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/logs/** - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml b/playbooks/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml deleted file mode 100644 index dac875340..000000000 --- a/playbooks/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- hosts: primary - tasks: - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/logs/** - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/oslo.messaging-telemetry-dsvm-integration-rabbit/post.yaml b/playbooks/oslo.messaging-telemetry-dsvm-integration-rabbit/post.yaml deleted file mode 100644 index dac875340..000000000 --- a/playbooks/oslo.messaging-telemetry-dsvm-integration-rabbit/post.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- hosts: primary - tasks: - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/logs/** - - --include=*/ - - --exclude=* - - --prune-empty-dirs