python-tripleoclient/tripleoclient/tests
Miguel Garcia 4d8fe985e0 parse_ansible_inventory: use ansible_runner instead of importing Ansible
All our interactions with Ansible are brokered by the ansible_runner
module, except for this one function which imports the Ansible module
proper. This leads for breakage when using the latest Ansible builds
from EL9, which are on python3.11 instead of 3.9.

By refactoring parse_ansible_inventory to use ansible_runner's
get_inventory we avoid that breakage, but we also lose out on the
pattern matching as that isn't supported. This function is called in two
places:

ceph_hosts_in_inventory: it didn't do any pattern matching at all, so it
isn't impacted by the change.

overcloud admin authorize: we can now offload the pattern matching to
Ansible itself via the limit_hosts parameter we pass to the playbook run
command, preserving the original functionality.

Closes-Bug: #2007659
Change-Id: I08330ced3b31d0ff48a881501cae8bd726e36432
2023-02-27 09:52:19 +01:00
..
config Drop minion 2021-10-01 14:03:39 +00:00
fixture_data Remove cyclic import between export and utils 2021-07-14 12:12:50 +00:00
v1 parse_ansible_inventory: use ansible_runner instead of importing Ansible 2023-02-27 09:52:19 +01:00
v2 Rotate ansible.log during ceph deploy 2023-01-04 10:13:18 +00:00
workflows get_overcloud_hosts() should not return a list with empty strings 2022-09-23 09:39:41 -04:00
__init__.py Rename rdomanager_oscplugin to tripleoclient 2015-09-08 10:22:22 -04:00
base.py Save DefaultPasswords values for undercloud deploy 2017-04-26 20:38:00 +01:00
fakes.py Stop mocking workflow client 2022-07-22 02:29:10 +09:00
test_export.py Also export OVN DBs IPs for multi-stack inputs 2022-12-06 16:12:21 +01:00
test_heat_launcher.py Don't try stack delete with overcloud delete 2022-10-13 10:47:06 +05:30
test_overcloud_credentials.py Update overcloud credentials to use ephemeral Heat 2022-04-18 15:50:51 -04:00
test_plugin.py Use unittest.mock instead of third party mock 2021-10-12 14:29:21 -06:00
test_utils.py Merge "Make ~/.tripleo/history owned by the correct user" 2022-12-15 14:48:19 +00:00