Ensure blacklisted nodes are not included in server_names
'ServerIdData' map actually returns 'None' ids for blacklisted
nodes for a role, as 'nova_server_resource' output is
evaluated with condition 'server_not_blacklisted'. This
results in get_server_names() returning these blacklisted
nodes with something like 'None: compute-1' and results
in issues when we write ansible_host_vars. As we don't intend to
write ansible_host_vars for blacklisted nodes, we can ignore
these from 'server_names'.
Closes-bug: #1856661
Change-Id: Iafecc885abac5583c07bc046bc4d541f5e1e1c00
(cherry picked from commit d407c96d17020a15395ba4f6537e03e596caedaa)
Reviewed: https:/ /review. opendev. org/700155 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=13b77d3670c cd69530850fe72c 6dba33e663cc64
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 13b77d3670ccd69 530850fe72c6dba 33e663cc64
Author: Rabi Mishra <email address hidden>
Date: Tue Dec 17 12:32:54 2019 +0530
Ensure blacklisted nodes are not included in server_names
'ServerIdData' map actually returns 'None' ids for blacklisted resource' output is not_blacklisted '. This
nodes for a role, as 'nova_server_
evaluated with condition 'server_
results in get_server_names() returning these blacklisted
nodes with something like 'None: compute-1' and results
in issues when we write ansible_host_vars. As we don't intend to
write ansible_host_vars for blacklisted nodes, we can ignore
these from 'server_names'.
Closes-bug: #1856661 83c07bc046bc4d5 41f5e1e1c00 5395ba4f6537e03 e596caedaa)
Change-Id: Iafecc885abac55
(cherry picked from commit d407c96d17020a1