> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/how-to/host-failing-to-converge-attributeerror-module-object-has-no-at.md).

# 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.*

{% tabs %}
{% tab title="None" %}

```none
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'
```

{% endtab %}
{% endtabs %}

## 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**

{% tabs %}
{% tab title="None" %}

```none
#  apt-get remove python-openssl
```

{% endtab %}
{% endtabs %}

**CentOS**

{% tabs %}
{% tab title="None" %}

```none
# yum remove python-openssl
```

{% endtab %}
{% endtabs %}

2\. Restart the ***pf9-hostagent*** service.

{% tabs %}
{% tab title="None" %}

```none
# systemctl restart pf9-hostagent
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pmo/how-to/host-failing-to-converge-attributeerror-module-object-has-no-at.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
