Description of problem: We have some garbage when running validator commands, such as: /usr/lib/python3.6/site-packages/validations_libs/ansible.py:374: ResourceWarning: unclosed file <_io.BufferedWriter name='/var/log/validations/artifacts/e8542ac7-5a69-4a6c-a8e7-0057bcb97d24_undercloud-tokenflush.yaml_2020-10-10T23:03:25.444907Z/artifacts/stdout'> sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 34144), raddr=('192.168.24.2', 13000)> Version-Release number of selected component (if applicable): python3-validations-libs-1.0.5-1.20200914174429.4a660ec.el8ost.noarch How reproducible: Always Steps to Reproduce: 1. run `openstack tripleo validator' command (any sub-command) 2. 3. Actual results: We get some extra logs about unclosed buffers/files Expected results: We should only get the actual command output Additional info:
This issue is partially masked with the patch associated to https://bugzilla.redhat.com/show_bug.cgi?id=1892323 It basically means the issue is located in the authentication part, either ocs-libs or keystoneauth1 (and I would tend to point that later one as the main culprit). Since this issue isn't seen upstream, it's probably a missing backport. Time to chase it down I guess.
Apparently we're missing this change in stable/train, therefore in osp-16.1: https://review.opendev.org/#/c/674139/ Let's backport it then!
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