Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SAHARA ERROR: Unable to establish connection

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: 128.0.0.27
external ip: 109.105.117.27

[root@osc-27 ~(keystone_admin)]# sahara --debug cluster-list
DEBUG (session:195) REQ: curl -g -i -X GET http://128.0.0.27:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:203) Starting new HTTP connection (1): 128.0.0.27
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": "http://128.0.0.27:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG (v2:76) Making authentication request to http://128.0.0.27:5000/v2.0/tokens
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 http://109.105.117.27:8386/v1.1/fa1533c611514fc493b8777fc57aac09/clusters -H "User-Agent: python-saharaclient" -H "X-Auth-Token: {SHA1}a710c062d2bef3b2a53aad840cd0583d2ffc6c25"
INFO (connectionpool:203) Starting new HTTP connection (1): 109.105.117.27
DEBUG (shell:716) Unable to establish connection to http://109.105.117.27:8386/v1.1/fa1533c611514fc493b8777fc57aac09/clusters
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/saharaclient/shell.py", line 713, in main
    sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/saharaclient/shell.py", line 653, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/saharaclient/api/shell.py", line 287, in do_cluster_list
    clusters = cs.clusters.list()
  File "/usr/lib/python2.7/site-packages/saharaclient/api/clusters.py", line 58, in list
    return self._list('/clusters%s' % query, 'clusters')
  File "/usr/lib/python2.7/site-packages/saharaclient/api/base.py", line 121, in _list
    resp = self.api.get(url)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/saharaclient/api/client.py", line 46, in request
    return super(HTTPClient, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 382, in request
    resp = send(**kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 426, in _send_request
    raise exceptions.ConnectionRefused(msg)
ConnectionRefused: Unable to establish connection to http://109.105.117.27:8386/v1.1/fa1533c611514fc493b8777fc57aac09/clusters
ERROR: Unable to establish connection to http://109.105.117.27:8386/v1.1/fa1533c611514fc493b8777fc57aac09/clusters

My sahara.conf:

[root@osc-27 ~(keystone_admin)]# grep '^[^#]' /etc/sahara/sahara.conf
[DEFAULT]
debug = False
verbose = True
log_dir = /var/log/sahara
use_syslog = False
notification_topics = notifications
rpc_backend = rabbit
host =128.0.0.27
port = 8386
[cinder]
[conductor]
[database]
connection = mysql://sahara:5ce9e0855eab45bd@128.0.0.27/sahara
[heat]
[keystone]
[keystone_authtoken]
auth_uri=http://128.0.0.27:5000/v2.0
auth_version=v2.0
identity_uri=http://128.0.0.27:35357
admin_user=sahara
admin_password=b078d5e7c53f453b
admin_tenant_name=services
[matchmaker_redis]
[matchmaker_ring]
[neutron]
[nova]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
amqp_durable_queues = False
kombu_reconnect_delay = 1.0
rabbit_host = 128.0.0.27
rabbit_port = 5672
rabbit_hosts = 128.0.0.27:5672
rabbit_use_ssl = False
rabbit_userid = guest
rabbit_password = guest
rabbit_virtual_host = /
rabbit_retry_interval = 1
rabbit_retry_backoff = 2
rabbit_max_retries = 0
rabbit_ha_queues = False
[oslo_policy]
[ssl]
[swift]
[timeouts]

SAHARA ERROR: Unable to establish connection

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: 128.0.0.27
external ip: 109.105.117.27

[root@osc-27 ~(keystone_admin)]# sahara --debug cluster-list
DEBUG (session:195) REQ: curl -g -i -X GET http://128.0.0.27:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:203) Starting new HTTP connection (1): 128.0.0.27
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": "http://128.0.0.27:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG (v2:76) Making authentication request to http://128.0.0.27:5000/v2.0/tokens
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 http://109.105.117.27:8386/v1.1/fa1533c611514fc493b8777fc57aac09/clusters -H "User-Agent: python-saharaclient" -H "X-Auth-Token: {SHA1}a710c062d2bef3b2a53aad840cd0583d2ffc6c25"
INFO (connectionpool:203) Starting new HTTP connection (1): 109.105.117.27
DEBUG (shell:716) Unable to establish connection to http://109.105.117.27:8386/v1.1/fa1533c611514fc493b8777fc57aac09/clusters
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/saharaclient/shell.py", line 713, in main
    sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/saharaclient/shell.py", line 653, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/saharaclient/api/shell.py", line 287, in do_cluster_list
    clusters = cs.clusters.list()
  File "/usr/lib/python2.7/site-packages/saharaclient/api/clusters.py", line 58, in list
    return self._list('/clusters%s' % query, 'clusters')
  File "/usr/lib/python2.7/site-packages/saharaclient/api/base.py", line 121, in _list
    resp = self.api.get(url)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/saharaclient/api/client.py", line 46, in request
    return super(HTTPClient, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 382, in request
    resp = send(**kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 426, in _send_request
    raise exceptions.ConnectionRefused(msg)
ConnectionRefused: Unable to establish connection to http://109.105.117.27:8386/v1.1/fa1533c611514fc493b8777fc57aac09/clusters
ERROR: Unable to establish connection to http://109.105.117.27:8386/v1.1/fa1533c611514fc493b8777fc57aac09/clusters

My sahara.conf:

[root@osc-27 ~(keystone_admin)]# grep '^[^#]' /etc/sahara/sahara.conf
[DEFAULT]
debug = False
verbose = True
log_dir = /var/log/sahara
use_syslog = False
notification_topics = notifications
rpc_backend = rabbit
host =128.0.0.27
port = 8386
[cinder]
[conductor]
[database]
connection = mysql://sahara:5ce9e0855eab45bd@128.0.0.27/sahara
[heat]
[keystone]
[keystone_authtoken]
auth_uri=http://128.0.0.27:5000/v2.0
auth_version=v2.0
identity_uri=http://128.0.0.27:35357
admin_user=sahara
admin_password=b078d5e7c53f453b
admin_tenant_name=services
[matchmaker_redis]
[matchmaker_ring]
[neutron]
[nova]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
amqp_durable_queues = False
kombu_reconnect_delay = 1.0
rabbit_host = 128.0.0.27
rabbit_port = 5672
rabbit_hosts = 128.0.0.27:5672
rabbit_use_ssl = False
rabbit_userid = guest
rabbit_password = guest
rabbit_virtual_host = /
rabbit_retry_interval = 1
rabbit_retry_backoff = 2
rabbit_max_retries = 0
rabbit_ha_queues = False
[oslo_policy]
[ssl]
[swift]
[timeouts]

endpoints info:

[root@osc-27 ~(keystone_admin)]# keystone endpoint-list
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
+----------------------------------+-----------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+----------------------------------+
|                id                |   region  |                   publicurl                   |                internalurl                |                  adminurl                 |            service_id            |
+----------------------------------+-----------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+----------------------------------+
| 06185f0f53cb489896f0f0c1d252f107 | RegionOne | http://109.105.117.27:8386/v1.1/%(tenant_id)s | http://128.0.0.27:8386/v1.1/%(tenant_id)s | http://128.0.0.27:8386/v1.1/%(tenant_id)s | d1219061fda8486588dae3be7f9686c1 |
| 34f7c1dce8d54c358933b589e9482b90 | RegionOne |        http://109.105.117.27:5000/v2.0        |        http://128.0.0.27:5000/v2.0        |        http://128.0.0.27:35357/v2.0       | 8ce5e7cfa81048fcaa08470fc1da5a8c |
| 5dc6ae9032a74ce38025d995e06986d0 | RegionOne |           http://109.105.117.27:9696          |           http://128.0.0.27:9696          |           http://128.0.0.27:9696          | f011fdfabd974b1982bc7512b910871d |
| 6088854dbcbe49babc0f7b6efabcf90c | RegionOne |         http://109.105.117.27:8774/v3         |         http://128.0.0.27:8774/v3         |         http://128.0.0.27:8774/v3         | fdfab3c5b0a649728b1b9afb05c32f92 |
| 6657ed9804b3474b89aef3f03e417e09 | RegionOne |  http://109.105.117.27:8774/v2/%(tenant_id)s  |  http://128.0.0.27:8774/v2/%(tenant_id)s  |  http://128.0.0.27:8774/v2/%(tenant_id)s  | 6ec9937ac8b14b5d85ef23061601f148 |
| 88a31f9c7d4f4013bc9acb0d82abfc15 | RegionOne |           http://109.105.117.27:9292          |           http://128.0.0.27:9292          |           http://128.0.0.27:9292          | dc1e5974b9f840bd8240d43599ae2b20 |
| be03ce6652bd4c8e884bb399bd51fbc5 | RegionOne |  http://109.105.117.27:8776/v2/%(tenant_id)s  |  http://128.0.0.27:8776/v2/%(tenant_id)s  |  http://128.0.0.27:8776/v2/%(tenant_id)s  | 4212d1adeb0f4a8fadccabdddd313a45 |
| c0ff28c4fd5f4f0591fff1ae19559e15 | RegionOne |           http://109.105.117.27:8777          |           http://128.0.0.27:8777          |           http://128.0.0.27:8777          | 4f2889583d0c4ac3b22b2dd2350020e0 |
| cce5aa715d7346d2b3e63b5c88e0db1f | RegionOne |  http://109.105.117.27:8776/v1/%(tenant_id)s  |  http://128.0.0.27:8776/v1/%(tenant_id)s  |  http://128.0.0.27:8776/v1/%(tenant_id)s  | 8c7f5cfac4414104a84d515ea34eca16 |
| df66c35996cf4c88a885a396d45b7cd2 | RegionOne |   http://109.105.117.27:8773/services/Cloud   |   http://128.0.0.27:8773/services/Cloud   |   http://128.0.0.27:8773/services/Admin   | 51247b1ad23c4753866ff1656ff2bc80 |
+----------------------------------+-----------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+----------------------------------+

8386 port info:

[root@osc-27 ~(keystone_admin)]# netstat -ntlp | grep 8386
tcp        0      0 128.0.0.27:8386         0.0.0.0:*               LISTEN      17098/python2       
[root@osc-27 ~(keystone_admin)]# ps aux | grep 17098
sahara   17098  0.0  1.1 467912 92684 ?        Ss   04:34   0:01 /usr/bin/python2 /usr/bin/sahara-all --config-file /etc/sahara/sahara.conf