Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1852844

Summary: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 46460)>
Product: Red Hat OpenStack Reporter: Cédric Jeanneret <cjeanner>
Component: python-tripleoclientAssignee: Alex Schultz <aschultz>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: low Docs Contact:
Priority: low    
Version: 16.1 (Train)CC: aschultz, bdobreli, chrisbro, emacchi, hbrock, jslagle, mburns, spower, svigan
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.3.2-1.20200804133405.0e7c3ab.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-28 15:38:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Cédric Jeanneret 2020-07-01 12:29:49 UTC
Description of problem:
In osp-16.1 python-tripleoclient, we see a bunch of unclosed resources such as:


/usr/lib/python3.6/site-packages/tripleoclient/workflows/deployment.py:181: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 46460)>                      
  sock = socket.socket(socket.AF_INET6)
/usr/lib/python3.6/site-packages/tripleoclient/workflows/deployment.py:175: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=0, laddr=('::', 0, 0, 0)>                        
  sock = socket.socket()

This is due to python3 being more careful and strict with opened sockets and files.

Since we don't see it in upstream master, it might be "just" a missing backport, or, in fact, due to the fact we dropped mistral for most of the deploy tasks...


Version-Release number of selected component (if applicable):
python3-tripleoclient-12.3.2-0.20200615103427.6f877f6.el8ost.noarch

How reproducible:
Always


Steps to Reproduce:
1. deploy the undercloud
2. deploy the overcloud
3. check the warnings

Actual results:
We see unwanted warning about unclosed sockets

Expected results:
we shouldn't see it

Additional info:

Comment 1 Alex Schultz 2020-07-01 12:57:54 UTC
Need to figure out which client is not properly cleaning up after itself.

Comment 2 Emilien Macchi 2020-09-08 13:37:52 UTC
*** Bug 1875602 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2020-10-28 15:38:12 UTC
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 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:4284