From 0ad382f02fed3af2024831cabc34035581754200 Mon Sep 17 00:00:00 2001 From: Duong Ha-Quang Date: Thu, 12 Oct 2017 16:05:19 +0700 Subject: [PATCH] Remove legacy jobs in Karbor Depends-On: Idde74f35895dbf9a1fe39ccb07d893a6a935dd0f Depends-On: Ic3e948cdbc5e2f322e4ffca8deffebe8247552f2 Change-Id: I4d145539197c746789902a308e1e37509fa9c3d8 --- .../legacy/karbor-dsvm-fullstack/post.yaml | 80 ----------------- .../legacy/karbor-dsvm-fullstack/run.yaml | 87 ------------------- zuul.d/zuul-legacy-jobs.yaml | 13 --- 3 files changed, 180 deletions(-) delete mode 100644 playbooks/legacy/karbor-dsvm-fullstack/post.yaml delete mode 100644 playbooks/legacy/karbor-dsvm-fullstack/run.yaml diff --git a/playbooks/legacy/karbor-dsvm-fullstack/post.yaml b/playbooks/legacy/karbor-dsvm-fullstack/post.yaml deleted file mode 100644 index dac87534..00000000 --- a/playbooks/legacy/karbor-dsvm-fullstack/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/legacy/karbor-dsvm-fullstack/run.yaml b/playbooks/legacy/karbor-dsvm-fullstack/run.yaml deleted file mode 100644 index 51e5b7b3..00000000 --- a/playbooks/legacy/karbor-dsvm-fullstack/run.yaml +++ /dev/null @@ -1,87 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-karbor-dsvm-fullstack from old job gate-karbor-dsvm-fullstack-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-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" - [[post-config|$SWIFT_CONFIG_PROXY_SERVER]] - [DEFAULT] - workers=4 - - [[post-config|$CINDER_CONF]] - [DEFAULT] - osapi_volume_workers=8 - rpc_response_timeout=120 - - [[post-config|$KARBOR_API_CONF]] - [DEFAULT] - max_window_time=150 - min_window_time=75 - min_interval=300 - - 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 - export DEVSTACK_GATE_INSTALL_TESTONLY=1 - - - export BRANCH_OVERRIDE=default - if [ "$BRANCH_OVERRIDE" != "default" ] ; then - export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE - fi - - export PROJECTS="openstack/karbor $PROJECTS" - export PROJECTS="openstack/trove $PROJECTS" - export PROJECTS="openstack/trove-dashboard $PROJECTS" - export DEVSTACK_PROJECT_FROM_GIT="python-karborclient" - - export DEVSTACK_GATE_SETTINGS=/opt/stack/new/karbor/devstack/devstackgaterc - - function gate_hook { - bash -xe $BASE/new/karbor/karbor/tests/contrib/gate_hook.sh fullstack - } - export -f gate_hook - - function post_test_hook { - bash -xe $BASE/new/karbor/karbor/tests/contrib/post_test_hook.sh fullstack - } - 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 e05fd705..be090b63 100644 --- a/zuul.d/zuul-legacy-jobs.yaml +++ b/zuul.d/zuul-legacy-jobs.yaml @@ -3675,19 +3675,6 @@ - openstack-infra/devstack-gate - openstack/k8s-cloud-provider -- job: - name: legacy-karbor-dsvm-fullstack - parent: legacy-dsvm-base - run: playbooks/legacy/karbor-dsvm-fullstack/run - post-run: playbooks/legacy/karbor-dsvm-fullstack/post - timeout: 7800 - required-projects: - - openstack-infra/devstack-gate - - openstack/karbor - - openstack/python-karborclient - - openstack/trove - - openstack/trove-dashboard - - job: name: legacy-keystone-dsvm-functional parent: legacy-dsvm-base