Bug 57123 - Не хватает зависимости на python3-module-packaging
Summary: Не хватает зависимости на python3-module-packaging
Status: CLOSED FIXED
Alias: None
Product: Branch p10
Classification: Unclassified
Component: ansible-core (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-04 11:59 MSK by Artem Varaksa
Modified: 2025-12-10 09:40 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2025-12-04 11:59:42 MSK
1. # apt-get install -y ansible-core
2. # ansible 127.0.0.1 -m ansible.builtin.debug -a "msg={{ '1.0' is version('1.0') }}" -vvv

> ansible [core 2.15.9]
> ...
>   python version = 3.9.20 (main, Sep 19 2024, 14:47:53) [GCC 10.3.1 20210703 (ALT Sisyphus 10.3.1-alt2)] (/usr/bin/python3)
>   jinja version = 3.0.1
>   libyaml = True
> ...
> [WARNING]: packaging Python module unavailable; unable to validate collection Ansible version requirements
> ...
> The full traceback is:
> Traceback (most recent call last):
>   File "/usr/lib/python3/site-packages/ansible/executor/task_executor.py", line 529, in _execute
>     self._task.post_validate(templar=templar)
>   File "/usr/lib/python3/site-packages/ansible/playbook/task.py", line 290, in post_validate
>     super(Task, self).post_validate(templar)
>   File "/usr/lib/python3/site-packages/ansible/playbook/base.py", line 543, in post_validate
>     value = method(attribute, getattr(self, name), templar)
>   File "/usr/lib/python3/site-packages/ansible/playbook/task.py", line 298, in _post_validate_args
>     args = templar.template(value)
>   File "/usr/lib/python3/site-packages/ansible/template/__init__.py", line 797, in template
>     d[k] = self.template(
>   File "/usr/lib/python3/site-packages/ansible/template/__init__.py", line 771, in template
>     result = self.do_template(
>   File "/usr/lib/python3/site-packages/ansible/template/__init__.py", line 1015, in do_template
>     res = myenv.concat(rf)
>   File "/usr/lib/python3/site-packages/ansible/template/native_helpers.py", line 43, in ansible_eval_concat
>     head = list(islice(nodes, 2))
>   File "<template>", line 17, in root
>   File "/usr/lib/python3/site-packages/ansible/plugins/test/core.py", line 174, in version_compare
>     'pep440': PEP440Version,
> NameError: name 'PEP440Version' is not defined
> 127.0.0.1 | FAILED! => {
>     "changed": false
> }

3. # apt-get install -y python3-module-packaging
4. # ansible 127.0.0.1 -m ansible.builtin.debug -a "msg={{ '1.0' is version('1.0') }}" -vvv

> ...
> 127.0.0.1 | SUCCESS => {
>     "msg": true
> }


Воспроизводится в:

[p10] ansible-core-2.15.9-alt0.p10.1


Не воспроизводится в:

[p11] ansible-core-2.19.3-alt1.noarch
[sisyphus] ansible-core-2.20.0-alt1.noarch
Comment 1 Repository Robot 2025-12-10 09:40:44 MSK
ansible-2.9.27-alt3.p10.2.1 -> p10:

Thu Dec 04 2025 Andrey Cherepanov <cas@altlinux> 2.9.27-alt3.p10.2.1
- Required python3-module-packaging for PEP440Version usage (ALT #57123).