Noticed today's master env that we get a wall of warnings at almost every openstack command. For example:
$ openstack overcloud node import --introspect --provide instackenv.json
A) fnmatch deprecation
/usr/lib/python3.6/site-packages/oslo_utils/fnmatch.py:25: DeprecationWarning: Using the oslo.utils's 'fnmatch' module is deprecated, please use the stdlib 'fnmatch' module.
"Using the oslo.utils's 'fnmatch' module is deprecated, "
B) Barbican deprecation:
/usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
% (name, name, name))
/usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
% (name, name, name))
C) bootstrap deprecation
/usr/lib64/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/lib64/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/lib64/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/lib64/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/lib64/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/lib64/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
/usr/lib64/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
C) is the most annoying one because it is 124 lines at every invocation
This happens also with other commands like:
openstack baremetal node list
There is also D) after a failed deployment: python3. 6/site- packages/ tripleoclient/ v1/overcloud_ deploy. py:587: ResourceWarning: unclosed <socket.socket fd=7, family= AddressFamily. AF_INET, type=SocketKind .SOCK_STREAM, proto=0, laddr=( '192.168. 4.2', 39582), raddr=( '192.168. 4.2', 8006)> launch_ heat(self. heat_launcher, restore_ db=restore_ db) python3. 6/site- packages/ tripleoclient/ utils.py: 701: ResourceWarning: unclosed file <_io.TextIOWrapper name='/ tmp/tripleo75a7 apg8/7f34454e- 90ff-4b83- acd1-a5676d5c87 97/stdout' mode='r' encoding='UTF-8'> runner. stdout. read()) python3. 6/site- packages/ tripleoclient/ utils.py: 701: ResourceWarning: unclosed file <_io.TextIOWrapper name='/ tmp/tripleoc61x 2pgo/7f34454e- 90ff-4b83- acd1-a5676d5c87 97/stdout' mode='r' encoding='UTF-8'> runner. stdout. read()) python3. 6/site- packages/ tripleoclient/ utils.py: 701: ResourceWarning: unclosed file <_io.TextIOWrapper name='/ tmp/tripleoniz3 d3fl/7f34454e- 90ff-4b83- acd1-a5676d5c87 97/stdout' mode='r' encoding='UTF-8'> runner. stdout. read()) python3. 6/site- packages/ tripleoclient/ utils.py: 701: ResourceWarning: unclosed file <_io.TextIOWrapper name='/ tmp/tripleou2o1 _bue/7f34454e- 90ff-4b83- acd1-a5676d5c87 97/stdout' mode='r' encoding='UTF-8'> runner. stdout. read()) python3. 6/site- packages/ tripleoclient/ utils.py: 701: ResourceWarning: unclosed file <_io.TextIOWrapper name='/ tmp/tripleoeo7a ydfn/7f34454e- 90ff-4b83- acd1-a5676d5c87 97/stdout' mode='r' encoding='UTF-8'> runner. stdout. read())
/usr/lib/
utils.
/usr/lib/
f.write(
/usr/lib/
f.write(
/usr/lib/
f.write(
/usr/lib/
f.write(
/usr/lib/
f.write(