Running openstack recordset list Command Fails
Problem
Running openstack recordset list 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:
deactivateCreate a virtual environment with Python3 and activate it:
virtualenv -p python3.6 pf9-openstack
source pf9-openstack/bin/activateUpgrade pip and then install openstackclient & designateclient:
Note: If the virtualenv binary doesn’t exist, install it with following command :
PreviousHypervisor is Reporting Offline to The Management Plane
NextHow To Identify If Underlying Disk is HDD or SSD?
Last updated
