openstack-ansible-os_nova/vars
Dmitriy Rabotyagov 77c06d4520 Fix logic of discovering hosts by service
For quite some time, we relate usage of --by-service flag for
nova-manage cell_v2 discover_hosts command to the used nova_virt_type.
However, we run db_post_setup tasks only once and delegating to the
conductor host. With latest changes to the logic, when this task in
included from the playbook level it makes even less sense, since
definition of nova_virt_type for conductor is weird and wrong.

Instead, we attempt to detect if ironic is in use by checking hostvars
of all compute nodes for that. It will include host_vars, group_vars,
all sort of extra variables, etc.

Thus, ironic hosts should be better discovered now with nova-manage
command.

Related-Bug: #2034583
Change-Id: I3deea859a4017ff96919290ba50cb375c0f960ea
(cherry picked from commit 4aa65eb606)
2023-10-20 09:20:34 +00:00
..
debian.yml Ensure ipxe-qemu is always installed 2023-05-04 10:08:12 +01:00
distro_install.yml vars: package cleanup 2019-10-01 15:46:59 +00:00
main.yml Fix logic of discovering hosts by service 2023-10-20 09:20:34 +00:00
redhat.yml Install libvirt-deamon for RHEL systems 2023-05-26 07:18:02 +00:00
source_install.yml vars: package cleanup 2019-10-01 15:46:59 +00:00