crio: add missing registries.conf

This change fixes recent cri-o test failure because of a missing
registries.conf file.

Change-Id: Ieb2efa0e097cc76dc9b67389e86c2646dfc0c00d
This commit is contained in:
Tristan Cacqueray 2020-02-14 21:40:13 +00:00
parent 0bec277bab
commit 211e92ec40
2 changed files with 13 additions and 1 deletions

View File

@ -19,6 +19,18 @@
group: root
state: link
become: true
- name: Fix missing registries.conf
# See: https://github.com/containers/podman.io/issues/127
copy:
content: |
[registries.search]
registries = []
[registries.insecure]
registries = []
[registries.block]
registries = []
dest: /etc/containers/registries.conf
become: true
- name: Set crio cgroup driver
ini_file:
path: /etc/crio/crio.conf

View File

@ -24,7 +24,7 @@
shell: "kubectl logs pod/quaytest | grep 'Zuul container test'"
- name: Run a remote test pod
command: kubectl run --generator=run-pod/v1 --image=debian:testing upstream-dockertest --command -- /bin/bash -c 'echo Upstream; sleep infinity'
command: kubectl run --generator=run-pod/v1 --image=docker.io/debian:testing upstream-dockertest --command -- /bin/bash -c 'echo Upstream; sleep infinity'
- name: Wait for the pod to be ready
command: kubectl wait --for=condition=Ready pod/upstream-dockertest --timeout=60s
- name: Check the output of the pod