From 9a39e22b0f5802d54422f4290eaa9ebc98837931 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 14 Jun 2022 20:06:38 +0200 Subject: [PATCH] Remove mention of haproxy-endpoints role Role was never migrated to usage of haproxy-endpoints role and included task was used instead the whole time. With that to reduce complexity and to have unified approach, all mention of the role and handler are removed from the code. Change-Id: Ie8f7af4f4028e3447319039fee8b0f82005c7add --- doc/source/index.rst | 13 ------------- handlers/main.yml | 4 ---- tasks/zun_compute.yml | 1 - tasks/zun_post_install.yml | 1 - 4 files changed, 19 deletions(-) diff --git a/doc/source/index.rst b/doc/source/index.rst index 7e01b4d..8d9a363 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -36,19 +36,6 @@ Example playbook .. literalinclude:: ../../examples/playbook.yml :language: yaml -External Restart Hooks -~~~~~~~~~~~~~~~~~~~~~~ - -When the role performs a restart of the service, it will notify an Ansible -handler named ``Manage LB``, which is a noop within this role. In the -playbook, other roles may be loaded before and after this role which will -implement Ansible handler listeners for ``Manage LB``, allowing external roles -to manage the load balancer endpoints responsible for sending traffic to the -servers being restarted by marking them in maintenance or active mode, -draining sessions, etc. For an example implementation, please reference the -`ansible-haproxy-endpoints role `_ -used by the openstack-ansible project. - Tags ~~~~ diff --git a/handlers/main.yml b/handlers/main.yml index 4f2a1a8..d2d0e4f 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -96,7 +96,3 @@ listen: - "Restart zun services" - "venv changed" - -- meta: noop - listen: Manage LB - when: false diff --git a/tasks/zun_compute.yml b/tasks/zun_compute.yml index 3517030..6e591a5 100644 --- a/tasks/zun_compute.yml +++ b/tasks/zun_compute.yml @@ -223,7 +223,6 @@ config_overrides: "{{ zun_kuryr_conf_overrides }}" config_type: "ini" notify: - - Manage LB - Restart docker tags: - zun-config diff --git a/tasks/zun_post_install.yml b/tasks/zun_post_install.yml index fb739be..e7b0795 100644 --- a/tasks/zun_post_install.yml +++ b/tasks/zun_post_install.yml @@ -53,7 +53,6 @@ config_overrides: "{{ zun_api_paste_ini_overrides }}" config_type: "ini" notify: - - Manage LB - Restart uwsgi services - Restart zun services tags: