2017-08-29 13:04:30 |
Soeren Becker |
bug |
|
|
added bug |
2017-08-29 13:04:57 |
Soeren Becker |
description |
When using bootstrap-servers (ansible/kolla-host.yml playbook) with a --limit flag
the run fails.
This is due to the fact that only the facts of the subset of hosts
are gathered but the "Generate /etc/hosts for all of the nodes" task
in "ansible/roles/baremetal/tasks/pre-install.yml" is using the
ansible_<IFACE>.ipv4.address variable of all hosts.
The proposed fix is to add the following to ansible/kolla-host.yml:
- name: Gather facts for all hosts
hosts: all
serial: '{{ serial|default("0") }}'
gather_facts: false
tasks:
- setup:
tags: always
- name: Gather facts for all hosts (if using --limit)
hosts: all
serial: '{{ serial|default("0") }}'
gather_facts: false
tasks:
- setup:
delegate_facts: True
delegate_to: "{{ item }}"
with_items: "{{ groups['all'] }}"
when:
- (ansible_play_batch | length) != (groups['all'] | length) |
When using bootstrap-servers (ansible/kolla-host.yml playbook) with a
--limit flag the run fails.
This is due to the fact that only the facts of the subset of hosts
are gathered but the "Generate /etc/hosts for all of the nodes" task
in "ansible/roles/baremetal/tasks/pre-install.yml" is using the
ansible_<IFACE>.ipv4.address variable of all hosts.
The proposed fix is to add the following to ansible/kolla-host.yml:
- name: Gather facts for all hosts
hosts: all
serial: '{{ serial|default("0") }}'
gather_facts: false
tasks:
- setup:
tags: always
- name: Gather facts for all hosts (if using --limit)
hosts: all
serial: '{{ serial|default("0") }}'
gather_facts: false
tasks:
- setup:
delegate_facts: True
delegate_to: "{{ item }}"
with_items: "{{ groups['all'] }}"
when:
- (ansible_play_batch | length) != (groups['all'] | length) |
|
2017-08-29 13:12:43 |
Eduardo Gonzalez |
nominated for series |
|
kolla-ansible/ocata |
|
2017-08-29 13:12:43 |
Eduardo Gonzalez |
bug task added |
|
kolla-ansible/ocata |
|
2017-08-29 13:12:43 |
Eduardo Gonzalez |
nominated for series |
|
kolla-ansible/pike |
|
2017-08-29 13:12:43 |
Eduardo Gonzalez |
bug task added |
|
kolla-ansible/pike |
|
2017-08-29 13:13:06 |
Eduardo Gonzalez |
kolla-ansible/ocata: status |
New |
Triaged |
|
2017-08-29 13:13:08 |
Eduardo Gonzalez |
kolla-ansible/pike: status |
New |
Triaged |
|
2017-08-29 13:13:26 |
Eduardo Gonzalez |
kolla-ansible/pike: milestone |
|
pike-rc1 |
|
2017-08-29 13:13:27 |
Eduardo Gonzalez |
kolla-ansible/ocata: milestone |
|
4.0.3 |
|
2017-08-29 13:13:34 |
Eduardo Gonzalez |
kolla-ansible/pike: importance |
Undecided |
Medium |
|
2017-08-29 13:13:36 |
Eduardo Gonzalez |
kolla-ansible/ocata: importance |
Undecided |
Medium |
|
2017-08-31 13:45:31 |
OpenStack Infra |
kolla-ansible: status |
Triaged |
Fix Released |
|
2017-12-18 03:31:13 |
Jeffrey Zhang |
kolla-ansible/ocata: milestone |
4.0.3 |
4.0.4 |
|