krkn-chaos / krkn

Chaos and resiliency testing tool for Kubernetes with a focus on improving performance under failure conditions. A CNCF sandbox project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unlcosed sockets reported while unit testing

sandrobonazzola opened this issue · comments

Run python -m unittest discover -s tests
/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/logging/__init__.py:572: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 58992), raddr=('127.0.0.1', 37499)>
  self._style = _STYLES[style][0](fmt)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/logging/__init__.py:419: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('[12](https://github.com/redhat-chaos/krkn/runs/8307666107?check_suite_focus=true#step:6:13)7.0.0.1', 38204), raddr=('127.0.0.1', 37499)>
  self._fmt = fmt or self.default_format
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/opt/hostedtoolcache/Python/3.9.[13](https://github.com/redhat-chaos/krkn/runs/8307666107?check_suite_focus=true#step:6:14)/x64/lib/python3.9/logging/__init__.py:419: ResourceWarning: unclosed <ssl.SSLSocket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 38212), raddr=('127.0.0.1', 37499)>
  self._fmt = fmt or self.default_format
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/six.py:605: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 52876), raddr=('127.0.0.1', 37499)>
  return iter(d.items(**kw))
ResourceWarning: Enable tracemalloc to get the object allocation traceback

Closing this as the pod plugin is now in its standalone repo. Moved to krkn-chaos/arcaflow-plugin-kill-pod#2