kolla-ansible/kolla_ansible
Pierre Riteau 1c7d17d1ee Fix detection of editable installation
When installing kolla-ansible with `pip install ./kolla-ansible`, pip
always creates a direct_url.json file, even when not using an editable
installation.

We see this behaviour with Python 3.12, while direct_url.json is only
created for editable installations on Python 3.9, which was used when
this code was initially developed for Kayobe.

When using a regular (non-editable) installation, this would make
kolla-ansible invoke site.yml from the source directory instead of the
virtualenv installation, causing a failure to load Ansible collections:

    Invalid plugin FQCN (ansible.utils.ipaddr): unable to locate collection ansible.utils

Fix by returning the source URL only if dir_info.editable is True.

Change-Id: Icdc2cedaa6a6e3a6b4351b1f4369e2e8b3a2dc97
2024-10-29 13:54:23 +01:00
..
cli Rewrite kolla-ansible CLI to python 2024-10-28 08:48:23 +00:00
cmd Rewrite kolla-ansible CLI to python 2024-10-28 08:48:23 +00:00
tests Fix proxysql get mariadb_backup_database_password 2023-11-16 08:35:06 +00:00
__init__.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00
ansible.py Fix typo in kolla-ansible metavar 2024-10-28 17:20:27 +01:00
database_shards.py fix flake8 error in database_shards.py 2024-08-05 14:39:32 +00:00
exception.py Add custom filters for checking services 2019-09-16 12:48:52 +00:00
filters.py adds firewalld configuration based on enabled services 2022-07-27 12:28:40 +01:00
fluentd_filters.py Performance: use a single config file for fluentd 2020-07-28 12:14:48 +01:00
hashi_vault.py Fix Hashi login method for approles 2022-09-02 16:42:15 +01:00
helpers.py Fix kolla_address in IPv6 fully-routed topo case 2020-05-19 19:49:14 +02:00
kolla_address.py kolla_address: check correct error return value 2023-10-03 08:10:24 +00:00
kolla_url.py kolla_url: port is a string 2024-05-07 10:06:50 +00:00
nova_filters.py Update cell0 database connection 2024-04-08 13:19:08 +02:00
put_address_in_context.py re-add rabbitmq config for clustering interface 2022-03-24 17:52:17 +01:00
utils.py Fix detection of editable installation 2024-10-29 13:54:23 +01:00
version.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00