Bug 1903341

Summary: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 58452), raddr=('192.168.24.2', 13000)>
Product: Red Hat OpenStack Reporter: Jeremy <jmelvin>
Component: python-keystoneauth1Assignee: Cédric Jeanneret <cjeanner>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: apevec, aschultz, cjeanner, ggrasza, hbrock, jschluet, jslagle, lhh, mburns, michele
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-keystoneauth1-3.17.3-1.20210528024841.7d7b956.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-09 20:17:29 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 Jeremy 2020-12-01 20:34:06 UTC
Description of problem:
Still seeing this issue after updating to the errata from https://bugzilla.redhat.com/show_bug.cgi?id=1852844.

This time we see it for command:
(undercloud) [stack@undercloud-0 ~]$  openstack overcloud node import --validate-only instackenv.json 
Waiting for messages on queue 'tripleo' with no timeout.

Successfully validated environment file
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 58452), raddr=('192.168.24.2', 13000)>
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 42414), raddr=('192.168.24.2', 13989)>
(undercloud) [stack@undercloud-0 ~]$ 


Version-Release number of selected component (if applicable):
(undercloud) [stack@undercloud-0 ~]$ rpm -qa |grep python3-trip
python3-tripleo-common-11.4.1-1.20200914165651.el8ost.noarch
python3-tripleoclient-12.3.2-1.20200914164928.el8ost.noarch
python3-tripleoclient-heat-installer-12.3.2-1.20200914164928.el8ost.noarch


How reproducible:

100%
Steps to Reproduce:
1. run command above
2.
3.

Actual results:
see the error

Expected results:
not see the error

Additional info:
another similar bz https://bugzilla.redhat.com/show_bug.cgi?id=1875602


 also saw it at the end of the output from ---> openstack tripleo validator run --group pre-introspection

+--------------------------------------+---------------------------------+--------+------------+----------------+-------------------+-------------+
|                 UUID                 |           Validations           | Status | Host_Group | Status_by_Host | Unreachable_Hosts |   Duration  |
+--------------------------------------+---------------------------------+--------+------------+----------------+-------------------+-------------+
| 586288a1-4405-45ab-940e-74b6beacddde |            check-cpu            | PASSED |    all     |                |                   |             |
| d5b90906-dad1-471c-911f-7dd4d02acb22 |         check-disk-space        | PASSED |    all     |                |                   |             |
| 3a01816c-b6a5-4c39-a101-35a2aa15e5a0 |            check-ram            | PASSED |    all     |                |                   |             |
| bce99ba1-acb1-4816-a1c9-07f0117e0b76 |      undercloud-tokenflush      | PASSED | undercloud |   undercloud   |                   | 0:00:01.077 |
| 1c588367-350b-43ab-9954-34c95e838d4c |        check-selinux-mode       | PASSED |    all     |                |                   |             |
| 7b8bbd22-4c57-49c0-968d-52088f752cee |      check-network-gateway      | PASSED | undercloud |   undercloud   |                   | 0:00:02.189 |
| 6eda5730-2a2d-45b0-9cef-8d68429cdeab |        ctlplane-ip-range        | PASSED | undercloud |   undercloud   |                   | 0:00:01.922 |
| 5b90f14f-08d9-499f-bedc-29518ff275df |        dhcp-introspection       | PASSED | undercloud |   undercloud   |                   | 0:00:06.077 |
| eb9b6089-0601-4016-a536-0f1b454287ad |      undercloud-disk-space      | PASSED | undercloud |   undercloud   |                   | 0:00:03.131 |
| e40d941f-7494-47b1-af3b-6ec06b71ab09 | undercloud-neutron-sanity-check | FAILED | undercloud |   undercloud   |                   | 0:00:04.958 |
+--------------------------------------+---------------------------------+--------+------------+----------------+-------------------+-------------+
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.147.250.37', 32826), raddr=('10.147.250.37', 13000)>

Comment 2 David Rosenfeld 2020-12-01 21:23:01 UTC
Have seen several BZs for this. Can it be checked to see if its a duplicate?

Comment 3 Jeremy 2020-12-01 22:02:06 UTC
I found a few, however i don't see anything for the ironic side. (overcloud node import), or the openstack tripleo validator run 

https://bugzilla.redhat.com/show_bug.cgi?id=1875602 duplicate of 1852844
https://bugzilla.redhat.com/show_bug.cgi?id=1852844. fixed in python-tripleoclient-12.3.2-1.20200804133405.0e7c3ab.el8ost
https://bugzilla.redhat.com/show_bug.cgi?id=1847471 fixes upstream?


https://bugzilla.redhat.com/show_bug.cgi?id=1733557 mentions a few fixes:

keystoneauth: https://review.opendev.org/#/c/674139/
glance: https://review.opendev.org/#/c/674133/
swift: https://review.opendev.org/#/c/674320/

Comment 7 Grzegorz Grasza 2021-08-02 14:56:04 UTC
I see the https://review.opendev.org/c/openstack/devstack/+/757488/ merged, do you think we can close it?

Comment 14 David Rosenfeld 2021-09-23 19:48:01 UTC
ResourceWarnings are no longer seen:

(undercloud) [stack@undercloud-0 ~]$ openstack overcloud node import --validate-only instackenv.json
Waiting for messages on queue 'tripleo' with no timeout.

Comment 24 errata-xmlrpc 2021-12-09 20:17:29 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.7 (Train) 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/RHBA-2021:3762