Ignore Python warnings in kolla-toolbox

Ansible used in Stein kolla-toolbox requires paramiko (no version
constraints), which installs latest cryptography package. It results in
Python deprecation warning about Python 2:

/usr/lib64/python2.7/site-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.

This warning breaks kolla_toolbox module.

Closes-Bug: #1888657

Change-Id: I3e38946d9dabd5df8bf7c6202a8b739304fe4622
This commit is contained in:
Michal Nasiadka 2020-07-23 13:09:22 +02:00
parent 84d9d78e5f
commit bbaa82619e
2 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,7 @@ common_services:
ANSIBLE_LIBRARY: "/usr/share/ansible"
PYTHONWARNINGS: "ignore::UserWarning"
privileged: True
- "{{ node_config_directory }}/kolla-toolbox/:{{ container_config_directory }}/:ro"

View File

@ -0,0 +1,6 @@
- |
This patch fixes a bug, when kolla_toolbox Ansible module failed due to
Python deprecation warnings caused by paramiko/cryptography.
`LP#1888657 <https://launchpad.net/bugs/1888657>`__