openstack-ansible-os_nova/tasks
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
..
consoles Remove mention of haproxy-endpoints role 2022-06-14 19:41:53 +02:00
drivers Remove calico driver reference 2023-04-04 13:27:03 +02:00
main.yml Apply always tag to nova_virt_detect.yml 2023-07-07 10:13:54 +00:00
nova_compute_wait.yml Delegate compute wait tasks to service_setup_host 2023-04-24 17:51:06 +00:00
nova_compute.yml Use ssh_keypairs role to generate cold migration ssh keys 2022-04-11 15:29:15 +00:00
nova_db_post_setup.yml Fix logic of discovering hosts by service 2023-10-20 09:20:34 +00:00
nova_db_setup.yml Move online_data_migrations to post-setup 2023-04-12 18:21:52 +02:00
nova_install.yml Install openvswitch repo for RDO scenario 2023-02-10 13:25:44 +00:00
nova_mdev_detect.yml Rename nova_enabled_vgpu_types 2021-11-03 13:49:25 +02:00
nova_post_install.yml Support configuration of resource providers with config files 2023-01-16 15:16:29 +00:00
nova_pre_install.yml Support configuration of resource providers with config files 2023-01-16 15:16:29 +00:00
nova_virt_detect.yml Use ansible_facts[] instead of fact variables 2021-02-25 16:58:42 +00:00