
Rather than implement functional OpenStack testing as a devstack plugin, use devstack as a black-box OpenStack. This allows us to move nodepool to a new Zuul tenant without depending on the devstack job and all its associated projects. It will also let us replace devstack with something potentially lighter weight in the future. The job permits customized settings for what images to build, so that the DIB project can inherit from it and make child jobs for each of the operating systems it cares about. Change-Id: Ie6bc891cebd32b3d1bb646109f13ac2fd383bba5
22 lines
727 B
YAML
22 lines
727 B
YAML
- hosts: all
|
|
roles:
|
|
- role: bindep
|
|
bindep_dir: "{{ zuul.projects['opendev.org/zuul/nodepool'].src_dir }}"
|
|
- role: test-setup
|
|
zuul_work_dir: "{{ zuul.projects['opendev.org/zuul/nodepool'].src_dir }}"
|
|
- install-devstack
|
|
tasks:
|
|
# Create the virtualenv so we can control the python version
|
|
- name: Create virtualenv
|
|
pip:
|
|
name: extras
|
|
virtualenv: "{{ ansible_user_dir }}/.venv"
|
|
virtualenv_python: python3
|
|
- name: Install python project from source
|
|
include_role:
|
|
name: install-if-python
|
|
vars:
|
|
zuul_work_dir: "{{ item.src_dir }}"
|
|
error_on_failure: true
|
|
loop: "{{ zuul.projects.values() | selectattr('required') | list }}"
|