swift check cluster health

asked 2014-05-12 08:50:44 -0500

Sapos gravatar image

Can't use swift-dispersion tools for cluster health check. Conf file crated:

[root@swift-proxy01 swift]# cat /etc/swift/dispersion.conf
[dispersion]
auth_url = http://192.168.1.29/auth/v2.0
auth_user = admin:swift
auth_key = swift
endpoint_type = http://192.168.1.30/v1/AUTH_18c35fb509b84966aa7e5734eebdf8fb
swift_dir = /etc/swift

When I'm trying use swift-dispersion-populate command I've got error:

[root@swift-proxy01 swift]# swift-dispersion-populate
Traceback (most recent call last):
  File "/usr/bin/swift-dispersion-populate", line 133, in <module>
    insecure=insecure)
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 317, in get_auth
    insecure=insecure)
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 227, in get_auth_1_0
    {'X-Auth-User': user, 'X-Auth-Key': key})
  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)
requests.exceptions.ConnectionError: [Errno 111] ECONNREFUSED

In logs I see this one:

May 12 17:43:48 swift-proxy01 abrt: detected unhandled Python exception in '/usr/bin/swift-dispersion-populate'
May 12 17:43:48 swift-proxy01 abrtd: New client connected
May 12 17:43:48 swift-proxy01 abrtd: Directory 'pyhook-2014-05-12-17:43:48-32321' creation detected
May 12 17:43:48 swift-proxy01 abrt-server[32328]: Saved Python crash dump of pid 32321 to /var/spool/abrt/pyhook-2014-05-12-17:43:48-32321
May 12 17:43:48 swift-proxy01 abrtd: Package 'openstack-swift' isn't signed with proper key
May 12 17:43:48 swift-proxy01 abrtd: 'post-create' on '/var/spool/abrt/pyhook-2014-05-12-17:43:48-32321' exited with 1
May 12 17:43:48 swift-proxy01 abrtd: Corrupted or bad directory '/var/spool/abrt/pyhook-2014-05-12-17:43:48-32321', deleting

What am I doing wrong?

Thanks!

edit retag flag offensive close merge delete

Comments

Hi, try to generate the auth_token first, then save this generated token to dispersion.conf.Then try running the commands to check cluster health.

Praveen N gravatar imagePraveen N ( 2015-02-26 05:50:06 -0500 )edit