Description of problem: With the shipped version of ansible-runner in osp-16.1 (on rhel-8.2), we have warning about unclosed resources, such as: /usr/lib/python3.6/site-packages/validations_libs/ansible.py:374: ResourceWarning: unclosed file <_io.BufferedWriter name='/var/log/validations/artifacts/6795770e-908a-430e-91dc-b77324e1ec16_check-ram.yaml_2020-10-15T07:22:31.146719Z/artif acts/stdout'> While this isn't an actual issue with the application using ansible-runner, it might mislead the operator into believing there's an issue with this unclosed resource. Importing the following patch (a 2-liners, really) into 1.3.4 would prevent this ugly output: https://github.com/ansible/ansible-runner/commit/71ebaa7afc9d786374025564c6b4fbda8832824a I've tested it on my local env, and it indeed solves the issue. Version-Release number of selected component (if applicable): ansible-runner-1.3.4-2.el8ar.noarch python3-ansible-runner-1.3.4-2.el8ar.noarch How reproducible: Always Steps to Reproduce: 1. Run `openstack tripleo validator run --validation <some validation>' 2. Check the run output 3. Actual results: We see warning about that unclosed artifact Expected results: We shouldn't get that unclosed artifact warning Additional info: Patch should apply cleanly.
The upstream requirements for ansible-runner in stable/train is updated now from 1.3.4 to 1.4.0. I'm moving this BZ to Reldel according to irc discuss, Reldel should be able to bump the ansible-runner version downstream: 09:32 < matbu> is there a requirements repo like upstream ? 09:34 < shreshtha> we can update that. update the bug with version detail/upstream rpm if available and we will take it from here
Hey, Not sure if it's the right place but it's here: https://releases.ansible.com/ansible-runner/rpm/epel-7-x86_64/ansible-runner-1.4.0-1.el7.noarch.rpm
Is ok for you now ?
*** Bug 1887754 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.3 bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:5413