upgrade_static.yml 602 B

123456789101112131415161718192021222324252627
  1. ---
  2. # PREREQ Node service is ready to run static pods
  3. # INPUT r_etcd_upgrade_version
  4. - name: Verify cluster is healthy pre-upgrade
  5. command: "{{ etcdctlv2 }} cluster-health"
  6. - name: Stop etcd
  7. systemd:
  8. name: "{{ etcd_service }}"
  9. state: stopped
  10. when: not openshift.node.bootstrapped
  11. - name: Remove old service file
  12. file:
  13. path: "{{ etcd_service }}"
  14. state: absent
  15. - name: Configure static definition
  16. import_tasks: ../static.yml
  17. - name: Verify cluster is healthy
  18. command: "{{ etcdctlv2 }} cluster-health"
  19. register: etcdctl
  20. until: etcdctl.rc == 0
  21. retries: 3
  22. delay: 10