8000 Core v2.19b changes / No filter named 'ipaddr' found (or ipv4 or others moved from netcommon) · Issue #404 · ansible-collections/ansible.utils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Core v2.19b changes / No filter named 'ipaddr' found (or ipv4 or others moved from netcommon) #404
Open
@Daryes

Description

@Daryes

A repost of the issue opened in ansible repo

This happen with ansible-core 2.19b and the latest ansible.utils and ansible.netcommon (versions at the bottom)
It is possible the error not due to ansible-core, but for combining the latest versions of both ansible.utils and ansible.netcommon collections.


Nothing new, this error keep appearing from time to time (ex: #77244, #77221, #77192 , ... or this PR )
This time is with core 2.19b

When using those filters :

  • ipaddr
  • ipv4
  • ipv6
  • and probably all the other which were moved from netcommon

The following error will be raised :

Error rendering template: No filter named 'ipaddr' found.

and

Error rendering template: No filter named 'ipv4' found.

The filters moved from netcommon must now be used with the full designation ansible.utils. as a prefix, otherwise the execution will halt on the task / template.
It is not possible to use the short naming with them.

Can all the moved filters from netcommon be checked and fixed definitely, allowing the short naming ?

For reference, core 2.19b version (Warning, dedicated docker image, no venv)

$ ansible --version
ansible [core 2.19.0b5]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.11/dist-packages/ansible
  ansible collection location = /server/ansible/ansible/collections:/home/ansible/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] (/usr/bin/python3)
  jinja version = 3.1.6
  pyyaml version = 6.0.2 (with libyaml v0.2.5)

$ ansible-galaxy collection list
# /home/ansible/.ansible/collections/ansible_collections
Collection           Version
-------------------- --------
ansible.netcommon    8.0.0
ansible.posix        2.0.0
ansible.utils        6.0.0
ansible.windows      3.1.0
community.crypto     2.26.2
community.general    10.7.0
community.mysql      3.14.0
community.postgresql 4.1.0

# /usr/local/lib/python3.11/dist-packages/ansible/_internal/ansible_collections
Collection           Version
-------------------- --------
ansible._protomatter 2.19.0b5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0