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

Bug 1729967

Summary: Warnings after re-running overcloud deployment
Product: Red Hat OpenStack Reporter: Sasha Smolyak <ssmolyak>
Component: python-tripleoclientAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: medium Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: emacchi, hbrock, jhajyahy, jslagle, mburns
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: python-tripleoclient-12.1.1-0.20190828175909.2e0b19c.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 11:59:10 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 Sasha Smolyak 2019-07-15 12:38:07 UTC
Description of problem:
Several warnings like the one below are on the console when running (re-running) overcloud deploy.

/usr/lib/python3.6/site-packages/tripleoclient/utils.py:1888: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/stack/virt/config_lvm.yaml' mode='r' encoding='UTF-8'>
  content = yaml.load(open(env_file))
/usr/lib/python3.6/site-packages/tripleoclient/utils.py:1888: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/stack/virt/network/network-environment.yaml' mode='r' encoding='UTF-8'>
  content = yaml.load(open(env_file))
/usr/lib/python3.6/site-packages/tripleoclient/utils.py:1888: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/stack/virt/network/dvr-override.yaml' mode='r' encoding='UTF-8'>
  content = yaml.load(open(env_file))
/usr/lib/python3.6/site-packages/tripleoclient/utils.py:1888: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/stack/virt/inject-trust-anchor.yaml' mode='r' encoding='UTF-8'>
  content = yaml.load(open(env_file))
/usr/lib/python3.6/site-packages/tripleoclient/utils.py:1888: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/stack/virt/hostnames.yml' mode='r' encoding='UTF-8'>
  content = yaml.load(open(env_file))
/usr/lib/python3.6/site-packages/tripleoclient/utils.py:1888: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/stack/virt/nodes_data.yaml' mode='r' encoding='UTF-8'>
  content = yaml.load(open(env_file))
/usr/lib/python3.6/site-packages/tripleoclient/utils.py:1888: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/stack/containers-prepare-parameter.yaml' mode='r' encoding='UTF-8'>
  content = yaml.load(open(env_file))
/usr/lib/python3.6/site-packages/tripleoclient/utils.py:1888: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/stack/virt/extra_templates.yaml' mode='r' encoding='UTF-8'>
  content = yaml.load(open(env_file))


Version-Release number of selected component (if applicable):
python3-tripleoclient-11.4.1-0.20190705110410.14ae053.el8ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy overcloud
2. Delete stack 
3. Redeploy overcloud

Actual results:
Get warnings

Expected results:
No warnings


Additional info:

Comment 4 Victor Voronkov 2019-07-22 19:03:44 UTC
Similar warnings with Deployed successfully OSP15:

(overcloud) [stack@undercloud-0 ~]$ . stackrc 
(undercloud) [stack@undercloud-0 ~]$ openstack overcloud status
+-----------+---------------------+---------------------+-------------------+
| Plan Name |       Created       |       Updated       | Deployment Status |
+-----------+---------------------+---------------------+-------------------+
| overcloud | 2019-07-22 16:48:34 | 2019-07-22 16:48:34 |   DEPLOY_SUCCESS  |
+-----------+---------------------+---------------------+-------------------+
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 34012), raddr=('192.168.24.2', 13000)>
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 47072), raddr=('192.168.24.2', 13989)>

Comment 10 errata-xmlrpc 2020-03-05 11:59:10 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:0643