[1] enabled all types of warnings, as deprecation is added only DeprecationWarning should be enabled, without it it makes all sorts of warning visible, example:-
# openstack flavor list
/usr/lib/python3.9/site-packages/oslo_utils/fnmatch.py:25: DeprecationWarning: Using the oslo.utils's 'fnmatch' module is deprecated, please use the stdlib 'fnmatch' module.
debtcollector.deprecate(
/usr/lib/python3.9/site-packages/yaql/language/utils.py:54: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
SequenceType = collections.Sequence
/usr/lib/python3.9/site-packages/yaql/language/utils.py:55: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
MutableSequenceType = collections.MutableSequence
/usr/lib/python3.9/site-packages/yaql/language/utils.py:56: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
SetType = collections.Set
/usr/lib/python3.9/site-packages/yaql/language/utils.py:57: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
MutableSetType = collections.MutableSet
/usr/lib/python3.9/site-packages/yaql/language/utils.py:58: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
MappingType = collections.Mapping
/usr/lib/python3.9/site-packages/yaql/language/utils.py:60: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
IterableType = collections.Iterable
/usr/lib/python3.9/site-packages/yaql/language/utils.py:61: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
IteratorType = collections.Iterator
/usr/lib/python3.9/site-packages/barbicanclient/__init__.py:57: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
warnings.warn("The %s module is moved to barbicanclient/v1 "
/usr/lib/python3.9/site-packages/barbicanclient/__init__.py:57: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
warnings.warn("The %s module is moved to barbicanclient/v1 "
sys:1: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 35016, 0, 0), raddr=('::1', 8774, 0, 0)>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Should be fixed to enable only Deprecation warning so unnecessary warning's get's suppressed.
Related Story:- https://storyboard.openstack.org/#!/story/2009015
[1] https://review.opendev.org/c/openstack/oslo.utils/+/790429
Fix proposed to branch: master /review. opendev. org/c/openstack /oslo.utils/ +/798804
Review: https:/