Move health_manager cfg section to octavia_worker
The [health_manager]/controller_ip_port_list parameter should be set on the octavia-worker service, not the octavia-health-manager. The config is used by the octavia-worker to render the octavia-agent configuration file. The octavia-agent will then send heartbeats to octavia-health-manager instances. Co-Authored-By: Brent Eagles <beagles@redhat.com> Change-Id: I27de3a2eec82a7bd99b72744023f29af5ea323c0
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
become: true
|
||||
become_user: root
|
||||
shell: |
|
||||
crudini --get "{{octavia_confd_prefix}}/etc/octavia/conf.d/octavia-health-manager/manager-post-deploy.conf" health_manager controller_ip_port_list
|
||||
crudini --get "{{octavia_confd_prefix}}/etc/octavia/conf.d/octavia-worker/worker-post-deploy.conf" health_manager controller_ip_port_list
|
||||
register: config_contents
|
||||
failed_when: config_contents.rc != 0 and 'Parameter not found' not in config_contents.stderr
|
||||
changed_when: false
|
||||
@@ -27,14 +27,14 @@
|
||||
octavia_config_updated: true
|
||||
when: current_ip_list != o_hm_ip_list
|
||||
|
||||
- name: update octavia health manager config file
|
||||
- name: update octavia worker config file
|
||||
become: true
|
||||
become_user: root
|
||||
ini_file:
|
||||
section: "health_manager"
|
||||
option: "controller_ip_port_list"
|
||||
value: "{{ o_hm_ip_list }}"
|
||||
path: "{{octavia_confd_prefix}}/etc/octavia/conf.d/octavia-health-manager/manager-post-deploy.conf"
|
||||
path: "{{octavia_confd_prefix}}/etc/octavia/conf.d/octavia-worker/worker-post-deploy.conf"
|
||||
when: octavia_config_updated
|
||||
|
||||
- name: restart octavia containers
|
||||
|
Reference in New Issue
Block a user