From 5bf96c1e30d034bd6f0c8eccf1103b8ed2b338ff Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 7 Sep 2021 17:20:40 -0700 Subject: [PATCH] Fix functional test job * Pin minikube to 1.22.0 Version 1.23.0 is failing with error: unable to recognize "deploy/crds/zuul-ci_v1alpha2_zuul_crd.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" Until we learn more, pin to the previously working k8s version. * Add debug log-level to the podman login test command This change should improve the test failure debugging where it currently may just prints "Shutting down, got signal: Terminated". * Remove "https://" from registry login https://github.com/containers/common/commit/f8136e70f9c80eabcb137081fd7f2c118f8853ad Added path-based authentication to "podman login" which they argue is incompatible with including https:// in the registry identifier. Doing so now produces an error. Co-Authored-By: Tristan Cacqueray Change-Id: Ic44b56a2eb6ac15cc5f4af5312fa4e3956d6e457 --- .zuul.yaml | 1 + playbooks/zuul-operator-functional/tasks/test_registry.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.zuul.yaml b/.zuul.yaml index 4776ab9..6076922 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -11,6 +11,7 @@ # see: https://github.com/eclipse/che/issues/8134 docker_userland_proxy: false container_runtime: docker + minikube_version: v1.22.0 # NOTE(corvus): 1.23.0 failed with no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" - job: description: Operator integration tests with Kubernetes diff --git a/playbooks/zuul-operator-functional/tasks/test_registry.yaml b/playbooks/zuul-operator-functional/tasks/test_registry.yaml index 32da8ea..fdc9756 100644 --- a/playbooks/zuul-operator-functional/tasks/test_registry.yaml +++ b/playbooks/zuul-operator-functional/tasks/test_registry.yaml @@ -11,7 +11,7 @@ containers: - name: test-registry image: quay.io/containers/podman:latest - command: ['podman', 'login', '--tls-verify=false', 'https://zuul-registry/', '-u', 'testuser', '-p', 'testpass'] + command: ['podman', '--log-level=debug', 'login', '--tls-verify=false', 'zuul-registry', '-u', 'testuser', '-p', 'testpass'] securityContext: privileged: true restartPolicy: Never