> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/generic/solution/running-openstack-recordset-list-command-fails.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
