Bug 1756855 - [OSP15] "ResourceWarning: unclosed file" warnings observed while generating fencing.yaml file
Summary: [OSP15] "ResourceWarning: unclosed file" warnings observed while generating f...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient
Version: 15.0 (Stein)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: z2
: 15.0 (Stein)
Assignee: Michele Baldessari
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-30 06:35 UTC by Yadnesh Kulkarni
Modified: 2020-03-05 12:02 UTC (History)
6 users (show)

Fixed In Version: python-openstackclient-3.18.1-0.20191125111555.111d6a9.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-05 12:02:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1845927 0 None None None 2019-09-30 09:19:21 UTC
OpenStack gerrit 686015 0 'None' MERGED Close some file descriptors that were left open 2020-11-04 14:54:13 UTC
Red Hat Product Errata RHBA-2020:0710 0 None None None 2020-03-05 12:02:50 UTC

Description Yadnesh Kulkarni 2019-09-30 06:35:11 UTC
Description of problem:

The fencing.yaml is generated properly, just some resource warnings are observed while generating the fencing.yaml file. 

~~~
(undercloud) [stack@undercloud ~]$ openstack overcloud generate fencing --ipmi-lanplus --ipmi-level administrator --output fencing.yaml instackenv.json 
/usr/lib/python3.6/site-packages/osc_lib/shell.py:176: ResourceWarning: unclosed file <_io.TextIOWrapper name='fencing.yaml' mode='w' encoding='UTF-8'>
  ret_value = super(OpenStackShell, self).run_subcommand(argv)
/usr/lib/python3.6/site-packages/osc_lib/shell.py:176: ResourceWarning: unclosed file <_io.TextIOWrapper name='instackenv.json' mode='r' encoding='UTF-8'>
  ret_value = super(OpenStackShell, self).run_subcommand(argv)
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 45296), raddr=('192.168.24.2', 13000)>
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 54104), raddr=('192.168.24.2', 13989)>
~~~

Version-Release number of selected component (if applicable):
python3-openstackclient-3.18.0-0.20190312140834.6868499.el8ost.noarch

Comment 1 Michele Baldessari 2019-09-30 09:30:17 UTC
So the file warnings are fixed in the linked review. The SSL warnings look like they will be fixed via:
https://bugs.launchpad.net/keystoneauth/+bug/1838704

Comment 3 Michele Baldessari 2019-09-30 09:55:34 UTC
I also confirm that via BZ https://bugzilla.redhat.com/show_bug.cgi?id=1733557 (and https://review.opendev.org/#/c/674139/) the SSL warnings are gone

Comment 9 errata-xmlrpc 2020-03-05 12:02:22 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, 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-2020:0710


Note You need to log in before you can comment on or make changes to this bug.