Browse Source

Don't rely on crudini for octavia config

Relying on crudini being available on the overcloud nodes has turned out
to be relatively fragile. This changes octavia playbooks to use awk
instead of crudini to lookup a config item on the overcloud node.

Change-Id: I78d6d753df46c3964b9a4867eb93767230c4dae6
Closes-Bug: #1814320
(cherry picked from commit a2ad746d9d)
changes/78/689878/1
Brent Eagles 1 year ago
parent
commit
9f53c3a962
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      playbooks/roles/octavia-controller-post-config/tasks/main.yml

+ 2
- 2
playbooks/roles/octavia-controller-post-config/tasks/main.yml View File

@@ -11,9 +11,9 @@
become: true
become_user: root
shell: |
crudini --get "{{octavia_confd_prefix}}/etc/octavia/conf.d/octavia-worker/worker-post-deploy.conf" health_manager controller_ip_port_list
awk -F '=' -e '/^controller_ip_port_list/ { print $2; }' "{{octavia_confd_prefix}}/etc/octavia/conf.d/octavia-worker/worker-post-deploy.conf"
register: config_contents
failed_when: config_contents.rc != 0 and 'Parameter not found' not in config_contents.stderr
failed_when: config_contents.rc != 0
changed_when: false
ignore_errors: true
- name: retrieve current ip list

Loading…
Cancel
Save