Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TASK [Upgrade Python OpenSSL Module for SSL Expiry Check] **************************************************************************
- task path: /Users/bmamlin/Code/Playground/openmrs-contrib-itsmresources/ansible/tasks/extra-monitoring.yml:35
- fatal: [ruiru.openmrs.org]: FAILED! => {"changed": true, "cmd": ["/opt/datadog-agent/embedded/bin/pip", "install", "--upgrade", "pyopenssl"], "delta": "0:00:02.917217", "end": "2022-03-03 01:48:22.013666", "msg": "non-zero return code", "rc": 1, "start": "2022-03-03 01:48:19.096449", "stderr": "DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.\nERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new\nTraceback (most recent call last):\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_internal/commands/install.py\", line 518, in _determine_conflicts\n return check_install_conflicts(to_install)\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_internal/operations/check.py\", line 105, in check_install_conflicts\n package_set, _ = create_package_set_from_installed()\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_internal/operations/check.py\", line 47, in create_package_set_from_installed\n package_set[name] = PackageDetails(dist.version, dist.requires())\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2736, in requires\n dm = self._dep_map\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3023, in _dep_map\n self.__dep_map = self._compute_dependencies()\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3032, in _compute_dependencies\n for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3014, in _parsed_pkg_info\n metadata = self.get_metadata(self.PKG_INFO)\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 1420, in get_metadata\n value = self._get(path)\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 1616, in _get\n with open(path, 'rb') as stream:\nIOError: [Errno 2] No such file or directory: '/opt/datadog-agent/embedded/lib/python2.7/site-packages/pyOpenSSL-20.0.1.dist-info/METADATA'\nERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/opt/datadog-agent/embedded/lib/python2.7/site-packages/pyOpenSSL-20.0.1.dist-info/RECORD'", "stderr_lines": ["DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.", "ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new", "Traceback (most recent call last):", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_internal/commands/install.py\", line 518, in _determine_conflicts", " return check_install_conflicts(to_install)", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_internal/operations/check.py\", line 105, in check_install_conflicts", " package_set, _ = create_package_set_from_installed()", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_internal/operations/check.py\", line 47, in create_package_set_from_installed", " package_set[name] = PackageDetails(dist.version, dist.requires())", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2736, in requires", " dm = self._dep_map", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3023, in _dep_map", " self.__dep_map = self._compute_dependencies()", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3032, in _compute_dependencies", " for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3014, in _parsed_pkg_info", " metadata = self.get_metadata(self.PKG_INFO)", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 1420, in get_metadata", " value = self._get(path)", " File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 1616, in _get", " with open(path, 'rb') as stream:", "IOError: [Errno 2] No such file or directory: '/opt/datadog-agent/embedded/lib/python2.7/site-packages/pyOpenSSL-20.0.1.dist-info/METADATA'", "ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/opt/datadog-agent/embedded/lib/python2.7/site-packages/pyOpenSSL-20.0.1.dist-info/RECORD'"], "stdout": "Collecting pyopenssl\n Downloading pyOpenSSL-21.0.0-py2.py3-none-any.whl (55 kB)\nRequirement already satisfied, skipping upgrade: six>=1.5.2 in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from pyopenssl) (1.12.0)\nCollecting cryptography>=3.3\n Using cached cryptography-3.3.2-cp27-cp27mu-manylinux2010_x86_64.whl (2.6 MB)\nRequirement already satisfied, skipping upgrade: enum34; python_version < \"3\" in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from cryptography>=3.3->pyopenssl) (1.1.6)\nRequirement already satisfied, skipping upgrade: ipaddress; python_version < \"3\" in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from cryptography>=3.3->pyopenssl) (1.0.22)\nRequirement already satisfied, skipping upgrade: cffi>=1.12 in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from cryptography>=3.3->pyopenssl) (1.14.5)\nRequirement already satisfied, skipping upgrade: pycparser in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from cffi>=1.12->cryptography>=3.3->pyopenssl) (2.18)\nInstalling collected packages: cryptography, pyopenssl\n Attempting uninstall: cryptography\n Found existing installation: cryptography 2.7\n Uninstalling cryptography-2.7:\n Successfully uninstalled cryptography-2.7\n Attempting uninstall: pyopenssl\n Found existing installation: pyOpenSSL 20.0.1", "stdout_lines": ["Collecting pyopenssl", " Downloading pyOpenSSL-21.0.0-py2.py3-none-any.whl (55 kB)", "Requirement already satisfied, skipping upgrade: six>=1.5.2 in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from pyopenssl) (1.12.0)", "Collecting cryptography>=3.3", " Using cached cryptography-3.3.2-cp27-cp27mu-manylinux2010_x86_64.whl (2.6 MB)", "Requirement already satisfied, skipping upgrade: enum34; python_version < \"3\" in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from cryptography>=3.3->pyopenssl) (1.1.6)", "Requirement already satisfied, skipping upgrade: ipaddress; python_version < \"3\" in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from cryptography>=3.3->pyopenssl) (1.0.22)", "Requirement already satisfied, skipping upgrade: cffi>=1.12 in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from cryptography>=3.3->pyopenssl) (1.14.5)", "Requirement already satisfied, skipping upgrade: pycparser in /opt/datadog-agent/embedded/lib/python2.7/site-packages (from cffi>=1.12->cryptography>=3.3->pyopenssl) (2.18)", "Installing collected packages: cryptography, pyopenssl", " Attempting uninstall: cryptography", " Found existing installation: cryptography 2.7", " Uninstalling cryptography-2.7:", " Successfully uninstalled cryptography-2.7", " Attempting uninstall: pyopenssl", " Found existing installation: pyOpenSSL 20.0.1"]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement