We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
It seems that some recent updates to opkg command broke update_cache.
opkg
update_cache
When I set update_cache: true ansible returns an error. Switch to update_cache: false fixes the issue.
update_cache: true
update_cache: false
Installing community.general:==6.2.0 fixed the issue.
community.general:==6.2.0
Bug Report
community.general.opkg
ansible --version ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/garar/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible ansible collection location = /home/garar/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] (/usr/bin/python3) jinja version = 3.0.3 libyaml = True
$ ansible-galaxy collection list community.general # /usr/lib/python3/dist-packages/ansible_collections Collection Version ----------------- ------- community.general 6.3.0
$ ansible-config dump --only-changed
Ubuntu 22.04 and OpenWrt 21.02.3
--- - name: Base tasks for openwrt hosts: openwrt tasks: - name: Install vim opkg: name: - vim-fuller state: present update_cache: true
Ansible should update opkg cache and install vim-fullter.
Log too long, please see here: https://gist.github.com/garar/9f71392a682f8f16f2645c0dbee091cc
The text was updated successfully, but these errors were encountered:
Files identified in the description:
plugins/modules/opkg.py
If these files are incorrect, please update the component name section of the description or use the !component bot command.
component name
!component
click here for bot help
Sorry, something went wrong.
cc @skinp click here for bot help
CC @russoz @joergho maybe this is related to #5718?
@russoz I think in opkg.py:161 and opkg.py:179 it should be
rc, dummy, dummy = self.runner("update_cache").run()
instead of
dummy, rc, dummy = self.runner("update_cache").run()
@joergho you are right on spot! Thanks! I have added a test case for update_cache=true, it failed with the current code and works with the new one.
update_cache=true
Hi all!
Thank you for fixing it so fast.
Successfully merging a pull request may close this issue.
Summary
Hi!
It seems that some recent updates to
opkg
command brokeupdate_cache
.When I set
update_cache: true
ansible returns an error. Switch toupdate_cache: false
fixes the issue.Installing
community.general:==6.2.0
fixed the issue.Issue Type
Bug Report
Component Name
community.general.opkg
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
Ubuntu 22.04 and OpenWrt 21.02.3
Steps to Reproduce
Expected Results
Ansible should update opkg cache and install vim-fullter.
Actual Results
Log too long, please see here: https://gist.github.com/garar/9f71392a682f8f16f2645c0dbee091cc
Code of Conduct
The text was updated successfully, but these errors were encountered: