You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you execute the pacman packager with latest but reference a package with a dependency you can wind up with something like the following output:
{"changed": false, "msg": "package(s) already installed. But could not ensure 'latest' state for ['libvirt', 'libvirt-storage-rbd'] package(s) as remote version could not be fetched."}
$ ansible-galaxy collection list community.general
# /usr/lib/python3.10/site-packages/ansible_collectionsCollection Version----------------- -------community.general 4.3.0
Configuration
$ ansible-config dump --only-changed
OS / Environment
Arch Linux
Steps to Reproduce
Have an older version of libvirt and libvirt-storage-rbd installed on the host:
---
- hosts: cephtasks:
- name: Update list of known packagescommunity.general.pacman:
update_cache: yes
- name: Remove conflicting packages#ansible.builtin.package:community.general.pacman:
name:
- qemustate: absent
- name: Ensure ceph related packages are installed#ansible.builtin.package:community.general.pacman:
name:
- ceph
- qemu-headless
- qemu-block-rbd
- libvirt
- libvirt-storage-rbdstate: latest
Expected Results
That a libvirt and libvirt-storage-rbd upgrade be performed/detected if there is a newer version.
Actual Results
ok: [skald-2] => {"changed": false, "msg": "package(s) already installed. But could not ensure 'latest' state for ['libvirt', 'libvirt-storage-rbd'] package(s) as remote version could not be fetched."}
Summary
If you execute the
pacman
packager withlatest
but reference a package with a dependency you can wind up with something like the following output:Issue Type
Bug Report
Component Name
pacman
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
Arch Linux
Steps to Reproduce
Have an older version of
libvirt
andlibvirt-storage-rbd
installed on the host:Expected Results
That a
libvirt
andlibvirt-storage-rbd
upgrade be performed/detected if there is a newer version.Actual Results
ok: [skald-2] => {"changed": false, "msg": "package(s) already installed. But could not ensure 'latest' state for ['libvirt', 'libvirt-storage-rbd'] package(s) as remote version could not be fetched."}
This appears to be caused by the package by package check done here:
https://github.com/ansible-collections/community.general/blob/main/plugins/modules/packaging/os/pacman.py#L354-L356
Queried individually, packages with dependencies can result in error:
However, queried together, they are not a problem:
Code of Conduct
The text was updated successfully, but these errors were encountered: