Octavia config drop fails on multiple hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
High
|
German Eichberger |
Bug Description
When using multiple octavia containers, it looks like certain tasks were limited to the first host in the inventory. This is causing failures on the 'Drop octavia Config' task in the octavia_
root@infra1:
- include: octavia_
when:
- inventory_hostname == groups[
- octavia_
root@infra1:
- include: octavia_
when:
- inventory_hostname == groups[
- octavia_
root@infra1:
- name: Drop octavia Config(s)
config_template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ octavia_
group: "{{ octavia_
mode: "0640"
config_
config_type: "{{ item.config_type }}"
with_items:
- src: "octavia.conf.j2"
dest: "/etc/octavia/
config_
config_type: "ini"
# - src: "api-paste.ini.j2"
# dest: "/etc/octavia/
# config_overrides: "{{ octavia_
# config_type: "ini"
# - src: "policy.json.j2"
# dest: "/etc/octavia/
# config_overrides: "{{ octavia_
# config_type: "json"
notify:
- Restart octavia services
root@infra1:
lb_network_name = {{ octavia_
amp_flavor_id = {{ octavia_
amp_boot_
# Playbook output example on failure
TASK [os_octavia : Drop octavia Config(s)] *******
Wednesday 14 March 2018 16:53:17 -0500 (0:00:00.053) 0:01:33.771 *******
ok: [infra1_
fatal: [infra2_
fatal: [infra3_
# Workaround used for a quick fix
root@infra1:
lb_network_name = {{ hostvars[
amp_flavor_id = {{ hostvars[
amp_boot_
description: | updated |
Changed in openstack-ansible: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in openstack-ansible: | |
assignee: | nobody → German Eichberger (german-eichberger) |
status: | Confirmed → In Progress |
https:/ /review. openstack. org/#/c/ 553866/