Merge "Migrate tempest-dsvm-cells job to an in-tree job definition"
This commit is contained in:
commit
e7a9dd4589
@ -70,6 +70,12 @@
|
||||
run: playbooks/legacy/nova-caching-scheduler/run.yaml
|
||||
post-run: playbooks/legacy/nova-caching-scheduler/post.yaml
|
||||
|
||||
- job:
|
||||
name: nova-cells-v1
|
||||
parent: nova-dsvm-base
|
||||
run: playbooks/legacy/nova-cells-v1/run.yaml
|
||||
post-run: playbooks/legacy/nova-cells-v1/post.yaml
|
||||
|
||||
- job:
|
||||
name: nova-lvm
|
||||
parent: nova-dsvm-base
|
||||
@ -112,12 +118,14 @@
|
||||
# Please try to keep the list of job names sorted alphabetically.
|
||||
check:
|
||||
jobs:
|
||||
- nova-cells-v1
|
||||
- nova-multiattach
|
||||
- nova-next
|
||||
- nova-tox-functional
|
||||
- nova-tox-functional-py35
|
||||
gate:
|
||||
jobs:
|
||||
- nova-cells-v1
|
||||
- nova-multiattach
|
||||
- nova-next
|
||||
- nova-tox-functional
|
||||
|
15
playbooks/legacy/nova-cells-v1/post.yaml
Normal file
15
playbooks/legacy/nova-cells-v1/post.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
- 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
|
43
playbooks/legacy/nova-cells-v1/run.yaml
Normal file
43
playbooks/legacy/nova-cells-v1/run.yaml
Normal file
@ -0,0 +1,43 @@
|
||||
- hosts: all
|
||||
name: nova-cells-v1
|
||||
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
|
||||
export PYTHONUNBUFFERED=true
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_CELLS=1
|
||||
# NOTE(mriedem): Explicitly tell devstack-gate that we need to run
|
||||
# the cells v1 job with nova-network.
|
||||
export DEVSTACK_GATE_NEUTRON=0
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/nova/devstack/tempest-dsvm-cells-rc
|
||||
|
||||
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