ConnectFailure: Unable to establish connection to gnocchi internal endpoint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloudkitty |
In Progress
|
Undecided
|
bhujay kumar |
Bug Description
Despite having interface=
The cloudkitty.ini sections tired are as follows:
[ks_auth]
memcached_servers = 10.0.0.
auth_uri = http://
project_domain_name = default
project_name = service
user_domain_name = default
password =
username = cloudkitty
auth_url = http://
identity_uri = http://
auth_type = v3password
interface = internalURL
endpoint_type = internalURL
debug = True
#endpoint_override = internalURL
#valid_interfaces = internalURL
[storage_gnocchi]
auth_section = ks_auth
[gnocchi_collector]
auth_section = ks_auth
The error during storage init is as follows
(cloudkitty-16.0.4) root@infra2-
2018-01-29 15:57:13.648 32617 CRITICAL cloudkitty [-] Unhandled error: ConnectFailure: Unable to establish connection to https:/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty Traceback (most recent call last):
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty sys.exit(main())
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty init_storage_
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty backend.init()
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty self._conn.
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty return self._get(self.url + name).json()
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty return self.client.
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty return self.request(url, 'GET', **kwargs)
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty **kwargs)
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty return self.session.
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty return wrapped(*args, **kwargs)
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty resp = send(**kwargs)
2018-01-29 15:57:13.648 32617 ERROR cloudkitty File "/openstack/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty raise exceptions.
2018-01-29 15:57:13.648 32617 ERROR cloudkitty ConnectFailure: Unable to establish connection to https:/
2018-01-29 15:57:13.648 32617 ERROR cloudkitty
The problem was solved after changing the code to explicitly specifying adapter_options to include interface option parameters in gnocchi client while the connection was initiated by the following files :
1)cloudkitty/
2)cloudkitty/
A patch request has been submitted in gerrit
Changed in cloudkitty: | |
assignee: | nobody → bhujay kumar (bhatta) |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. openstack. org/545512
Review: https:/