From 186f6a6b44daf10d450331384df8bb6ab157ffac Mon Sep 17 00:00:00 2001 From: Russell Teague Date: Thu, 24 Aug 2017 09:45:58 -0400 Subject: Upgrade check for OpenShift authorization objects Adds task to run `oc adm migrate authorization` to ensure OpenShift authorization objects are in sync. Fixes #5021 --- playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'playbooks/common') diff --git a/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml b/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml index 90e95422b..136ad5362 100644 --- a/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml +++ b/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml @@ -7,6 +7,16 @@ hosts: oo_first_master roles: - { role: lib_openshift } + tasks: - name: Check for invalid namespaces and SDN errors oc_objectvalidator: + + - name: Confirm OpenShift authorization objects are in sync + command: > + {{ openshift.common.client_binary }} adm migrate authorization + changed_when: false + register: l_oc_result + until: l_oc_result.rc == 0 + retries: 4 + delay: 15 -- cgit v1.2.3