tripleo-common/tripleo_common
Harald Jensås 983377bae2 Disable neutron inventory src if no ctlplane ports
ctlplane ports created by THT Heat Server
resources, or nova less without --network-ports/--network-config
enabled, does not have the 'tripleo_stack_name' tag. We
shouldn't use neutron as a source if no ctlplane ports are
tagged with the 'tripleo_stack_name'.

This patch add's a check for to ensure atleast 1 port is in the
ctlplane network. If no such port is found _get_neutron_data
returns None, and the inventory generation will continue to use
the heat stack as the source.

Also filter "tripleo_service_vip" and "tripleo_vip_net" ports
when getting the ports so that the test doesn't match on a
control plane virtual IP.

Closes-Bug: #1928926
Change-Id: Ida1cc17ae6b9adf4275e0616706158bfc3b93204
(cherry picked from commit 5d6649fc9d)
2021-05-28 09:57:13 +02:00
..
actions Remove all mistral actions from tripleo-common 2021-03-01 21:27:08 +05:30
filters Bring back custom nova filters for undercloud 2021-02-22 11:40:46 +05:30
image Drop SkopeoImageUploader 2021-05-06 17:28:44 -04:00
releasenotes/notes Wire in parameters.convert_docker_params 2019-04-10 13:25:39 -04:00
templates Fix fact definition for deployments 2021-02-22 10:59:45 -07:00
tests Remove Keepalived service 2021-05-07 07:16:19 -04:00
utils Add Redfish properties when enrolling with 'idrac' 2021-05-06 17:28:41 -04:00
__init__.py Add ReNo support 2017-01-12 12:06:02 +00:00
arch.py Default to host CPU architecture if none is supplied 2017-08-05 09:11:20 +10:00
constants.py Merge "Extend ansible inventory from network config file" 2021-03-31 12:03:43 +00:00
exception.py Inventory from neutron resources 2021-02-03 10:58:48 +01:00
i18n.py Update the documentation link for doc migration 2017-07-25 15:00:27 +08:00
inventories.py Re-factor inventory.py use setdefault pervasively 2021-01-19 09:17:01 +01:00
inventory.py Disable neutron inventory src if no ctlplane ports 2021-05-28 09:57:13 +02:00
update.py Cleanup utils 2/2 2021-03-08 19:10:59 +05:30