kolla-ansible/kolla_ansible
Mark Goddard 8cc58e3669 Fix service_mapped_to_host filter for common services
In Ibecac60d1417269bbe25a280996ca9de6e6d018f, the services in the common
role were marked as being mapped to the 'all' group, since the
'service_mapped_to_host' filter expects every service definition to have
either a 'group' or 'host_in_groups' field. While this allows the filter
to pass the common services without error, it will not actually show
them as being mapped to any hosts. This is because the filter uses the
'group_names' variable, which contains all of the groups that a host
belongs to, except the default 'all' group.

This change fixes the issue by returning True from
service_mapped_to_host when the service's group is 'all'.

Change-Id: I39c8416f5d30a535c1743f9c43434b7d2a382196
Related-Bug: #1868596
2020-04-14 14:15:54 +01:00
..
cmd Merge "Remove kolla-ceph" 2020-02-13 10:09:24 +00:00
tests Update hacking for Python3 2020-04-04 17:00:17 +02:00
__init__.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00
exception.py Add custom filters for checking services 2019-09-16 12:48:52 +00:00
filters.py Fix service_mapped_to_host filter for common services 2020-04-14 14:15:54 +01:00
kolla_address.py Implement IPv6 support in the control plane 2019-10-16 10:24:35 +02:00
nova_filters.py Add unit tests for Nova Cells filters 2019-10-18 13:13:32 +00:00
put_address_in_context.py Implement IPv6 support in the control plane 2019-10-16 10:24:35 +02:00
version.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00