post_control_plane.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ---
  2. ####################################################################################
  3. # Post upgrade - Upgrade web console, default router, default registry, and examples
  4. ####################################################################################
  5. - name: Upgrade web console
  6. hosts: oo_first_master
  7. roles:
  8. - role: openshift_web_console
  9. when:
  10. - openshift_web_console_install | default(true) | bool
  11. # upgrade registry and router pods; we defer waiting for these pods
  12. # until after the next play to hopefully save some time polling.
  13. - import_playbook: ../../../openshift-hosted/private/upgrade.yml
  14. - name: Upgrade manageiq, templates, examples
  15. hosts: oo_first_master
  16. roles:
  17. - lib_utils
  18. - openshift_manageiq
  19. - role: openshift_project_request_template
  20. when: openshift_project_request_template_manage
  21. # Create the new templates shipped in 3.2, existing templates are left
  22. # unmodified. This prevents the subsequent role definition for
  23. # openshift_examples from failing when trying to replace templates that do
  24. # not already exist. We could have potentially done a replace --force to
  25. # create and update in one step.
  26. - role: openshift_examples
  27. when: openshift_install_examples | default(true) | bool
  28. - openshift_hosted_templates
  29. # Update the existing templates
  30. - role: openshift_examples
  31. when: openshift_install_examples | default(true) | bool
  32. openshift_examples_import_command: replace
  33. - role: openshift_hosted_templates
  34. openshift_hosted_templates_import_command: replace
  35. # Poll for registry and router pods, redeploy registry certs if needed.
  36. - import_playbook: ../../../openshift-hosted/private/upgrade_poll_and_check_certs.yml
  37. when: openshift_hosted_manage_registry | default(True)
  38. # Check for warnings to be printed at the end of the upgrade:
  39. - name: Clean up and display warnings
  40. hosts: oo_masters_to_config
  41. tags:
  42. - always
  43. gather_facts: no
  44. roles:
  45. - role: openshift_excluder
  46. r_openshift_excluder_action: enable
  47. post_tasks:
  48. # Check if any masters are using pluginOrderOverride and warn if so, only for 1.3/3.3 and beyond:
  49. - name: grep pluginOrderOverride
  50. command: grep pluginOrderOverride {{ openshift.common.config_base }}/master/master-config.yaml
  51. register: grep_plugin_order_override
  52. changed_when: false
  53. failed_when: false
  54. - name: Warn if pluginOrderOverride is in use in master-config.yaml
  55. debug:
  56. msg: "WARNING pluginOrderOverride is being deprecated in master-config.yaml, please see https://docs.openshift.com/enterprise/latest/architecture/additional_concepts/admission_controllers.html for more information."
  57. when:
  58. - not (grep_plugin_order_override is skipped)
  59. - grep_plugin_order_override.rc == 0
  60. - name: Warn if shared-resource-viewer could not be updated
  61. debug:
  62. msg: "WARNING the shared-resource-viewer role could not be upgraded to 3.6 spec because it's marked protected, please see https://bugzilla.redhat.com/show_bug.cgi?id=1493213"
  63. when:
  64. - __shared_resource_viewer_protected | default(false)
  65. - import_playbook: upgrade_components.yml