From bbaa82619ee404d495ec5aef9468ecd52c5d76d3 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Thu, 23 Jul 2020 13:09:22 +0200 Subject: [PATCH] Ignore Python warnings in kolla-toolbox Ansible 2.2.0.0 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 --- ansible/roles/common/defaults/main.yml | 1 + releasenotes/notes/bug-1888657-44e2f6f3aedc20ba.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/bug-1888657-44e2f6f3aedc20ba.yaml diff --git a/ansible/roles/common/defaults/main.yml b/ansible/roles/common/defaults/main.yml index 25d59d204a..ea5d218121 100644 --- a/ansible/roles/common/defaults/main.yml +++ b/ansible/roles/common/defaults/main.yml @@ -26,6 +26,7 @@ common_services: environment: ANSIBLE_NOCOLOR: "1" ANSIBLE_LIBRARY: "/usr/share/ansible" + PYTHONWARNINGS: "ignore::UserWarning" privileged: True volumes: - "{{ node_config_directory }}/kolla-toolbox/:{{ container_config_directory }}/:ro" diff --git a/releasenotes/notes/bug-1888657-44e2f6f3aedc20ba.yaml b/releasenotes/notes/bug-1888657-44e2f6f3aedc20ba.yaml new file mode 100644 index 0000000000..de6b20c404 --- /dev/null +++ b/releasenotes/notes/bug-1888657-44e2f6f3aedc20ba.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + This patch fixes a bug, when kolla_toolbox Ansible module failed due to + Python deprecation warnings caused by paramiko/cryptography. + `LP#1888657 `__