* Pin testtools to < 2.8.3 Testtools removed some code stestr uses; pin until this is resolved. This part of the patch is copied from https://review.opendev.org/977169 * Run functional-openstack tests on Ubuntu Noble With https://review.opendev.org/976893, support for Ubuntu Jammy was dropped, so fix the test setup by using a Ubuntu Noble node. Change-Id: I575e84b5935867ef9e8d8fd21e7b0f5b5d42de1b
293 lines
10 KiB
YAML
293 lines
10 KiB
YAML
- job:
|
|
description: |
|
|
Test that nodepool works with kubernetes.
|
|
name: nodepool-functional-k8s
|
|
pre-run: playbooks/nodepool-functional-k8s/pre.yaml
|
|
run: playbooks/nodepool-functional-k8s/run.yaml
|
|
post-run: playbooks/nodepool-functional-k8s/post.yaml
|
|
required-projects:
|
|
- zuul/nodepool
|
|
nodeset: ubuntu-noble
|
|
|
|
- secret:
|
|
name: nodepool-registry-credentials
|
|
data:
|
|
quay.io:
|
|
username: zuul-ci+opendevzuul
|
|
password: !encrypted/pkcs1-oaep
|
|
- dPa/0LbB/17MGxUK9TW/Q8nle145jpF0yS7SzyvsDF3Bdu2j1PaQb4R2V2E+uLTn/g/aJ
|
|
dEQBIzJl8sbCjHgq7awLzUIxf7bxYgvnWBOWYUxYGzgFC75qXBfDPbay+/34Rb5AQgJQn
|
|
7D4opbrO3QoEMhGGcUQLOtU1FootPe4+aQ97BmS5YLvbwB/Cp70pjy94WK9Mn4FTwBl3r
|
|
JCOuS1WLZ+4zyCdbkXSzs/UJFLM8BLdp9qxrGJHk2Cp24hYkDWEkXJZQuBbs/KcAgP6Oy
|
|
e+3+BCmEYGEhZUa5cfGUvDZ52kOl2c8nqFUqiK6AEXyP2iTYC5lg/MbAmf4yAq0euT6jr
|
|
REc7dsiqOpAqzWVu74VcC9PJm6JCoN3mKQjFk1sJWqS8seZeJ2ShpbdRfG9mrAQOae/wm
|
|
DE+B/nNZUYMhEU1L8aBmpfiJUFaY8yQU7Qjv0pFzlQ2CmZ+82oeulma5jvExmWV/panSm
|
|
0zqiwxkI4hVxohCAHJTkF7br0l/JS9sw6d/+CXCQRTkNxG3k9Rsy2tlu9iL3FcCx+NPU2
|
|
6dYwd9AtWM3ihJcl5LmHoO0Kw+oSj+ey9QCbms2kemoyL3H2AHNjiJwVoPwgXyamkXxEc
|
|
HC0Mx+9BDq7u+g8rxGO0gcSyN04kA3VDhMhS7U5alL/7VkVxCYQ7QOuwQ9bFmQ=
|
|
api_token: !encrypted/pkcs1-oaep
|
|
- o7bmCuyc9j0tG55uOEBnPj2HCwQMNRrV6VybHLtppD99yR7+GxiGipcaVVOBfUxyzrJ4N
|
|
aKdm10SDB1x0h/sJaEcNXxoCuT3p6k+yrHw62CvXtzYsDRXv8gXJ5goCsfuga8Sj9aClH
|
|
9sXhD3Ws5y/1+A4ZyeOWB5rYz18yjkLgTdqkEnxaiPGl0sV+rLq1QXeFwmPcxx6zUxfTA
|
|
lsv6yHQqiX1ZJ32965/90uYVIfyn3/jYM3PX+49WR75fcvUDjnuPrKvfNcUNggKpTG4za
|
|
jmvUeES7uCdokTC6TofcX3irRqogYKSrijsH8P+8uFaY34ngQvVt7LKpaLan8M91FmqHz
|
|
YUsfv0qMxvaZZmpVgiQOOglqixlEAYXHi/CAyOSqPm1yDq+x/SHdlEvFSn+0lydig2jEJ
|
|
eMN3L3Ke6S9/SJCF0n0feyd2pBKKdWqjj24yvC/4mmoGW1z0Iybc/97iv289m/30QN3uV
|
|
VTwbyzA8NrUE7pSoLHycu1/zzhxanTX0J2I9MmrLrZ0xHchRh9sDS3JmvMLkuZ/QKUg9H
|
|
CunMqEQl8ws5R9A45slHJbVfvX5HWwnaHyPuWvltsbAJFvyTqJAFM8YNUqApCUXgET8+i
|
|
xaA3WV4++5VT3WubcEL7ADT2kR2Ogj6NU1r/GtvjpQHQ8VYh//tCNIXPyE/ghk=
|
|
|
|
- job:
|
|
name: nodepool-build-image
|
|
parent: opendev-build-container-image
|
|
description: Build container images.
|
|
timeout: &image_build_timeout 4800
|
|
dependencies:
|
|
- opendev-buildset-registry
|
|
requires:
|
|
- python-builder-3.11-bookworm-container-image
|
|
- python-base-3.11-bookworm-container-image
|
|
provides: nodepool-container-image
|
|
vars: &nodepool_image_vars
|
|
promote_container_image_method: intermediate-registry
|
|
promote_container_image_job: nodepool-upload-image
|
|
container_command: docker
|
|
container_images:
|
|
- context: .
|
|
registry: quay.io
|
|
repository: quay.io/zuul-ci/nodepool
|
|
target: nodepool
|
|
tags:
|
|
# If zuul.tag is defined: [ '3', '3.19', '3.19.0' ]. Only works for 3-component tags.
|
|
# Otherwise: ['latest']
|
|
&imagetag "{{ zuul.tag is defined | ternary([zuul.get('tag', '').split('.')[0], '.'.join(zuul.get('tag', '').split('.')[:2]), zuul.get('tag', '')], ['latest']) }}"
|
|
arch:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
- context: .
|
|
registry: quay.io
|
|
repository: quay.io/zuul-ci/nodepool-launcher
|
|
target: nodepool-launcher
|
|
tags: *imagetag
|
|
arch:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
- context: .
|
|
registry: quay.io
|
|
repository: quay.io/zuul-ci/nodepool-builder
|
|
target: nodepool-builder
|
|
tags: *imagetag
|
|
arch:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
|
|
- job:
|
|
name: nodepool-upload-image
|
|
parent: opendev-upload-container-image
|
|
description: Build container images and upload.
|
|
timeout: *image_build_timeout
|
|
requires:
|
|
- python-builder-3.11-bookworm-container-image
|
|
- python-base-3.11-bookworm-container-image
|
|
provides: nodepool-container-image
|
|
vars: *nodepool_image_vars
|
|
secrets:
|
|
- name: container_registry_credentials
|
|
secret: nodepool-registry-credentials
|
|
pass-to-parent: true
|
|
|
|
- job:
|
|
name: nodepool-promote-image
|
|
parent: opendev-promote-container-image
|
|
description: Promote previously uploaded container images.
|
|
vars: *nodepool_image_vars
|
|
secrets:
|
|
- name: container_registry_credentials
|
|
secret: nodepool-registry-credentials
|
|
pass-to-parent: true
|
|
|
|
# NOTE(ianw) : kept separate as these aren't intended to be released
|
|
- job:
|
|
name: nodepool-build-image-siblings
|
|
dependencies:
|
|
- opendev-buildset-registry
|
|
parent: opendev-build-container-image
|
|
description: Build container images, with required projects as sibling from source
|
|
required-projects:
|
|
- zuul/nodepool
|
|
- openstack/diskimage-builder
|
|
requires:
|
|
- python-builder-3.11-bookworm-container-image
|
|
- python-base-3.11-bookworm-container-image
|
|
provides: nodepool-siblings-container-image
|
|
vars:
|
|
zuul_work_dir: "{{ zuul.projects['opendev.org/zuul/nodepool'].src_dir }}"
|
|
container_images:
|
|
- context: .
|
|
registry: quay.io
|
|
repository: quay.io/zuul-ci/nodepool-launcher
|
|
target: nodepool-launcher
|
|
tags:
|
|
- siblings
|
|
- context: .
|
|
registry: quay.io
|
|
repository: quay.io/zuul-ci/nodepool-builder
|
|
target: nodepool-builder
|
|
tags:
|
|
- siblings
|
|
siblings:
|
|
- opendev.org/openstack/diskimage-builder
|
|
|
|
- job:
|
|
name: nodepool-functional-container-openstack-base
|
|
abstract: true
|
|
description: |
|
|
Test Nodepool containers with an OpenStack.
|
|
|
|
Note this is an abstract job and does not define an image to
|
|
build and test, and you should not inherit directly from this
|
|
job.
|
|
|
|
If you wish to build the nodepool containers with released
|
|
dependencies, you should inherit from
|
|
nodepool-functional-container-openstack-release-base and define
|
|
nodepool_diskimage for the image to build and test.
|
|
|
|
If you wish to build the nodepool containers with dependencies
|
|
installed from source, you should inherit from
|
|
nodepool-functional-container-openstack-siblings-base and define
|
|
nodepool_diskimage for the image build and test.
|
|
timeout: 5400
|
|
required-projects:
|
|
- zuul/nodepool
|
|
pre-run: playbooks/nodepool-functional-container-openstack/pre.yaml
|
|
run: playbooks/nodepool-functional-container-openstack/run.yaml
|
|
post-run: playbooks/nodepool-functional-container-openstack/post.yaml
|
|
vars:
|
|
zuul_copy_output:
|
|
/var/log/nodepool: logs
|
|
nodeset: ubuntu-noble
|
|
|
|
- job:
|
|
name: nodepool-functional-container-openstack-release-base
|
|
abstract: true
|
|
description: |
|
|
Test Nodepool containers and OpenStack, against released
|
|
dependencies.
|
|
|
|
Note, this job does not define an image to build. It should be
|
|
inherited from and nodepool_diskimage defined.
|
|
parent: nodepool-functional-container-openstack-base
|
|
dependencies:
|
|
- nodepool-build-image
|
|
required-projects:
|
|
- name: opendev/glean # note, installed by dib
|
|
- name: zuul/nodepool
|
|
|
|
- job:
|
|
name: nodepool-functional-container-openstack-release
|
|
description: |
|
|
Test Nodepool containers and OpenStack, with released projects
|
|
|
|
This builds, uploads and boots a CentOS 8 image into a
|
|
OpenStack cloud.
|
|
parent: nodepool-functional-container-openstack-release-base
|
|
vars:
|
|
nodepool_diskimage:
|
|
base_element: ubuntu-minimal
|
|
release: jammy
|
|
mirror: "http://{{ zuul_site_mirror_fqdn }}/ubuntu"
|
|
env-vars:
|
|
DIB_APT_LOCAL_CACHE: "0"
|
|
DIB_DEBOOTSTRAP_EXTRA_ARGS: "--no-check-gpg"
|
|
DIB_DISABLE_APT_CLEANUP: "1"
|
|
|
|
- job:
|
|
name: nodepool-functional-container-openstack-siblings-base
|
|
abstract: true
|
|
description: |
|
|
Test Nodepool containers and OpenStack, with some projects from source
|
|
|
|
Note, this job does not define an image to build. It should be
|
|
inherited from and nodepool_diskimage defined.
|
|
parent: nodepool-functional-container-openstack-base
|
|
dependencies:
|
|
- nodepool-build-image-siblings
|
|
required-projects:
|
|
- name: opendev/glean # note, installed by dib
|
|
- name: zuul/nodepool
|
|
vars:
|
|
nodepool_container_tag: ':siblings'
|
|
|
|
- job:
|
|
name: nodepool-functional-container-openstack-siblings
|
|
description: |
|
|
Test Nodepool containers and OpenStack, with some projects from source
|
|
|
|
This builds, uploads and boots a CentOS 8 image into a
|
|
OpenStack cloud.
|
|
parent: nodepool-functional-container-openstack-siblings-base
|
|
vars:
|
|
nodepool_diskimage:
|
|
base_element: centos-minimal
|
|
release: 9-stream
|
|
mirror: "http://{{ zuul_site_mirror_fqdn }}/centos"
|
|
env-vars:
|
|
DIB_SIMPLE_INIT_NETWORKMANAGER: '1'
|
|
|
|
- job:
|
|
name: nodepool-nox-py311
|
|
description: |
|
|
Nodepool unit tests with ZooKeeper running
|
|
parent: nox-py311
|
|
pre-run: playbooks/nodepool-nox/pre.yaml
|
|
vars:
|
|
nox_environment:
|
|
NODEPOOL_ZK_CA: /opt/zookeeper/ca/certs/cacert.pem
|
|
NODEPOOL_ZK_CERT: /opt/zookeeper/ca/certs/client.pem
|
|
NODEPOOL_ZK_KEY: /opt/zookeeper/ca/keys/clientkey.pem
|
|
nodeset: ubuntu-jammy
|
|
|
|
- project:
|
|
queue: zuul
|
|
vars:
|
|
release_python: python3
|
|
check:
|
|
jobs:
|
|
- opendev-buildset-registry
|
|
- nodepool-build-image
|
|
- zuul-nox-docs
|
|
- nox-linters:
|
|
nodeset: ubuntu-jammy
|
|
- nodepool-nox-py311
|
|
- nodepool-functional-container-openstack-release
|
|
- nodepool-functional-k8s
|
|
- build-python-release
|
|
gate:
|
|
jobs:
|
|
- nodepool-upload-image
|
|
- zuul-nox-docs
|
|
- nox-linters:
|
|
nodeset: ubuntu-jammy
|
|
- nodepool-nox-py311
|
|
- nodepool-functional-k8s
|
|
- build-python-release
|
|
promote:
|
|
jobs:
|
|
- nodepool-promote-image
|
|
- zuul-promote-nox-docs
|
|
- opendev-promote-python
|
|
release:
|
|
jobs:
|
|
- opendev-release-python
|
|
- zuul-publish-nox-docs
|
|
- upload-container-image:
|
|
timeout: *image_build_timeout
|
|
secrets:
|
|
name: container_registry_credentials
|
|
secret: nodepool-registry-credentials
|
|
pass-to-parent: true
|
|
vars:
|
|
<<: *nodepool_image_vars
|
|
upload_container_image_promote: false
|