Remove haproxy,keepalived groups

Haproxy was renamed in [1].

[1] https://review.opendev.org/c/openstack/kolla-ansible/+/770618

Change-Id: Ib2d7f0774fede570a8c4c315d83afd420c31da0b
This commit is contained in:
Michal Arbet 2021-09-03 16:41:50 +02:00
parent 21b4dc5416
commit f0241f807f
13 changed files with 90 additions and 81 deletions

View File

@ -29,7 +29,7 @@ storage
monitoring monitoring
[chrony-server:children] [chrony-server:children]
haproxy loadbalancer
[chrony:children] [chrony:children]
control control
@ -78,12 +78,6 @@ compute
[loadbalancer:children] [loadbalancer:children]
network network
[keepalived:children]
loadbalancer
[haproxy:children]
loadbalancer
[mariadb:children] [mariadb:children]
control control
@ -697,7 +691,7 @@ storage
mariadb mariadb
[prometheus-haproxy-exporter:children] [prometheus-haproxy-exporter:children]
haproxy loadbalancer
[prometheus-memcached-exporter:children] [prometheus-memcached-exporter:children]
memcached memcached

View File

@ -53,7 +53,7 @@ storage
monitoring monitoring
[chrony-server:children] [chrony-server:children]
haproxy loadbalancer
[chrony:children] [chrony:children]
control control
@ -102,12 +102,6 @@ compute
[loadbalancer:children] [loadbalancer:children]
network network
[keepalived:children]
loadbalancer
[haproxy:children]
loadbalancer
[mariadb:children] [mariadb:children]
control control
@ -715,7 +709,7 @@ storage
mariadb mariadb
[prometheus-haproxy-exporter:children] [prometheus-haproxy-exporter:children]
haproxy loadbalancer
[prometheus-memcached-exporter:children] [prometheus-memcached-exporter:children]
memcached memcached

View File

@ -4,7 +4,7 @@ project_name: "loadbalancer"
loadbalancer_services: loadbalancer_services:
haproxy: haproxy:
container_name: haproxy container_name: haproxy
group: haproxy group: loadbalancer
enabled: true enabled: true
image: "{{ haproxy_image_full }}" image: "{{ haproxy_image_full }}"
privileged: True privileged: True
@ -13,7 +13,7 @@ loadbalancer_services:
healthcheck: "{{ haproxy_healthcheck }}" healthcheck: "{{ haproxy_healthcheck }}"
keepalived: keepalived:
container_name: keepalived container_name: keepalived
group: keepalived group: loadbalancer
enabled: "{{ enable_keepalived | bool }}" enabled: "{{ enable_keepalived | bool }}"
image: "{{ keepalived_image_full }}" image: "{{ keepalived_image_full }}"
privileged: True privileged: True

View File

@ -19,7 +19,7 @@
changed_when: false changed_when: false
when: when:
- enable_keepalived | bool - enable_keepalived | bool
- inventory_hostname in groups['keepalived'] - inventory_hostname in groups['loadbalancer']
- name: Group hosts by whether they are running HAProxy - name: Group hosts by whether they are running HAProxy
group_by: group_by:
@ -27,7 +27,7 @@
changed_when: false changed_when: false
when: when:
- enable_haproxy | bool - enable_haproxy | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- name: Set facts about whether we can run HAProxy and keepalived VIP prechecks - name: Set facts about whether we can run HAProxy and keepalived VIP prechecks
vars: vars:
@ -116,7 +116,7 @@
when: when:
- enable_haproxy | bool - enable_haproxy | bool
- container_facts['haproxy'] is not defined - container_facts['haproxy'] is not defined
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- name: Checking free port for HAProxy monitor (api interface) - name: Checking free port for HAProxy monitor (api interface)
wait_for: wait_for:
@ -128,7 +128,7 @@
when: when:
- enable_haproxy | bool - enable_haproxy | bool
- container_facts['haproxy'] is not defined - container_facts['haproxy'] is not defined
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- name: Checking free port for HAProxy monitor (vip interface) - name: Checking free port for HAProxy monitor (vip interface)
wait_for: wait_for:
@ -140,7 +140,7 @@
when: when:
- enable_haproxy | bool - enable_haproxy | bool
- haproxy_vip_prechecks - haproxy_vip_prechecks
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- api_interface_address != kolla_internal_vip_address - api_interface_address != kolla_internal_vip_address
# FIXME(yoctozepto): this req seems arbitrary, they need not be, just routable is fine # FIXME(yoctozepto): this req seems arbitrary, they need not be, just routable is fine
@ -178,7 +178,7 @@
state: stopped state: stopped
when: when:
- enable_aodh | bool - enable_aodh | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('aodh_api') == -1 - haproxy_stat.find('aodh_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -191,7 +191,7 @@
state: stopped state: stopped
when: when:
- enable_barbican | bool - enable_barbican | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('barbican_api') == -1 - haproxy_stat.find('barbican_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -204,7 +204,7 @@
state: stopped state: stopped
when: when:
- enable_blazar | bool - enable_blazar | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('blazar_api') == -1 - haproxy_stat.find('blazar_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -217,7 +217,7 @@
state: stopped state: stopped
when: when:
- enable_cinder | bool - enable_cinder | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('cinder_api') == -1 - haproxy_stat.find('cinder_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -230,7 +230,7 @@
state: stopped state: stopped
when: when:
- enable_cloudkitty | bool - enable_cloudkitty | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('cloudkitty_api') == -1 - haproxy_stat.find('cloudkitty_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -243,7 +243,7 @@
state: stopped state: stopped
when: when:
- enable_cyborg | bool - enable_cyborg | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('cyborg_api') == -1 - haproxy_stat.find('cyborg_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -256,7 +256,7 @@
state: stopped state: stopped
when: when:
- enable_designate | bool - enable_designate | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('designate_api') == -1 - haproxy_stat.find('designate_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -269,7 +269,7 @@
state: stopped state: stopped
when: when:
- enable_elasticsearch | bool - enable_elasticsearch | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('elasticsearch') == -1 - haproxy_stat.find('elasticsearch') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -282,7 +282,7 @@
state: stopped state: stopped
when: when:
- enable_glance | bool - enable_glance | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('glance_api') == -1 - haproxy_stat.find('glance_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -295,7 +295,7 @@
state: stopped state: stopped
when: when:
- enable_gnocchi | bool - enable_gnocchi | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('gnocchi_api') == -1 - haproxy_stat.find('gnocchi_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -309,7 +309,7 @@
when: when:
- enable_freezer | bool - enable_freezer | bool
- haproxy_stat.find('freezer_api') == -1 - haproxy_stat.find('freezer_api') == -1
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_vip_prechecks - haproxy_vip_prechecks
- name: Checking free port for Grafana server HAProxy - name: Checking free port for Grafana server HAProxy
@ -321,7 +321,7 @@
state: stopped state: stopped
when: when:
- enable_grafana | bool - enable_grafana | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('grafana_server') == -1 - haproxy_stat.find('grafana_server') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -334,7 +334,7 @@
state: stopped state: stopped
when: when:
- enable_heat | bool - enable_heat | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('heat_api') == -1 - haproxy_stat.find('heat_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -347,7 +347,7 @@
state: stopped state: stopped
when: when:
- enable_heat | bool - enable_heat | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('heat_api_cfn') == -1 - haproxy_stat.find('heat_api_cfn') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -360,7 +360,7 @@
state: stopped state: stopped
when: when:
- enable_horizon | bool - enable_horizon | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('horizon') == -1 - haproxy_stat.find('horizon') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -373,7 +373,7 @@
state: stopped state: stopped
when: when:
- enable_ironic | bool - enable_ironic | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('ironic_api') == -1 - haproxy_stat.find('ironic_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -386,7 +386,7 @@
state: stopped state: stopped
when: when:
- enable_ironic | bool - enable_ironic | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('ironic_inspector') == -1 - haproxy_stat.find('ironic_inspector') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -399,7 +399,7 @@
state: stopped state: stopped
when: when:
- enable_keystone | bool - enable_keystone | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('keystone_admin') == -1 - haproxy_stat.find('keystone_admin') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -412,7 +412,7 @@
state: stopped state: stopped
when: when:
- enable_keystone | bool - enable_keystone | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('keystone_internal') == -1 - haproxy_stat.find('keystone_internal') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -426,7 +426,7 @@
when: when:
- haproxy_enable_external_vip | bool - haproxy_enable_external_vip | bool
- enable_keystone | bool - enable_keystone | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('keystone_external') == -1 - haproxy_stat.find('keystone_external') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -439,7 +439,7 @@
state: stopped state: stopped
when: when:
- enable_kibana | bool - enable_kibana | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('kibana') == -1 - haproxy_stat.find('kibana') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -452,7 +452,7 @@
state: stopped state: stopped
when: when:
- enable_magnum | bool - enable_magnum | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('magnum_api') == -1 - haproxy_stat.find('magnum_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -465,7 +465,7 @@
state: stopped state: stopped
when: when:
- enable_manila | bool - enable_manila | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('manila_api') == -1 - haproxy_stat.find('manila_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -478,7 +478,7 @@
state: stopped state: stopped
when: when:
- enable_mariadb | bool - enable_mariadb | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('mariadb') == -1 - haproxy_stat.find('mariadb') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -491,7 +491,7 @@
state: stopped state: stopped
when: when:
- enable_masakari | bool - enable_masakari | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('masakari_api') == -1 - haproxy_stat.find('masakari_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -504,7 +504,7 @@
state: stopped state: stopped
when: when:
- enable_mistral | bool - enable_mistral | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('mistral_api') == -1 - haproxy_stat.find('mistral_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -517,7 +517,7 @@
state: stopped state: stopped
when: when:
- enable_monasca | bool - enable_monasca | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('monasca_api') == -1 - haproxy_stat.find('monasca_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -531,7 +531,7 @@
when: when:
- haproxy_enable_external_vip | bool - haproxy_enable_external_vip | bool
- enable_monasca | bool - enable_monasca | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('monasca_api_external') == -1 - haproxy_stat.find('monasca_api_external') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -544,7 +544,7 @@
state: stopped state: stopped
when: when:
- enable_monasca | bool - enable_monasca | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('monasca_log_api') == -1 - haproxy_stat.find('monasca_log_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
- monasca_log_api_port != monasca_api_port - monasca_log_api_port != monasca_api_port
@ -559,7 +559,7 @@
when: when:
- haproxy_enable_external_vip | bool - haproxy_enable_external_vip | bool
- enable_monasca | bool - enable_monasca | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('monasca_log_api_external') == -1 - haproxy_stat.find('monasca_log_api_external') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
- monasca_log_api_port != monasca_api_port - monasca_log_api_port != monasca_api_port
@ -573,7 +573,7 @@
state: stopped state: stopped
when: when:
- enable_murano | bool - enable_murano | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('murano_api') == -1 - haproxy_stat.find('murano_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -586,7 +586,7 @@
state: stopped state: stopped
when: when:
- enable_neutron | bool - enable_neutron | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('neutron_server') == -1 - haproxy_stat.find('neutron_server') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -599,7 +599,7 @@
state: stopped state: stopped
when: when:
- enable_nova | bool - enable_nova | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('nova_api') == -1 - haproxy_stat.find('nova_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -612,7 +612,7 @@
state: stopped state: stopped
when: when:
- enable_nova | bool - enable_nova | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('nova_metadata') == -1 - haproxy_stat.find('nova_metadata') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -626,7 +626,7 @@
when: when:
- enable_nova | bool - enable_nova | bool
- nova_console == 'novnc' - nova_console == 'novnc'
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('nova_novncproxy') == -1 - haproxy_stat.find('nova_novncproxy') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -641,7 +641,7 @@
- enable_nova | bool - enable_nova | bool
- haproxy_stat.find('nova_serialconsole_proxy') == -1 - haproxy_stat.find('nova_serialconsole_proxy') == -1
- enable_nova_serialconsole_proxy | bool - enable_nova_serialconsole_proxy | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_vip_prechecks - haproxy_vip_prechecks
- name: Checking free port for Nova Spice HTML5 HAProxy - name: Checking free port for Nova Spice HTML5 HAProxy
@ -654,7 +654,7 @@
when: when:
- enable_nova | bool - enable_nova | bool
- nova_console == 'spice' - nova_console == 'spice'
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('nova_spicehtml5proxy') == -1 - haproxy_stat.find('nova_spicehtml5proxy') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -667,7 +667,7 @@
state: stopped state: stopped
when: when:
- enable_nova | bool - enable_nova | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('placement_api') == -1 - haproxy_stat.find('placement_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -680,7 +680,7 @@
state: stopped state: stopped
when: when:
- enable_octavia | bool - enable_octavia | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('octavia_api') == -1 - haproxy_stat.find('octavia_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -693,7 +693,7 @@
state: stopped state: stopped
when: when:
- enable_rabbitmq | bool - enable_rabbitmq | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('rabbitmq_management') == -1 - haproxy_stat.find('rabbitmq_management') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -705,7 +705,7 @@
state: stopped state: stopped
when: when:
- enable_outward_rabbitmq | bool - enable_outward_rabbitmq | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('outward_rabbitmq_management') == -1 - haproxy_stat.find('outward_rabbitmq_management') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -718,7 +718,7 @@
state: stopped state: stopped
when: when:
- enable_sahara | bool - enable_sahara | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('sahara_api') == -1 - haproxy_stat.find('sahara_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -731,7 +731,7 @@
state: stopped state: stopped
when: when:
- enable_senlin | bool - enable_senlin | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('senlin_api') == -1 - haproxy_stat.find('senlin_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -744,7 +744,7 @@
state: stopped state: stopped
when: when:
- enable_solum | bool - enable_solum | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('solum_application_deployment') == -1 - haproxy_stat.find('solum_application_deployment') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -757,7 +757,7 @@
state: stopped state: stopped
when: when:
- enable_solum | bool - enable_solum | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('solum_image_builder') == -1 - haproxy_stat.find('solum_image_builder') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -770,7 +770,7 @@
state: stopped state: stopped
when: when:
- enable_swift | bool - enable_swift | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('swift_api') == -1 - haproxy_stat.find('swift_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -783,7 +783,7 @@
state: stopped state: stopped
when: when:
- enable_tacker | bool - enable_tacker | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('tacker_server') == -1 - haproxy_stat.find('tacker_server') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -796,7 +796,7 @@
state: stopped state: stopped
when: when:
- enable_trove | bool - enable_trove | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('trove_api') == -1 - haproxy_stat.find('trove_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -809,7 +809,7 @@
state: stopped state: stopped
when: when:
- enable_watcher | bool - enable_watcher | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('watcher_api') == -1 - haproxy_stat.find('watcher_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -822,7 +822,7 @@
state: stopped state: stopped
when: when:
- enable_zun | bool - enable_zun | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('zun_api') == -1 - haproxy_stat.find('zun_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
@ -834,6 +834,6 @@
state: stopped state: stopped
when: when:
- enable_vitrage | bool - enable_vitrage | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['loadbalancer']
- haproxy_stat.find('vitrage_api') == -1 - haproxy_stat.find('vitrage_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks

View File

@ -0,0 +1,11 @@
---
- name: Fail if group loadbalancer not exists or it is empty
fail:
msg: >-
Inventory's group loadbalancer does not exist or it is empty.
Please update inventory, as haproxy group was renamed
to loadbalancer in the Xena release.
when:
- enable_loadbalancer | bool
- groups['loadbalancer'] is not defined or
groups['loadbalancer'] | length < 1

View File

@ -1,4 +1,6 @@
--- ---
- import_tasks: inventory_checks.yml
- include_tasks: host_os_checks.yml - include_tasks: host_os_checks.yml
when: prechecks_enable_host_os_checks | bool when: prechecks_enable_host_os_checks | bool

View File

@ -51,7 +51,7 @@
[[inputs.chrony]] [[inputs.chrony]]
dns_lookup = false dns_lookup = false
{% endif %} {% endif %}
{% if inventory_hostname in groups['haproxy'] and enable_haproxy | bool %} {% if inventory_hostname in groups['loadbalancer'] and enable_haproxy | bool %}
[[inputs.haproxy]] [[inputs.haproxy]]
servers = ["{{ haproxy_proto }}://{{ haproxy_user }}:{{ haproxy_password }}@{{ api_interface_address | put_address_in_context('url') }}:{{ haproxy_stats_port }}"] servers = ["{{ haproxy_proto }}://{{ haproxy_user }}:{{ haproxy_password }}@{{ api_interface_address | put_address_in_context('url') }}:{{ haproxy_stats_port }}"]
{% endif %} {% endif %}

View File

@ -120,6 +120,8 @@
- '&enable_loadbalancer_True' - '&enable_loadbalancer_True'
serial: '{{ kolla_serial|default("0") }}' serial: '{{ kolla_serial|default("0") }}'
tags: tags:
- haproxy
- keepalived
- loadbalancer - loadbalancer
roles: roles:
- { role: loadbalancer, - { role: loadbalancer,

View File

@ -79,7 +79,7 @@ Using this way, you need to adjust the inventory file:
If you choose to use haproxy for load balancing between the If you choose to use haproxy for load balancing between the
members of the cluster, every node within this group members of the cluster, every node within this group
needs to be resolvable and reachable from all needs to be resolvable and reachable from all
the hosts within the ``[haproxy:children]`` group the hosts within the ``[loadbalancer:children]`` group
of your inventory (defaults to ``[network]``). of your inventory (defaults to ``[network]``).
In addition, configure the ``/etc/kolla/globals.yml`` file In addition, configure the ``/etc/kolla/globals.yml`` file

View File

@ -9,7 +9,7 @@ Openstack and other services. High-availability in Kolla
is implented as via Keepalived and HAProxy. Keepalived manages virtual IP is implented as via Keepalived and HAProxy. Keepalived manages virtual IP
addresses, while HAProxy load-balances traffic to service backends. addresses, while HAProxy load-balances traffic to service backends.
These two components must be installed on the same hosts These two components must be installed on the same hosts
and they are deployed to hosts in the ``haproxy`` group. and they are deployed to hosts in the ``loadbalancer`` group.
Preparation and deployment Preparation and deployment
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -129,7 +129,7 @@ grouped together and changing these around can break your deployment:
[elasticsearch:children] [elasticsearch:children]
control control
[haproxy:children] [loadbalancer:children]
network network
.. _multinode-host-and-group-variables: .. _multinode-host-and-group-variables:

View File

@ -0,0 +1,5 @@
---
upgrade:
- A new group ``loadbalancer`` is required in inventory file
prior to upgrade. The ``loadbalancer`` group is a replacement
for the ``haproxy`` group.

View File

@ -98,7 +98,7 @@ storage
monitoring monitoring
[chrony-server:children] [chrony-server:children]
haproxy loadbalancer
[chrony:children] [chrony:children]
control control
@ -157,12 +157,13 @@ compute
[loadbalancer:children] [loadbalancer:children]
network network
{% if is_previous_release and previous_release == "wallaby" %}
[keepalived:children] [keepalived:children]
loadbalancer loadbalancer
[haproxy:children] [haproxy:children]
loadbalancer loadbalancer
{% endif %}
[mariadb:children] [mariadb:children]
control control
@ -768,7 +769,7 @@ storage
mariadb mariadb
[prometheus-haproxy-exporter:children] [prometheus-haproxy-exporter:children]
haproxy loadbalancer
[prometheus-memcached-exporter:children] [prometheus-memcached-exporter:children]
memcached memcached