> 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/generic/solution/running-openstack-recordset-list-command-fails.md).

# Running openstack recordset list Command Fails

## Problem

Running openstack recordset list command fails with following error:

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

```bash
$ openstack recordset list <recordSet>
Unable to establish connection to http://127.0.0.1:9001/v2/zones?name=<RecordSet>: HTTPConnectionPool(host='127.0.0.1', port=9001): Max retries exceeded with url: /v2/zones?name=<recordSets> (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa23ce9b5d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All Versions
* Ubuntu machine running OpenStack Client with Python 2.7 virtual environment

## Cause

OpenStack Client was using Python 2.7

## Resolution

1. Deactivate the current virtual environment:

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

```bash
deactivate
```

{% endtab %}
{% endtabs %}

2. Create a virtual environment with Python3 and activate it:

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

```bash
virtualenv -p python3.6 pf9-openstack
source pf9-openstack/bin/activate
```

{% endtab %}
{% endtabs %}

3. Upgrade pip and then install openstackclient & designateclient:

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

```bash
pip install --upgrade pip

pip install python-openstackclient python-designateclient -c https://raw.githubusercontent.com/openstack/requirements/stable/ussuri/upper-constraints.txt
```

{% endtab %}
{% endtabs %}

**Note**: If the virtualenv binary doesn’t exist, install it with following command :

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

```bash
apt install virtualenv -y
```

{% 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 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/generic/solution/running-openstack-recordset-list-command-fails.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 `automate deployments from our CI pipeline` 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.
