Comment 0 for bug 1753351

Revision history for this message
xiaoxu790 (xiaoxu790) wrote :

Version
kolla-ansible:pike
openstack:pike

Issue
[root@openstack1 ~]# gnocchi metric list
Unable to establish connection to http://localhost:8041/v1/metric?: HTTPConnectionPool(host='localhost', port=8041): Max retries exceeded with url: /v1/metric (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x2fa67d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

[root@openstack1 ~]# egrep "^[^#]" admin-openrc.sh
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=xxxxx
export OS_PASSWORD=xxxxx
export OS_AUTH_URL=http://172.17.51.30:35357/v3
export OS_INTERFACE=internal
export OS_IDENTITY_API_VERSION=3
export OS_REGION_NAME=RegionOne
export IRONIC_API_VERSION=1.20

Reference python-gnocchiclient connecting to localhost, bug fix
https://review.openstack.org/436684