Running openstack recordset list Command Fails
Problem
Running openstack recordset list <RecordSet> command fails with following error:
$ 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',))
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
- Deactivate the current virtual environment:
deactivate
- Create a virtual environment with Python3 and activate it:
virtualenv -p python3.6 pf9-openstack
source pf9-openstack/bin/activate
- Upgrade pip and then install openstackclient & designateclient:
x
pip install --upgrade pip
pip install python-openstackclient python-designateclient -c https://raw.githubusercontent.com/openstack/requirements/stable/ussuri/upper-constraints.txt
Note: If the virtualenv binary doesn’t exist, install it with following command :
apt install virtualenv -y
##
Was this page helpful?