SAHARA ERROR: Unable to establish connection [closed]

asked 2016-01-05 01:12:49 -0500

xiangfei-ma gravatar image

updated 2016-01-05 04:09:33 -0500

I am running kilo on RHEL7. I installed SAHARA recently, but it keeps showing error when I excute the sahara command just like below.
How to fix this?
my controller:
internal ip:
external ip:

[root@osc-27 ~(keystone_admin)]# sahara --debug cluster-list
DEBUG (session:195) REQ: curl -g -i -X GET -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:203) Starting new HTTP connection (1):
DEBUG (connectionpool:383) "GET /v2.0 HTTP/1.1" 200 336
DEBUG (session:224) RESP: [200] content-length: 336 vary: X-Auth-Token connection: keep-alive date: Tue, 05 Jan 2016 06:56:29 GMT content-type: application/json x-openstack-request-id: req-546aa178-1130-49a6-9315-6d0e9d5da37a 
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "", "rel": "self"}, {"href": "", "type": "text/html", "rel": "describedby"}]}}

DEBUG (v2:76) Making authentication request to
DEBUG (connectionpool:383) "POST /v2.0/tokens HTTP/1.1" 200 3721
DEBUG (iso8601:184) Parsed 2016-01-05T07:56:29Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'07', 'daydash': u'05', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'29', 'tz_minute': None, 'year': u'2016', 'separator': u'T', 'monthdash': u'01', 'day': None, 'minute': u'56'} with default timezone <iso8601.iso8601.Utc object at 0x19ef610>
DEBUG (iso8601:140) Got u'2016' for 'year' with default None
DEBUG (iso8601:140) Got u'01' for 'monthdash' with default 1
DEBUG (iso8601:140) Got 1 for 'month' with default 1
DEBUG (iso8601:140) Got u'05' for 'daydash' with default 1
DEBUG (iso8601:140) Got 5 for 'day' with default 5
DEBUG (iso8601:140) Got u'07' for 'hour' with default None
DEBUG (iso8601:140) Got u'56' for 'minute' with default None
DEBUG (iso8601:140) Got u'29' for 'second' with default None
DEBUG (session:195) REQ: curl -g -i -X GET -H "User-Agent: python-saharaclient" -H "X-Auth-Token: {SHA1}a710c062d2bef3b2a53aad840cd0583d2ffc6c25"
INFO (connectionpool:203) Starting new HTTP connection (1):
DEBUG (shell:716) Unable to establish connection to
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/saharaclient/", line 713, in main
  File "/usr/lib/python2.7/site-packages/saharaclient/", line 653, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/saharaclient/api/", line 287, in do_cluster_list
    clusters = cs.clusters.list()
  File "/usr/lib/python2.7/site-packages/saharaclient/api/", line 58, in list
    return self._list('/clusters%s' % query, 'clusters')
  File "/usr/lib/python2.7/site-packages/saharaclient/api/", line 121, in _list
    resp = self.api.get(url)
  File "/usr/lib/python2.7/site-packages/keystoneclient/", line 170, in get
    return self ...
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by xiangfei-ma
close date 2016-01-05 06:30:51.649394



Seems like an endpoint issue. You authenticate versus internal IP and sahara request is done versus external IP, where sahara is not listening. It does at the internal IP

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-01-05 04:14:28 -0500 )edit

Much appreciated. It is caused exactly as you said.
I checked my sahara.conf again, then I found that pacstack wrote the host of sahara to internal ip by default.
After I changed

host= #or just comment this line out

it works.

xiangfei-ma gravatar imagexiangfei-ma ( 2016-01-05 06:27:05 -0500 )edit