From a9eda711c9e0a15ea06b81c78093c0297e1171b5 Mon Sep 17 00:00:00 2001
From: Kien Nguyen <kiennt@vn.fujitsu.com>
Date: Mon, 9 Oct 2017 14:21:36 +0700
Subject: [PATCH] Remove Zun-client legacy jobs

Depends-On: I7f1a123d1c243bf0f2f53b51671c75c3d01aae68
Depends-On: Ie978557d64b5fee8bd412dbfc56236b87a8d95cf
Change-Id: I2f6bed199dc3128d86408d81f462e87251b0a0ab
---
 .../post.yaml                                 | 15 ----
 .../run.yaml                                  | 75 -------------------
 zuul.d/zuul-legacy-jobs.yaml                  | 14 ----
 3 files changed, 104 deletions(-)
 delete mode 100644 playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml
 delete mode 100644 playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml

diff --git a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml
deleted file mode 100644
index e07f5510..00000000
--- a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/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/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml
deleted file mode 100644
index f66e9316..00000000
--- a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml
+++ /dev/null
@@ -1,75 +0,0 @@
-- hosts: all
-  name: Autoconverted job legacy-zunclient-devstack-dsvm-docker-sql from old job gate-zunclient-devstack-dsvm-docker-sql
-  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-infra/devstack-gate
-              dest: devstack-gate
-          EOF
-          /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
-              git://git.openstack.org \
-              openstack-infra/devstack-gate
-        executable: /bin/bash
-        chdir: '{{ ansible_user_dir }}/workspace'
-      environment: '{{ zuul | zuul_legacy_vars }}'
-
-    - shell:
-        cmd: |
-          set -e
-          set -x
-          cat << 'EOF' >>"/tmp/dg-local.conf"
-          [[local|localrc]]
-          enable_plugin zun git://git.openstack.org/openstack/zun
-
-          EOF
-        executable: /bin/bash
-        chdir: '{{ ansible_user_dir }}/workspace'
-      environment: '{{ zuul | zuul_legacy_vars }}'
-
-    - shell:
-        cmd: |
-          set -e
-          set -x
-
-          export PYTHONUNBUFFERED=true
-          export DEVSTACK_GATE_TEMPEST=0
-          export DEVSTACK_GATE_NEUTRON=1
-
-          # Enable tempest for tempest plugin
-          export ENABLED_SERVICES=tempest
-
-          export PROJECTS="openstack/zun $PROJECTS"
-          export PROJECTS="openstack/python-zunclient $PROJECTS"
-          export PROJECTS="openstack/kuryr-libnetwork $PROJECTS"
-          export PROJECTS="openstack/devstack-plugin-container $PROJECTS"
-
-          # Keep localrc to be able to set some vars in post_test_hook
-          export KEEP_LOCALRC=1
-
-          function gate_hook {
-               cd /opt/stack/new/zun/
-              ./zun/tests/contrib/gate_hook.sh docker sql
-          }
-          export -f gate_hook
-
-          function post_test_hook {
-              source $BASE/new/devstack/accrc/admin/admin
-              cd /opt/stack/new/python-zunclient/
-              ./zunclient/tests/functional/hooks/post_test_hook.sh docker
-          }
-          export -f post_test_hook
-          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/zuul.d/zuul-legacy-jobs.yaml b/zuul.d/zuul-legacy-jobs.yaml
index d74b134b..0ca2a9c1 100644
--- a/zuul.d/zuul-legacy-jobs.yaml
+++ b/zuul.d/zuul-legacy-jobs.yaml
@@ -15898,20 +15898,6 @@
     post-run: playbooks/legacy/zun-ui-nodejs4-npm-run-test/post
     timeout: 2400
 
-- job:
-    name: legacy-zunclient-devstack-dsvm-docker-sql
-    parent: legacy-dsvm-base
-    run: playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run
-    post-run: playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post
-    timeout: 4200
-    required-projects:
-      - openstack-dev/devstack
-      - openstack-infra/devstack-gate
-      - openstack/devstack-plugin-container
-      - openstack/kuryr-libnetwork
-      - openstack/python-zunclient
-      - openstack/zun
-
 - job:
     name: legacy-zuul-nodepool
     parent: legacy-base