delegate_to on deploying host uses dns?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Logan V |
Bug Description
In /opt/openstack-
- name: Set haproxy service state
...
delegate_to: "{{ delegate_host }}"
with_items: "{{ groups['haproxy'] }}"
loop_control:
loop_var: delegate_host
For some reason, this does a dns lookup for the 'delegate_host' (instead of using the inventory?). Which (because of my sheer dumb luck) resolves to a different IP than what the deploying host has access to.
e.g. for clarification;
'deploy host' resides on 172.16.1.0/24 (maas) and 172.16.2.0/24 (mgmt)
'delegate_host' resides on 172.16.
And my maas-dns decides to return '172.16.3.123' as the ip address for 'delegate_host'.
Now, all the hosts deployed to get a big fat /etc/hosts file. Perhaps the deploying host should get one aswell?
Hi
Can you please let us know what release are you running?
Thanks,
Mohammed