Reenable crio jobs
We switch the crio buildset registry job to run on debian bookworm for the same reason we switched the other buildset registry jobs: compatibility between skopeo and docker. Additionally, we fix the crio/minikube route by avoiding the use of the removed repo. [1] kubectl from minikube will be used as it should have always been. [1] https://kubernetes.io/blog/2023/08/31/legacy-package-repository-deprecation/#can-i-continue-to-use-the-legacy-package-repositories Change-Id: I25b1f3ba7ba34b0dc0043c659111ca8405b375da
This commit is contained in:
parent
bae449c42c
commit
32edb51a7e
@ -5,21 +5,11 @@
|
|||||||
- name: Install minikube
|
- name: Install minikube
|
||||||
when: ensure_kubernetes_type == 'minikube'
|
when: ensure_kubernetes_type == 'minikube'
|
||||||
block:
|
block:
|
||||||
- name: Add all repositories
|
- name: Install kubernetes dependencies
|
||||||
include_role:
|
|
||||||
name: ensure-package-repositories
|
|
||||||
vars:
|
|
||||||
repositories_keys:
|
|
||||||
- url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
|
||||||
repositories_list:
|
|
||||||
- repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
|
|
||||||
|
|
||||||
- name: Install kubernetes packages and dependencies
|
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- conntrack
|
- conntrack
|
||||||
- kubectl
|
|
||||||
- liblz4-tool
|
- liblz4-tool
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
@ -10,6 +10,13 @@
|
|||||||
mode: 0755
|
mode: 0755
|
||||||
when: not stat_result.stat.exists
|
when: not stat_result.stat.exists
|
||||||
|
|
||||||
|
- name: Install kubectl as minikube
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
src: /tmp/minikube
|
||||||
|
dest: /usr/local/bin/kubectl
|
||||||
|
state: link
|
||||||
|
|
||||||
- name: Run ensure-docker role
|
- name: Run ensure-docker role
|
||||||
include_role:
|
include_role:
|
||||||
name: ensure-docker
|
name: ensure-docker
|
||||||
|
@ -354,68 +354,66 @@
|
|||||||
post-run:
|
post-run:
|
||||||
- test-playbooks/registry/test-registry-post.yaml
|
- test-playbooks/registry/test-registry-post.yaml
|
||||||
|
|
||||||
# FIXME(yoctozepto): crio jobs are disabled because their repository seems to be broken
|
- job:
|
||||||
|
name: zuul-jobs-test-registry-buildset-registry-k8s-crio
|
||||||
|
dependencies: zuul-jobs-test-registry-buildset-registry
|
||||||
|
description: |
|
||||||
|
Test a buildset registry with kubernetes and CRIO
|
||||||
|
|
||||||
# - job:
|
It is not meant to be used directly but rather run on changes
|
||||||
# name: zuul-jobs-test-registry-buildset-registry-k8s-crio
|
to roles in the zuul-jobs repo.
|
||||||
# dependencies: zuul-jobs-test-registry-buildset-registry
|
files:
|
||||||
# description: |
|
- roles/pull-from-intermediate-registry/.*
|
||||||
# Test a buildset registry with kubernetes and CRIO
|
- roles/push-to-intermediate-registry/.*
|
||||||
|
- roles/ensure-docker/.*
|
||||||
|
- roles/ensure-kubernetes/.*
|
||||||
|
- roles/ensure-package-repositories/.*
|
||||||
|
- roles/build-docker-image/.*
|
||||||
|
- roles/run-buildset-registry/.*
|
||||||
|
- roles/use-buildset-registry/.*
|
||||||
|
- test-playbooks/registry/.*
|
||||||
|
run: test-playbooks/registry/buildset-registry-k8s-crio.yaml
|
||||||
|
post-run:
|
||||||
|
- test-playbooks/registry/buildset-registry-k8s-crio-post.yaml
|
||||||
|
- test-playbooks/registry/test-registry-post.yaml
|
||||||
|
vars:
|
||||||
|
container_command: podman
|
||||||
|
|
||||||
# It is not meant to be used directly but rather run on changes
|
- job:
|
||||||
# to roles in the zuul-jobs repo.
|
name: zuul-jobs-test-ensure-kubernetes-crio
|
||||||
# files:
|
description: |
|
||||||
# - roles/pull-from-intermediate-registry/.*
|
Test the ensure-kubernetes role with crio-o
|
||||||
# - roles/push-to-intermediate-registry/.*
|
|
||||||
# - roles/ensure-docker/.*
|
|
||||||
# - roles/ensure-kubernetes/.*
|
|
||||||
# - roles/ensure-package-repositories/.*
|
|
||||||
# - roles/build-docker-image/.*
|
|
||||||
# - roles/run-buildset-registry/.*
|
|
||||||
# - roles/use-buildset-registry/.*
|
|
||||||
# - test-playbooks/registry/.*
|
|
||||||
# run: test-playbooks/registry/buildset-registry-k8s-crio.yaml
|
|
||||||
# post-run:
|
|
||||||
# - test-playbooks/registry/buildset-registry-k8s-crio-post.yaml
|
|
||||||
# - test-playbooks/registry/test-registry-post.yaml
|
|
||||||
# vars:
|
|
||||||
# container_command: podman
|
|
||||||
|
|
||||||
# - job:
|
This job tests changes to the ensure-kubernetes roles. It
|
||||||
# name: zuul-jobs-test-ensure-kubernetes-crio
|
is not meant to be used directly but rather run on changes to
|
||||||
# description: |
|
roles in the zuul-jobs repo.
|
||||||
# Test the ensure-kubernetes role with crio-o
|
# Does not work under ubuntu-bionic
|
||||||
|
abstract: true
|
||||||
|
files:
|
||||||
|
- roles/ensure-docker/.*
|
||||||
|
- roles/ensure-kubernetes/.*
|
||||||
|
- roles/ensure-package-repositories/.*
|
||||||
|
- test-playbooks/ensure-kubernetes/.*
|
||||||
|
run: test-playbooks/ensure-kubernetes/crio.yaml
|
||||||
|
post-run: test-playbooks/ensure-kubernetes/post.yaml
|
||||||
|
|
||||||
# This job tests changes to the ensure-kubernetes roles. It
|
- job:
|
||||||
# is not meant to be used directly but rather run on changes to
|
name: zuul-jobs-test-ensure-kubernetes-crio-ubuntu-focal
|
||||||
# roles in the zuul-jobs repo.
|
description: Test the ensure-kubernetes role with crio-o on ubuntu-focal
|
||||||
# # Does not work under ubuntu-bionic
|
parent: zuul-jobs-test-ensure-kubernetes-crio
|
||||||
# abstract: true
|
nodeset:
|
||||||
# files:
|
nodes:
|
||||||
# - roles/ensure-docker/.*
|
- name: ubuntu-focal
|
||||||
# - roles/ensure-kubernetes/.*
|
label: ubuntu-focal
|
||||||
# - roles/ensure-package-repositories/.*
|
|
||||||
# - test-playbooks/ensure-kubernetes/.*
|
|
||||||
# run: test-playbooks/ensure-kubernetes/crio.yaml
|
|
||||||
# post-run: test-playbooks/ensure-kubernetes/post.yaml
|
|
||||||
|
|
||||||
# - job:
|
- job:
|
||||||
# name: zuul-jobs-test-ensure-kubernetes-crio-ubuntu-focal
|
name: zuul-jobs-test-ensure-kubernetes-crio-ubuntu-jammy
|
||||||
# description: Test the ensure-kubernetes role with crio-o on ubuntu-focal
|
description: Test the ensure-kubernetes role with crio-o on ubuntu-jammy
|
||||||
# parent: zuul-jobs-test-ensure-kubernetes-crio
|
parent: zuul-jobs-test-ensure-kubernetes-crio
|
||||||
# nodeset:
|
nodeset:
|
||||||
# nodes:
|
nodes:
|
||||||
# - name: ubuntu-focal
|
- name: ubuntu-jammy
|
||||||
# label: ubuntu-focal
|
label: ubuntu-jammy
|
||||||
|
|
||||||
# - job:
|
|
||||||
# name: zuul-jobs-test-ensure-kubernetes-crio-ubuntu-jammy
|
|
||||||
# description: Test the ensure-kubernetes role with crio-o on ubuntu-jammy
|
|
||||||
# parent: zuul-jobs-test-ensure-kubernetes-crio
|
|
||||||
# nodeset:
|
|
||||||
# nodes:
|
|
||||||
# - name: ubuntu-jammy
|
|
||||||
# label: ubuntu-jammy
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: zuul-jobs-test-ensure-kubernetes-microk8s
|
name: zuul-jobs-test-ensure-kubernetes-microk8s
|
||||||
@ -593,6 +591,9 @@
|
|||||||
- zuul-jobs-test-registry-podman
|
- zuul-jobs-test-registry-podman
|
||||||
- zuul-jobs-test-registry-buildset-registry
|
- zuul-jobs-test-registry-buildset-registry
|
||||||
- zuul-jobs-test-registry-buildset-registry-k8s-microk8s
|
- zuul-jobs-test-registry-buildset-registry-k8s-microk8s
|
||||||
|
- zuul-jobs-test-registry-buildset-registry-k8s-crio
|
||||||
|
- zuul-jobs-test-ensure-kubernetes-crio-ubuntu-focal
|
||||||
|
- zuul-jobs-test-ensure-kubernetes-crio-ubuntu-jammy
|
||||||
- zuul-jobs-test-ensure-kubernetes-microk8s-ubuntu-jammy
|
- zuul-jobs-test-ensure-kubernetes-microk8s-ubuntu-jammy
|
||||||
- zuul-jobs-test-ensure-kubernetes-microk8s-debian-bookworm
|
- zuul-jobs-test-ensure-kubernetes-microk8s-debian-bookworm
|
||||||
- zuul-jobs-test-ensure-skopeo-debian-bookworm
|
- zuul-jobs-test-ensure-skopeo-debian-bookworm
|
||||||
|
Loading…
Reference in New Issue
Block a user