Wednesday, June 25, 2014

OpenStack : Swift : restart swift

When I clicked container at OpenStack dashboard, I got the following error


I tried run debug option with swift command

$ swift --debug list
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://192.168.1.188:5000/v2.0/tokens -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin",



:
:
:
:
:

:
:
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.188
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.188
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.188
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.188
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.188
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.188
ERROR:swiftclient:[Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 1208, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 448, in get_account
    conn.request(method, full_path, '', headers)
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 213, in request
    files=files, **self.requests_args)
  File "/usr/lib/python2.6/site-packages/swiftclient/client.py", line 181, in _request
    return self.request_session.request(*arg, **kwarg)
  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 restarted swift by running the following

# swift-init restart all
Signal container-updater  pid: 4560  signal: 15
Signal account-auditor  pid: 4481  signal: 15
Signal object-replicator  pid: 4582  signal: 15
Signal proxy-server  pid: 4600  signal: 15
No proxy-server running
Signal container-replicator  pid: 4547  signal: 15
Signal object-auditor  pid: 4575  signal: 15
No object-expirer running
Signal container-auditor  pid: 4529  signal: 15
Signal container-server  pid: 4514  signal: 15
No container-server running
Signal account-server  pid: 4474  signal: 15
No account-server running
Signal account-reaper  pid: 4499  signal: 15
No container-sync running
Signal account-replicator  pid: 4506  signal: 15
Signal object-updater  pid: 4593  signal: 15
Signal object-server  pid: 4567  signal: 15
No object-server running
container-updater (4560) appears to have stopped
account-auditor (4481) appears to have stopped
object-replicator (4582) appears to have stopped
container-replicator (4547) appears to have stopped
object-auditor (4575) appears to have stopped
container-auditor (4529) appears to have stopped
account-replicator (4506) appears to have stopped
account-reaper (4499) appears to have stopped
object-updater (4593) appears to have stopped
Starting container-updater...(/etc/swift/container-server.conf)
Starting account-auditor...(/etc/swift/account-server.conf)
Starting object-replicator...(/etc/swift/object-server.conf)
Starting proxy-server...(/etc/swift/proxy-server.conf)
Starting container-replicator...(/etc/swift/container-server.conf)
Starting object-auditor...(/etc/swift/object-server.conf)
Starting object-expirer...(/etc/swift/object-expirer.conf)
Starting container-auditor...(/etc/swift/container-server.conf)
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
Starting account-reaper...(/etc/swift/account-server.conf)
Starting container-sync...(/etc/swift/container-server.conf)
Starting account-replicator...(/etc/swift/account-server.conf)
Starting object-updater...(/etc/swift/object-server.conf)
Starting object-server...(/etc/swift/object-server.conf)
No handlers could be found for logger "swift"


Now log back into dashboard and click "Object Store" -> containers again



swift list is also running fine now.

No comments:

Post a Comment