<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openstack/kolla-ansible.git/kolla_ansible/filters.py, branch stable/2026.1</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.platform-os.org/openstack/kolla-ansible.git/atom?h=stable%2F2026.1</id>
<link rel='self' href='https://git.platform-os.org/openstack/kolla-ansible.git/atom?h=stable%2F2026.1'/>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla-ansible.git/'/>
<updated>2026-03-03T12:10:33+00:00</updated>
<entry>
<title>Switch from passlib to internal bcrypt filter</title>
<updated>2026-03-03T12:10:33+00:00</updated>
<author>
<name>Michal Nasiadka</name>
<email>mnasiadka@gmail.com</email>
</author>
<published>2025-12-05T07:08:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla-ansible.git/commit/?id=ad59c9e8c22cb4ec631e060303922bfbe6def4af'/>
<id>urn:sha1:ad59c9e8c22cb4ec631e060303922bfbe6def4af</id>
<content type='text'>
Change-Id: I1c0312aa7bdfb78fedef6c98463f25e6460f4587
Co-Authored-By: Pierre Riteau &lt;pierre@stackhpc.com&gt;
Signed-off-by: Michal Nasiadka &lt;mnasiadka@gmail.com&gt;
</content>
</entry>
<entry>
<title>adds firewalld configuration based on enabled services</title>
<updated>2022-07-27T11:28:40+00:00</updated>
<author>
<name>k-s-dean</name>
<email>kyle@stackhpc.com</email>
</author>
<published>2022-06-28T11:18:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla-ansible.git/commit/?id=8553e52acd79dc8457747def955a749eabf0cb96'/>
<id>urn:sha1:8553e52acd79dc8457747def955a749eabf0cb96</id>
<content type='text'>
This change introduces automated configuration of firewalld and adds
a new filter for extracting services from the project_services dict.
the filter selects any enabled services and their haproxy element
and returns them so they can be iterated over.
This commit also enables automated configuration of firewalld from enabled
openstack services and adds them to the defined zone and reloads the
system firewall.

Change-Id: Iea3680142711873984efff2b701347b6a56dd355
</content>
</entry>
<entry>
<title>Use jinja2.pass_context instead of contextfilter</title>
<updated>2022-03-24T16:29:26+00:00</updated>
<author>
<name>Mark Goddard</name>
<email>mark@stackhpc.com</email>
</author>
<published>2022-03-24T16:25:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla-ansible.git/commit/?id=fc2292b230fb2be03acb2273f097c566f59ba8fc'/>
<id>urn:sha1:fc2292b230fb2be03acb2273f097c566f59ba8fc</id>
<content type='text'>
The contextfilter decorator was deprecated in jinja2 3.0.0, and has been
dropped in 3.1.0. This results in the following warning, and failed
attempts to use filters:

    [WARNING]: Skipping plugin (filters.py) as it seems to be invalid:
    module 'jinja2' has no attribute 'contextfilter'

This change switches to use the pass_context decorator. The minimum
version of Jinja2 is raised to 3 to ensure pass_context is present.

Change-Id: I649dd6211d3ae72b9539bc44652ef8cf5d579777
</content>
</entry>
<entry>
<title>Fix kolla_address in IPv6 fully-routed topo case</title>
<updated>2020-05-19T17:49:14+00:00</updated>
<author>
<name>Radosław Piliszek</name>
<email>radoslaw.piliszek@gmail.com</email>
</author>
<published>2020-05-19T17:49:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla-ansible.git/commit/?id=0674236eedd76ae06f168db0da2b249d3ba756b2'/>
<id>urn:sha1:0674236eedd76ae06f168db0da2b249d3ba756b2</id>
<content type='text'>
This includes some lightweight refactoring to avoid code
duplication.

This patch is made to be backportable to Train.
We now include Ansible in testing since Ussuri so the comments
about the bool filter are wrong.

Change-Id: Ia2e0f7f24988763bacfeafefb7977021f5949f4e
Closes-bug: #1848941
</content>
</entry>
<entry>
<title>Fix service_mapped_to_host filter for common services</title>
<updated>2020-04-14T13:15:54+00:00</updated>
<author>
<name>Mark Goddard</name>
<email>mark@stackhpc.com</email>
</author>
<published>2020-04-14T13:11:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla-ansible.git/commit/?id=8cc58e3669eec69f55269c54fc1de2a0b0c57c02'/>
<id>urn:sha1:8cc58e3669eec69f55269c54fc1de2a0b0c57c02</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Fix service_mapped_to_host filter</title>
<updated>2020-03-20T17:03:14+00:00</updated>
<author>
<name>Mark Goddard</name>
<email>mark@stackhpc.com</email>
</author>
<published>2020-03-20T17:03:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla-ansible.git/commit/?id=35966c9186d868948a037bae7c58ac6e6279a4f0'/>
<id>urn:sha1:35966c9186d868948a037bae7c58ac6e6279a4f0</id>
<content type='text'>
The service_mapped_to_host filter is used to check if a service is
mapped to a host, based on the group for the service or its
host_in_groups attribute if one exists. We check if the service's group
is in the 'groups' list. However, to get the list of groups to which a
host belongs, we should use the 'group_names' list.

This filter is currently only used in neutron IPv6 module loading, so
the effects are minimal.

Change-Id: I37409ca8d273b0426df0a648db222dc5432e738a
Closes-Bug: #1868285
</content>
</entry>
<entry>
<title>Add custom filters for checking services</title>
<updated>2019-09-16T12:48:52+00:00</updated>
<author>
<name>Mark Goddard</name>
<email>mark@stackhpc.com</email>
</author>
<published>2019-01-19T08:17:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.platform-os.org/openstack/kolla-ansible.git/commit/?id=af2e7fd73e2fa643dbe1a0c8cc31d3aa4165720d'/>
<id>urn:sha1:af2e7fd73e2fa643dbe1a0c8cc31d3aa4165720d</id>
<content type='text'>
These filters can be used to capture a lot of the logic that we
currently have in 'when' statements, about which services are enabled
for a particular host.

In order to use these filters, it is necessary to install the
kolla_ansible python module, and not just the dependencies listed in
requirements.txt. The CI test and quickstart install from source
documentation has been updated accordingly.

Ansible is not currently in OpenStack global requirements, so for unit
tests we avoid a direct dependency on Ansible and provide fakes where
necessary.

Change-Id: Ib91cac3c28e2b5a834c9746b1d2236a309529556
</content>
</entry>
</feed>
