summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-08-24 09:45:58 -0400
committerRussell Teague <rteague@redhat.com>2017-08-24 11:48:03 -0400
commit186f6a6b44daf10d450331384df8bb6ab157ffac (patch)
treeb86bc04aadd1eccc8e8dd226d1d45a963e7ba35d /playbooks
parent4811a6247a37362e3722a4c18a2053343e7a555b (diff)
downloadopenshift-186f6a6b44daf10d450331384df8bb6ab157ffac.tar.gz
openshift-186f6a6b44daf10d450331384df8bb6ab157ffac.tar.bz2
openshift-186f6a6b44daf10d450331384df8bb6ab157ffac.tar.xz
openshift-186f6a6b44daf10d450331384df8bb6ab157ffac.zip
Upgrade check for OpenShift authorization objects
Adds task to run `oc adm migrate authorization` to ensure OpenShift authorization objects are in sync. Fixes #5021
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml10
1 files changed, 10 insertions, 0 deletions
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