Host Failing to Converge: "AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Problem

  • The Hostagent service ( pf9-hostagent) is failing to converge the first time after a host has been authorized with the Management Plane and/or after any packages on the host have been installed or updated.

  • The following traceback and subsequent error is observed in /var/log/pf9/hostagent.log.

Traceback (most recent call last):File "/opt/pf9/hostagent/bin/pf9-hostd", line 9, in [module]import bbslave.mainFile "/opt/pf9/hostagent/lib/python2.7/site-packages/bbslave/main.py", line 14, in [module]from slave import reconnect_loopFile "/opt/pf9/hostagent/lib/python2.7/site-packages/bbslave/slave.py", line 11, in [module]import sessionFile "/opt/pf9/hostagent/lib/python2.7/site-packages/bbslave/session.py", line 18, in [module]from pf9app.algorithms import process_apps, process_agent_updateFile "/opt/pf9/hostagent/lib/python2.7/site-packages/pf9app/algorithms.py", line 14, in [module]from pf9_app_cache import get_supported_distroFile "/opt/pf9/hostagent/lib/python2.7/site-packages/pf9app/pf9_app_cache.py", line 12, in [module]import requestsFile "/opt/pf9/hostagent/lib/python2.7/site-packages/requests/__init__.py", line 95, in [module]from urllib3.contrib import pyopensslFile "/opt/pf9/hostagent/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 46, in [module]import OpenSSL.SSLFile "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in [module]from OpenSSL import rand, crypto, SSLFile "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in [module]SSL_ST_INIT = _lib.SSL_ST_INITAttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Environment

  • Platform9 Managed OpenStack - All Versions

  • Hostagent

Cause

A conflict exists between the openssl and python-openssl modules.

Resolution

1. Remove the python-openssl package from the host.

Ubuntu

#  apt-get remove python-openssl

CentOS

2. Restart the pf9-hostagent service.

Last updated