Fix nodepool-zuul-functional

Several fixes to this job:

We need to run bindep twice - once for nodepool, once for zuul. Add
invocation of bindep role and also copy install-distro-packages so that
the job works, next step is remove the install-distro-packages from
zuul.

Add a post-run to copy the nodepool logs, so you can diagnose what's
going wrong if the jobs fails

Fix up a configuration issue, it tries to write build-logs to
/var/log/nodepool which it doesn't own, redirect to the temp area.

Add it as a non-voting check job

Depends-On: https://review.openstack.org/545163
Change-Id: I12db55d3e4c7a71b9af56567858df0a620ee3b73
This commit is contained in:
Ian Wienand 2018-02-16 10:27:33 +11:00 committed by Andreas Jaeger
parent 04c586e644
commit 5195ccb70a
4 changed files with 19 additions and 3 deletions

View File

@ -6,6 +6,7 @@
This test runs the zuul project ``nodepool`` environment. This test runs the zuul project ``nodepool`` environment.
pre-run: playbooks/nodepool-zuul-functional/pre.yaml pre-run: playbooks/nodepool-zuul-functional/pre.yaml
post-run: playbooks/nodepool-zuul-functional/post.yaml
required-projects: required-projects:
- openstack-infra/nodepool - openstack-infra/nodepool
- openstack-infra/zuul - openstack-infra/zuul
@ -115,6 +116,8 @@
- tox-cover - tox-cover
- tox-pep8 - tox-pep8
- tox-py35 - tox-py35
- nodepool-zuul-functional:
voting: false
- nodepool-functional-py35: - nodepool-functional-py35:
voting: false voting: false
- nodepool-functional-py35-src: - nodepool-functional-py35-src:
@ -132,6 +135,3 @@
post: post:
jobs: jobs:
- publish-openstack-sphinx-docs-infra-python3 - publish-openstack-sphinx-docs-infra-python3
experimental:
jobs:
- nodepool-zuul-functional

View File

@ -0,0 +1,8 @@
- hosts: all
tasks:
- name: Copy nodepool logs from /tmp
synchronize:
src: '/tmp/nodepool/'
dest: '{{ zuul.executor.log_root }}/nodepool/'
mode: pull
verify_host: true

View File

@ -1,5 +1,12 @@
- hosts: all - hosts: all
name: Zuul setup for nodepool test name: Zuul setup for nodepool test
roles:
- role: bindep
bindep_profile: default
bindep_dir: "{{ zuul.projects['git.openstack.org/openstack-infra/zuul'].src_dir }}"
# TODO(AJaeger): Remove once legacy script is removed from zuul
- legacy-copy-jenkins-scripts
tasks: tasks:
- name: Run tools/nodepool-integration-setup.sh from zuul - name: Run tools/nodepool-integration-setup.sh from zuul

View File

@ -1,4 +1,5 @@
images-dir: /tmp/nodepool/images images-dir: /tmp/nodepool/images
build-log-dir: /tmp/nodepool/builds
zookeeper-servers: zookeeper-servers:
- host: localhost - host: localhost