zuul-jobs/test-playbooks/registry/buildset-registry-k8s-crio-post.yaml
Jan Gutter 83bfd5b917
Update ensure-kubernetes with podman support
* This adds some extra options to the ensure-kubernetes role:
  * podman + cri-o can now be used for testing
  * This mode seems to be slightly more supported than the
    current profiles.
* The location for minikube install can be moved.
* The use-buildset-registry role needed slight updates in order
  to populate the kubernetes registry config early.

Change-Id: Ia578f1e00432eec5d81304f70db649e420786a02
2024-08-22 20:50:39 +01:00

20 lines
729 B
YAML

- hosts: all
tasks:
- name: Fetch cri-o logs
become: true
shell: |
ZUUL_LOG_DIR={{ ansible_user_dir }}/zuul-output/logs
cp /etc/resolv.conf ${ZUUL_LOG_DIR}
mkdir -p ${ZUUL_LOG_DIR}/containerd
cp -r /etc/containers ${ZUUL_LOG_DIR}/containerd
mkdir -p ${ZUUL_LOG_DIR}/cri-o
systemctl status crio > ${ZUUL_LOG_DIR}/cri-o/systemctl-status.txt
journalctl -u crio > ${ZUUL_LOG_DIR}/cri-o/journalctl-u.txt
failed_when: no
- name: Describe dockertest pod
command: kubectl describe pod/quaytest
ignore_errors: true
- name: Describe upstream-dockertest pod
command: kubectl describe pod/upstream-dockertest
ignore_errors: true