Native Zuul v3
Depends-on: I938cb7d5f820a761fc65ac82d137f83a2188faed Change-Id: Ia8d40343d35cf8cfdc0f1708dd9724d8476474f3
This commit is contained in:
parent
6631134c9f
commit
cd0b522ad5
90
.zuul.yaml
90
.zuul.yaml
@ -1,3 +1,4 @@
|
||||
|
||||
- project:
|
||||
templates:
|
||||
- check-requirements
|
||||
@ -7,88 +8,26 @@
|
||||
- release-notes-jobs-python3
|
||||
check:
|
||||
jobs:
|
||||
- vitrage-dsvm-api-py3
|
||||
- vitrage-dsvm-datasources-py3
|
||||
- vitrage-dsvm-mock-py3
|
||||
- grenade-vitrage
|
||||
- vitrage-dsvm-api-ipv6-only
|
||||
- vitrage-tempest-plugin-api
|
||||
- vitrage-tempest-plugin-api-ipv6-only
|
||||
- vitrage-tempest-plugin-datasources
|
||||
- vitrage-tempest-plugin-mock
|
||||
- vitrage-grenade
|
||||
|
||||
gate:
|
||||
queue: vitrage
|
||||
jobs:
|
||||
- vitrage-dsvm-api-py3
|
||||
- vitrage-dsvm-datasources-py3
|
||||
- grenade-vitrage
|
||||
- vitrage-dsvm-api-ipv6-only
|
||||
- vitrage-tempest-plugin-api
|
||||
- vitrage-tempest-plugin-api-ipv6-only
|
||||
- vitrage-tempest-plugin-datasources
|
||||
- vitrage-grenade
|
||||
|
||||
- job:
|
||||
name: vitrage-dsvm-api-py3
|
||||
parent: legacy-dsvm-base
|
||||
run: playbooks/legacy/vitrage-dsvm-api-py3/run.yaml
|
||||
post-run: playbooks/legacy/vitrage-dsvm-api-py3/post.yaml
|
||||
timeout: 7800
|
||||
required-projects:
|
||||
- openstack/devstack-gate
|
||||
- openstack/aodh
|
||||
- openstack/mistral
|
||||
- openstack/python-vitrageclient
|
||||
- openstack/vitrage
|
||||
- openstack/vitrage-tempest-plugin
|
||||
irrelevant-files:
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^releasenotes/.*$
|
||||
|
||||
- job:
|
||||
name: vitrage-dsvm-api-ipv6-only
|
||||
parent: vitrage-dsvm-api-py3
|
||||
run: playbooks/legacy/vitrage-dsvm-api-py3/run-ipv6.yaml
|
||||
required-projects:
|
||||
- openstack/tempest
|
||||
|
||||
- job:
|
||||
name: vitrage-dsvm-datasources-py3
|
||||
parent: legacy-dsvm-base
|
||||
run: playbooks/legacy/vitrage-dsvm-datasources-py3/run.yaml
|
||||
post-run: playbooks/legacy/vitrage-dsvm-datasources-py3/post.yaml
|
||||
timeout: 7800
|
||||
required-projects:
|
||||
- openstack/devstack-gate
|
||||
- openstack/aodh
|
||||
- openstack/mistral
|
||||
- openstack/python-vitrageclient
|
||||
- openstack/vitrage
|
||||
- openstack/vitrage-tempest-plugin
|
||||
irrelevant-files:
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^releasenotes/.*$
|
||||
|
||||
- job:
|
||||
name: vitrage-dsvm-mock-py3
|
||||
parent: legacy-dsvm-base
|
||||
voting: false
|
||||
run: playbooks/legacy/vitrage-dsvm-mock-py3/run.yaml
|
||||
post-run: playbooks/legacy/vitrage-dsvm-mock-py3/post.yaml
|
||||
timeout: 7800
|
||||
required-projects:
|
||||
- openstack/devstack-gate
|
||||
- openstack/python-vitrageclient
|
||||
- openstack/vitrage
|
||||
- openstack/vitrage-tempest-plugin
|
||||
irrelevant-files:
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^releasenotes/.*$
|
||||
|
||||
- job:
|
||||
name: grenade-vitrage
|
||||
parent: legacy-dsvm-base
|
||||
run: playbooks/legacy/vitrage-grenade/run.yaml
|
||||
post-run: playbooks/legacy/vitrage-grenade/post.yaml
|
||||
name: vitrage-grenade
|
||||
parent: grenade
|
||||
timeout: 7800
|
||||
required-projects:
|
||||
- openstack/grenade
|
||||
- openstack/devstack-gate
|
||||
- openstack/vitrage
|
||||
- openstack/python-vitrageclient
|
||||
irrelevant-files:
|
||||
@ -98,4 +37,5 @@
|
||||
- ^releasenotes/.*$
|
||||
- ^setup.cfg$
|
||||
vars:
|
||||
branch_override: default
|
||||
devstack_plugins:
|
||||
vitrage: https://opendev.org/openstack/vitrage
|
||||
|
@ -1 +0,0 @@
|
||||
export TEMPEST_VERSION=master
|
@ -1,84 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2016 - Nokia
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
export DEVSTACK_GATE_NEUTRON=1
|
||||
export DEVSTACK_GATE_HEAT=1
|
||||
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
|
||||
export KEEP_LOCALRC=1
|
||||
|
||||
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nenable_plugin heat https://opendev.org/openstack/heat'
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nenable_plugin ceilometer https://opendev.org/openstack/ceilometer'
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nenable_plugin aodh https://opendev.org/openstack/aodh'
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nenable_plugin mistral https://opendev.org/openstack/mistral'
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nenable_plugin vitrage https://opendev.org/openstack/vitrage'
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nenable_plugin vitrage-tempest-plugin https://opendev.org/openstack/vitrage-tempest-plugin'
|
||||
|
||||
# enable them for gate testing they are disabled by default
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nVITRAGE_USE_STATIC=1'
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nVITRAGE_USE_DOCTOR=1'
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nVITRAGE_USE_PROMETHEUS=1'
|
||||
|
||||
# we don't want swift
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\ndisable_service s-account s-container s-object s-proxy'
|
||||
|
||||
DEVSTACK_LOCAL_CONFIG+="$(cat <<EOF
|
||||
|
||||
|
||||
[[post-config|\$NOVA_CONF]]
|
||||
[DEFAULT]
|
||||
notification_topics = notifications,vitrage_notifications
|
||||
notification_driver = messagingv2
|
||||
|
||||
[notifications]
|
||||
versioned_notifications_topics = versioned_notifications,vitrage_notifications
|
||||
notification_driver = messagingv2
|
||||
|
||||
|
||||
[[post-config|\$NEUTRON_CONF]]
|
||||
[DEFAULT]
|
||||
notification_topics = notifications,vitrage_notifications
|
||||
notification_driver = messagingv2
|
||||
|
||||
[[post-config|\$CINDER_CONF]]
|
||||
[DEFAULT]
|
||||
notification_topics = notifications,vitrage_notifications
|
||||
notification_driver = messagingv2
|
||||
|
||||
[[post-config|\$HEAT_CONF]]
|
||||
[DEFAULT]
|
||||
notification_topics = notifications,vitrage_notifications
|
||||
notification_driver = messagingv2
|
||||
policy_file = /etc/heat/policy.yaml
|
||||
|
||||
[[post-config|\$AODH_CONF]]
|
||||
[oslo_messaging_notifications]
|
||||
driver = messagingv2
|
||||
topics = notifications, vitrage_notifications
|
||||
|
||||
[[post-config|\$VITRAGE_CONF]]
|
||||
|
||||
[DEFAULT]
|
||||
notifiers = mistral,nova,webhook
|
||||
|
||||
[datasources]
|
||||
snapshots_interval = 120
|
||||
EOF
|
||||
)"
|
||||
|
||||
export DEVSTACK_LOCAL_CONFIG
|
||||
$BASE/new/devstack-gate/devstack-vm-gate.sh
|
@ -1,73 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2018 - Nokia
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
|
||||
export KEEP_LOCALRC=1
|
||||
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nenable_plugin vitrage https://opendev.org/openstack/vitrage'
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\nenable_plugin vitrage-tempest-plugin https://opendev.org/openstack/vitrage-tempest-plugin'
|
||||
|
||||
# we don't want swift
|
||||
DEVSTACK_LOCAL_CONFIG+=$'\ndisable_service s-account s-container s-object s-proxy'
|
||||
|
||||
DEVSTACK_LOCAL_CONFIG+="$(cat <<EOF
|
||||
|
||||
|
||||
[[post-config|\$NOVA_CONF]]
|
||||
[DEFAULT]
|
||||
notification_topics = notifications,vitrage_notifications
|
||||
notification_driver = messagingv2
|
||||
|
||||
[notifications]
|
||||
versioned_notifications_topics = versioned_notifications,vitrage_notifications
|
||||
notification_driver = messagingv2
|
||||
notification_format = both
|
||||
|
||||
[[post-config|\$CINDER_CONF]]
|
||||
[DEFAULT]
|
||||
notification_topics = notifications,vitrage_notifications
|
||||
notification_driver = messagingv2
|
||||
|
||||
[[post-config|\$VITRAGE_CONF]]
|
||||
|
||||
[DEFAULT]
|
||||
verbose = true
|
||||
debug = false
|
||||
notifiers = nova,webhook
|
||||
rpc_response_timeout=300
|
||||
|
||||
[datasources]
|
||||
types=doctor,mock_graph_datasource
|
||||
path=vitrage.datasources,vitrage.tests.mocks
|
||||
snapshots_interval=60
|
||||
|
||||
[mock_graph_datasource]
|
||||
networks=100
|
||||
zones_per_cluster=4
|
||||
hosts_per_zone=16
|
||||
zabbix_alarms_per_host=8
|
||||
instances_per_host=50
|
||||
ports_per_instance=3
|
||||
volumes_per_instance=2
|
||||
vitrage_alarms_per_instance=0
|
||||
tripleo_controllers=3
|
||||
zabbix_alarms_per_controller=1
|
||||
EOF
|
||||
)"
|
||||
|
||||
export DEVSTACK_LOCAL_CONFIG
|
||||
$BASE/new/devstack-gate/devstack-vm-gate.sh
|
@ -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
|
@ -1,77 +0,0 @@
|
||||
- hosts: all
|
||||
name: Vitrage IPv6 legacy jobs
|
||||
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 PYTHONUNBUFFERED=true
|
||||
export PROJECTS="openstack/python-vitrageclient $PROJECTS"
|
||||
export PROJECTS="openstack/aodh $PROJECTS"
|
||||
export PROJECTS="openstack/mistral $PROJECTS"
|
||||
export PROJECTS="openstack/vitrage $PROJECTS"
|
||||
export PROJECTS="openstack/vitrage-tempest-plugin $PROJECTS"
|
||||
|
||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"SERVICE_IP_VERSION=6"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"SERVICE_HOST=''"
|
||||
# temporary workaround with IPv6-based host name until we'll figure out how to pass
|
||||
# IPv6 address to gRPC client
|
||||
#export DEVSTACK_LOCAL_CONFIG+=$'\n'"VITRAGE_COORDINATION_URL=etcd3://localhost:2379"
|
||||
|
||||
function pre_test_hook {
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/pre_test_hook.sh
|
||||
}
|
||||
export -f pre_test_hook
|
||||
|
||||
function gate_hook {
|
||||
source $BASE/new/vitrage/devstack/gate_hook.sh
|
||||
}
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
cd $BASE/new/tempest/tools
|
||||
./verify-ipv6-only-deployments.sh
|
||||
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'api'
|
||||
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
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 }}'
|
@ -1,68 +0,0 @@
|
||||
- hosts: all
|
||||
name: Autoconverted job legacy-vitrage-dsvm-api-py3 from old job gate-vitrage-dsvm-api-py35-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 PYTHONUNBUFFERED=true
|
||||
export PROJECTS="openstack/python-vitrageclient $PROJECTS"
|
||||
export PROJECTS="openstack/aodh $PROJECTS"
|
||||
export PROJECTS="openstack/mistral $PROJECTS"
|
||||
export PROJECTS="openstack/vitrage $PROJECTS"
|
||||
export PROJECTS="openstack/vitrage-tempest-plugin $PROJECTS"
|
||||
|
||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||
|
||||
function pre_test_hook {
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/pre_test_hook.sh
|
||||
}
|
||||
export -f pre_test_hook
|
||||
|
||||
function gate_hook {
|
||||
source $BASE/new/vitrage/devstack/gate_hook.sh
|
||||
}
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'api'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
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 }}'
|
@ -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
|
@ -1,68 +0,0 @@
|
||||
- hosts: all
|
||||
name: Autoconverted job legacy-vitrage-dsvm-datasources-py3 from old job gate-vitrage-dsvm-datasources-py35-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 PYTHONUNBUFFERED=true
|
||||
export PROJECTS="openstack/python-vitrageclient $PROJECTS"
|
||||
export PROJECTS="openstack/aodh $PROJECTS"
|
||||
export PROJECTS="openstack/mistral $PROJECTS"
|
||||
export PROJECTS="openstack/vitrage $PROJECTS"
|
||||
export PROJECTS="openstack/vitrage-tempest-plugin $PROJECTS"
|
||||
|
||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||
|
||||
function pre_test_hook {
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/pre_test_hook.sh
|
||||
}
|
||||
export -f pre_test_hook
|
||||
|
||||
function gate_hook {
|
||||
source $BASE/new/vitrage/devstack/gate_hook.sh
|
||||
}
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'datasources'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
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 }}'
|
@ -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
|
@ -1,66 +0,0 @@
|
||||
- hosts: all
|
||||
name: Autoconverted job legacy-vitrage-dsvm-mock-py3 from old job gate-vitrage-dsvm-mock-py35-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 PYTHONUNBUFFERED=true
|
||||
export PROJECTS="openstack/python-vitrageclient $PROJECTS"
|
||||
export PROJECTS="openstack/vitrage $PROJECTS"
|
||||
export PROJECTS="openstack/vitrage-tempest-plugin $PROJECTS"
|
||||
|
||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||
|
||||
function pre_test_hook {
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/pre_test_hook.sh
|
||||
}
|
||||
export -f pre_test_hook
|
||||
|
||||
function gate_hook {
|
||||
source $BASE/new/vitrage/devstack/gate_hook_mock.sh
|
||||
}
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'mock'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=$BASE/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
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 }}'
|
@ -1,16 +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
|
||||
|
@ -1,59 +0,0 @@
|
||||
- hosts: all
|
||||
name: job for grenade-vitrage
|
||||
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
|
||||
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||
[[local|localrc]]
|
||||
enable_plugin vitrage https://opendev.org/openstack/vitrage
|
||||
# TEMPEST_PLUGINS+=' ../'
|
||||
USE_PYTHON3=True
|
||||
EOF
|
||||
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 PROJECTS="openstack/vitrage $PROJECTS"
|
||||
export PROJECTS="openstack/python-vitrageclient $PROJECTS"
|
||||
export PYTHONUNBUFFERED=true
|
||||
export GRENADE_PLUGINRC="enable_grenade_plugin vitrage https://opendev.org/openstack/vitrage"
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
|
||||
export DEVSTACK_GATE_GRENADE=pullup
|
||||
if [ "{{ branch_override }}" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
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 }}'
|
Loading…
Reference in New Issue
Block a user