validator.yml 1021 B

1234567891011121314151617181920212223242526
  1. ---
  2. ###############################################################################
  3. # Pre upgrade checks for known data problems, if this playbook fails you should
  4. # contact support. If you're not supported contact users@lists.openshift.com
  5. ###############################################################################
  6. - name: Verify 3.7 specific upgrade checks
  7. hosts: oo_first_master
  8. roles:
  9. - { role: lib_openshift }
  10. - { role: openshift_facts }
  11. tasks:
  12. - name: Check for invalid namespaces and SDN errors
  13. oc_objectvalidator:
  14. # DO NOT DISABLE THIS, YOUR UPGRADE WILL FAIL IF YOU DO SO
  15. - name: Confirm OpenShift authorization objects are in sync
  16. command: >
  17. {{ openshift_client_binary }} adm migrate authorization
  18. when:
  19. - openshift_currently_installed_version is version_compare('3.7','<')
  20. - openshift_upgrade_pre_authorization_migration_enabled | default(true) | bool
  21. changed_when: false
  22. register: l_oc_result
  23. until: l_oc_result.rc == 0
  24. retries: 2
  25. delay: 15