ccfa2a6c16
* Updates etcd to v3.4 * Updated the config to use v3.4's logging mechanism * Deprecated etcd CA parameters aren't used, so we are not affected by their removal. * Note that we are not currently guarding against skip-version updates for etcd. Notable non-voting jobs exercising some of this: * kolla-ansible-ubuntu-upgrade-cephadm (cinder->tooz->etcd3gw->etcd) * kolla-ansible-ubuntu-zun (see https://review.opendev.org/c/openstack/openstack-ansible/+/883194 ) Depends-On: https://review.opendev.org/c/openstack/kolla/+/890464 Change-Id: I086e7bbc7db64421445731a533265e7056fbdb43
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
---
|
|
- name: Restart etcd container
|
|
vars:
|
|
service_name: "etcd"
|
|
service: "{{ etcd_services[service_name] }}"
|
|
become: true
|
|
kolla_container:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
environment: "{{ service.environment }}"
|
|
|
|
- name: Wait for etcd service port liveness
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ etcd_client_port }}"
|
|
connect_timeout: 1
|
|
timeout: 60
|
|
register: check_etcd_client_port
|
|
until: check_etcd_client_port is success
|
|
retries: 10
|
|
delay: 6
|
|
|
|
- name: Wait for etcd endpoints to be healthy
|
|
become: true
|
|
vars:
|
|
service_name: "etcd"
|
|
service: "{{ etcd_services[service_name] }}"
|
|
command: >-
|
|
{{ kolla_container_engine }} exec {{ service.container_name }}
|
|
etcdctl endpoint health
|
|
changed_when: false
|
|
register: result
|
|
until:
|
|
- result is success
|
|
- ((result.stdout | from_json | first)['health'] | default(False) | bool)
|
|
retries: 10
|
|
delay: 6
|