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)
This commit is contained in:
Brent Eagles 2019-02-15 09:32:58 -03:30 committed by Carlos Goncalves
parent f2e66d0675
commit 9f53c3a962
1 changed files with 2 additions and 2 deletions

View File

@ -11,9 +11,9 @@
become: true become: true
become_user: root become_user: root
shell: | 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 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 changed_when: false
ignore_errors: true ignore_errors: true
- name: retrieve current ip list - name: retrieve current ip list