From 32291b387a61a55eb593d9cdc48bd0924ab59eb5 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 3 Mar 2021 10:15:37 +0000 Subject: [PATCH 1/1] Pin openshift version to avoid regression in kubernetes client Signed-off-by: Cian Johnston Change-Id: Id3b173e8ae31ed36f48282c1628cd753dfec62eb --- playbooks/roles/postinstall/tasks/configure-jumphost.yml | 2 +- playbooks/roles/postinstall/vars/main.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/postinstall/tasks/configure-jumphost.yml b/playbooks/roles/postinstall/tasks/configure-jumphost.yml index 3e0cfb5..6468bc6 100644 --- a/playbooks/roles/postinstall/tasks/configure-jumphost.yml +++ b/playbooks/roles/postinstall/tasks/configure-jumphost.yml @@ -22,7 +22,7 @@ - name: Install openshift pip: - name: openshift + name: "openshift=={{ openshift_version }}" - name: Ensure /root/.kube folder exists and empty file: diff --git a/playbooks/roles/postinstall/vars/main.yaml b/playbooks/roles/postinstall/vars/main.yaml index 9c1177b..01abd5b 100644 --- a/playbooks/roles/postinstall/vars/main.yaml +++ b/playbooks/roles/postinstall/vars/main.yaml @@ -18,5 +18,8 @@ # ============LICENSE_END========================================================= jumphost: "{{ 'jumphost' if provisioner_type == 'heat' else 'localhost' }}" +# NOTE (cian): pinning openshift due to regression in 0.12 +# Ref: https://github.com/ansible-collections/community.kubernetes/issues/283 +openshift_version: "0.11" # vim: set ts=2 sw=2 expandtab: -- 2.25.1