Browse Source

Merge pull request #5198 from mtnbikenc/migrate-auth

Upgrade check for OpenShift authorization objects
Scott Dodson 7 years ago
parent
commit
c9be553a25
1 changed files with 10 additions and 0 deletions
  1. 10 0
      playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml

+ 10 - 0
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