Skip to content
New issue

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

dnf_versionlock does not work under Fedora 41 #9556

Open
1 task done
felixfontein opened this issue Jan 8, 2025 · 2 comments
Open
1 task done

dnf_versionlock does not work under Fedora 41 #9556

felixfontein opened this issue Jan 8, 2025 · 2 comments
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@felixfontein
Copy link
Collaborator

Summary

The integration tests fail, I've disabled them for dnf_versionlock in #9552 when adding Fedora 41 to CI.

One run where it fails is https://dev.azure.com/ansible/community.general/_build/results?buildId=133678&view=logs&j=1ee8c8b7-b7da-55d5-bfe2-cd3a7d69b175&t=1117eb2f-c304-5521-3979-0c5cd492fdb5&l=1518

01:41 TASK [dnf_versionlock : Lock installed package bash] ***************************
01:41 task path: /root/ansible_collections/community/general/tests/output/.tmp/integration/dnf_versionlock-il99usxq-ÅÑŚÌβŁÈ/tests/integration/targets/dnf_versionlock/tasks/lock_bash.yml:15
01:43 Using module file /root/ansible_collections/community/general/plugins/modules/dnf_versionlock.py
01:43 Pipelining is enabled.
01:43 <testhost> ESTABLISH LOCAL CONNECTION FOR USER: root
01:43 <testhost> EXEC /bin/sh -c '/usr/bin/python3.13 && sleep 0'
01:43 changed: [testhost] => {
01:43     "changed": true,
01:43     "invocation": {
01:43         "module_args": {
01:43             "name": [
01:43                 "bash"
01:43             ],
01:43             "raw": false,
01:43             "state": "present"
01:43         }
01:43     },
01:43     "locklist_post": [
01:43         "#",
01:43         "Added",
01:43         "by",
01:43         "'versionlock",
01:43         "add'",
01:43         "command",
01:43         "on",
01:43         "2025-01-08",
01:43         "05:40:29",
01:43         "Package",
01:43         "name:",
01:43         "bash",
01:43         "evr",
01:43         "=",
01:43         "5.2.32-1.fc41"
01:43     ],
01:43     "locklist_pre": [],
01:43     "msg": "Adding versionlock on \"bash = 5.2.32-1.fc41\".\n",
01:43     "specs_toadd": [
01:43         "bash-0:5.2.32-1.fc41.*"
01:43     ],
01:43     "specs_todelete": []
01:43 }
01:43 
01:43 TASK [dnf_versionlock : assert] ************************************************
01:43 task path: /root/ansible_collections/community/general/tests/output/.tmp/integration/dnf_versionlock-il99usxq-ÅÑŚÌβŁÈ/tests/integration/targets/dnf_versionlock/tasks/lock_bash.yml:21
01:43 fatal: [testhost]: FAILED! => {
01:43     "assertion": "lock_bash.locklist_post | length == 1",
01:43     "changed": false,
01:43     "evaluated_to": false,
01:43     "msg": "Assertion failed"
01:43 }

As you can see, the locklist_post output is wrong.

Issue Type

Bug Report

Component Name

dnf_versionlock

Ansible Version

devel

Community.general Version

main branch

Configuration

No response

OS / Environment

No response

Steps to Reproduce

Re-enable dnf_versionlock tests for Fedora 41 and run CI

Expected Results

Tests pass

Actual Results

Tests fail, see above.

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @moreda
click here for bot help

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

2 participants