[Openstack-operators] Connection/authentication problem using Swift command-line-tool (time difference).

Salman Toor salman.toor at it.uu.se
Wed Mar 12 11:07:50 UTC 2014


Hi, 

I am trying to deploy SWIFT with the following versions of rpm: 

openstack-swift-1.10.0-2.el6.noarch
openstack-swift-container-1.10.0-2.el6.noarch
openstack-swift-plugin-swift3-1.7-1.el6.noarch
openstack-swift-proxy-1.10.0-2.el6.noarch
openstack-swift-object-1.10.0-2.el6.noarch
openstack-swift-account-1.10.0-2.el6.noarch

Deployment seems to be working fine but the test commends are not. 

Following is the schema 

1- proxy-server + storage ->  mist-os.xxx.xx
2 - storage ->  mist1.xxx.xx
3 - keystone -> mist.xxx.xx

All the services are running and no service level error in the logs. 

using an ordinary account (myone)

# swift stat
[Errno 111] Connection refused

[root at mist openstack-user]# clock
Wed Mar 12 11:50:36 2014  -0.609708 seconds
# swift --debug stat
REQ: curl -i -X POST http://mist.xxx.xx:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
DEBUG:keystoneclient.httpclient:REQ: curl -i -X POST http://mist.xxx.xx:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
REQ BODY: {"auth": {"tenantName": "Local-Experiments", "passwordCredentials": {"username": "myone", "password": "myone"}}}

DEBUG:keystoneclient.httpclient:REQ BODY: {"auth": {"tenantName": "Local-Experiments", "passwordCredentials": {"username": "myone", "password": "myone"}}}

INFO:urllib3.connectionpool:Starting new HTTP connection (1): mist.xxx.xx
DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 6628
RESP: [200] {'date': 'Wed, 12 Mar 2014 10:51:16 GMT', 'content-type': 'application/json', 'content-length': '6628', 'vary': 'X-Auth-Token'}

DEBUG:keystoneclient.httpclient:REQ BODY: {"auth": {"tenantName": "Local-Experiments", "passwordCredentials": {"username": "sztoor", "password": "sztoor"}}}

INFO:urllib3.connectionpool:Starting new HTTP connection (1): mist.xxx.xx
DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 6628
RESP: [200] {'date': 'Wed, 12 Mar 2014 10:51:16 GMT', 'content-type': 'application/json', 'content-length': '6628', 'vary': 'X-Auth-Token'}
RESP BODY: {"access": {"token": {"issued_at": "2014-03-12T10:51:16.248840", "expires": "2014-03-13T10:51:16Z", "id": "--- XXXXX ----", "tenant": {"description": null, "enabled": true, "id": "32accaa0a629423395f7003902795ee2", "name": "Local-Experiments"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://mist.xxx.xx:8774/v2/32accaa0a629423395f7003902795ee2", "region": "regionOne", "internalURL": "http://mist.xxx.xx:8774/v2/32accaa0a629423395f7003902795ee2", "id": "196f3b8321c644fa8a60743813d02567", "publicURL": "http://mist.xxx.xx:8774/v2/32accaa0a629423395f7003902795ee2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:8776/v2/32accaa0a629423395f7003902795ee2", "region": "regionOne", "internalURL": "http://mist.xxx.xx:8776/v2/32accaa0a629423395f7003902795ee2", "id": "1a60ea81e99d47fe897656a13f605f1b", "publicURL": "http://mist.xxx.xx:8776/v2/32accaa0a629423395f7003902795ee2"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:9292", "region": "regionOne", "internalURL": "http://mist.xxx.xx:9292", "id": "1a1c7b415d184462ad5d1ca51859d5be", "publicURL": "http://mist.xxx.xx:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:8776/v1/32accaa0a629423395f7003902795ee2", "region": "regionOne", "internalURL": "http://mist.xxx.xx:8776/v1/32accaa0a629423395f7003902795ee2", "id": "0cea17ee4a654a5b9e5b331321f0a2da", "publicURL": "http://mist.xxx.xx:8776/v1/32accaa0a629423395f7003902795ee2"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:8080", "region": "regionOne", "internalURL": "http://mist.xxx.xx:8080/v1/AUTH_32accaa0a629423395f7003902795ee2", "id": "059911754bab471c92351c0e1844c7a6", "publicURL": "http://mist.xxx.xx:8080/v1/AUTH_32accaa0a629423395f7003902795ee2"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:35357/v2.0", "region": "regionOne", "internalURL": "http://mist.xxx.xx:5000/v2.0", "id": "3cb9c393a893499dbcea7bf85db96375", "publicURL": "http://mist.xxx.xx:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "sztoor", "roles_links": [], "id": "e8be74e1714e41d0847fec51aa466a50", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "sztoor"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "5ccc6a705ca74c81812e77b2694ea12c"]}}}

DEBUG:keystoneclient.httpclient:RESP: [200] {'date': 'Wed, 12 Mar 2014 10:51:16 GMT', 'content-type': 'application/json', 'content-length': '6628', 'vary': 'X-Auth-Token'}
RESP BODY: {"access": {"token": {"issued_at": "2014-03-12T10:51:16.248840", "expires": "2014-03-13T10:51:16Z", "id": "---- XXXX ----", "tenant": {"description": null, "enabled": true, "id": "32accaa0a629423395f7003902795ee2", "name": "Local-Experiments"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://mist.xxx.xx:8774/v2/32accaa0a629423395f7003902795ee2", "region": "regionOne", "internalURL": "http://mist.xxx.xx:8774/v2/32accaa0a629423395f7003902795ee2", "id": "196f3b8321c644fa8a60743813d02567", "publicURL": "http://mist.xxx.xx:8774/v2/32accaa0a629423395f7003902795ee2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:8776/v2/32accaa0a629423395f7003902795ee2", "region": "regionOne", "internalURL": "http://mist.xxx.xx:8776/v2/32accaa0a629423395f7003902795ee2", "id": "1a60ea81e99d47fe897656a13f605f1b", "publicURL": "http://mist.xxx.xx:8776/v2/32accaa0a629423395f7003902795ee2"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:9292", "region": "regionOne", "internalURL": "http://mist.xxx.xx:9292", "id": "1a1c7b415d184462ad5d1ca51859d5be", "publicURL": "http://mist.xxx.xx:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:8776/v1/32accaa0a629423395f7003902795ee2", "region": "regionOne", "internalURL": "http://mist.xxx.xx:8776/v1/32accaa0a629423395f7003902795ee2", "id": "0cea17ee4a654a5b9e5b331321f0a2da", "publicURL": "http://mist.xxx.xx:8776/v1/32accaa0a629423395f7003902795ee2"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:8080", "region": "regionOne", "internalURL": "http://mist.xxx.xx:8080/v1/AUTH_32accaa0a629423395f7003902795ee2", "id": "059911754bab471c92351c0e1844c7a6", "publicURL": "http://mist.xxx.xx:8080/v1/AUTH_32accaa0a629423395f7003902795ee2"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://mist.xxx.xx:35357/v2.0", "region": "regionOne", "internalURL": "http://mist.xxx.xx:5000/v2.0", "id": "3cb9c393a893499dbcea7bf85db96375", "publicURL": "http://mist.xxx.xx:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "sztoor", "roles_links": [], "id": "e8be74e1714e41d0847fec51aa466a50", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "sztoor"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "5ccc6a705ca74c81812e77b2694ea12c"]}}}

DEBUG:iso8601.iso8601:Parsed 2014-03-13T10:51:16Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'10', 'tz_hour': None, 'month': u'03', 'timezone': u'Z', 'second': u'16', 'tz_minute': None, 'year': u'2014', 'separator': u'T', 'day': u'13', 'minute': u'51'} with default timezone <iso8601.iso8601.Utc object at 0x1baadd0>
DEBUG:iso8601.iso8601:Got u'2014' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'03' for 'month' with default None
DEBUG:iso8601.iso8601:Got u'13' for 'day' with default None
DEBUG:iso8601.iso8601:Got u'10' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'51' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'16' for 'second' with default None
INFO:urllib3.connectionpool:Starting new HTTP connection (1): mist.xxx.xx
INFO:urllib3.connectionpool:Starting new HTTP connection (1): mist.xxx.xx
INFO:urllib3.connectionpool:Starting new HTTP connection (1): mist.xxx.xx
INFO:urllib3.connectionpool:Starting new HTTP connection (1): mist.xxx.xx
INFO:urllib3.connectionpool:Starting new HTTP connection (1): mist.xxx.xx
INFO:urllib3.connectionpool:Starting new HTTP connection (1): mist.xxx.xx
ERROR:swiftclient:[Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 1192, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 460, in head_account
    conn.request(method, parsed.path, '', headers)
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 187, in request
    files=files, **self.requests_args)
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 176, in _request
    return requests.request(*arg, **kwarg)
  File "/usr/lib/python2.6/site-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.6/site-packages/requests/sessions.py", line 279, in request
    resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
  File "/usr/lib/python2.6/site-packages/requests/sessions.py", line 374, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.6/site-packages/requests/adapters.py", line 206, in send
    raise ConnectionError(sockerr)
ConnectionError: [Errno 111] Connection refused
[Errno 111] Connection refused

I think one of the problem is the time difference. There is of one hour difference.  All the server are running ntpd and the clocks are synchronize.. Have no clue from where this new time is coming.  All the other services are fine and clients (glance, nova, cinder) returning correct timings ... 

For example 

---------------------------------------
# glance  --debug image-list 

HTTP/1.1 200 OK
date: Wed, 12 Mar 2014 11:05:05 GMT
content-length: 927
content-type: application/json; charset=UTF-8
x-openstack-request-id: req-29190e4f-23fa-45d2-a1e0-711687ebcae3

{"images": [{"status": "active", "name": "CirrOS-NEW 0.3.1", "deleted": false, "container_format": "bare", "created_at": "2014-03-05T11:47:33", "disk_format": "qcow2", "updated_at": "2014-03-05T11:47:34", "min_disk": 0, "protected": false, "id": "93b5efe1-ac39-4070-bd47-557bd554c228", "min_ram": 0, "checksum": "d972013792949d0d3ba628fbe8685bce", "owner": "e8fe1cc1567d4cb2bf50a24b0174c1c4", "is_public": true, "deleted_at": null, "properties": {}, "size": 13147648}, {"status": "active", "name": "Ubuntu 12.04 LTS", "deleted": false, "container_format": "bare", "created_at": "2014-03-06T11:23:24", "disk_format": "qcow2", "updated_at": "2014-03-11T14:26:05", "min_disk": 0, "protected": false, "id": "f060e305-163f-4e1c-b7ea-e79c4d876890", "min_ram": 0, "checksum": "73c5b7fa57ba32092e80e172b384ff6c", "owner": "f0bc8ee49a7f4eccb0f5945f409863b8", "is_public": true, "deleted_at": null, "properties": {}, "size": 258015744}]}
---------------------------------------


Can anybody please give me a hint that what causes this problem?

Thanks in advance. 

Regards..
Salman. 





Salman Toor, PhD
salman.toor at it.uu.se



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20140312/d35f2b30/attachment.html>


More information about the OpenStack-operators mailing list