Feature #6007
BE: add logging and service dependency to kraken upstart service
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
History
#1 Updated by Neil Levine over 10 years ago
- Status changed from New to 12
#2 Updated by Neil Levine over 10 years ago
- Target version changed from v.13 to v.14
#3 Updated by Dan Mick over 10 years ago
- Assignee set to Dan Mick
#4 Updated by Ian Colle over 10 years ago
- Status changed from 12 to In Progress
- Assignee changed from Dan Mick to Noah Watkins
#5 Updated by Noah Watkins over 10 years ago
The API endpoint
api/cluster/<id>
now includes the field
last_kraken_error
which will either be `null` if the last time kraken ran there were no problem, or a backtrace from the last error. Such as this timeout talking to the ceph cluster.
Traceback (most recent call last): File "/opt/calamari/webapp/calamari/ceph/management/commands/ceph_refresh.py", line 343, in handle self._handle_cluster(cluster) File "/opt/calamari/webapp/calamari/ceph/management/commands/ceph_refresh.py", line 330, in _handle_cluster adapter.refresh() File "/opt/calamari/webapp/calamari/ceph/management/commands/ceph_refresh.py", line 84, in refresh getattr(self, attr)() File "/opt/calamari/webapp/calamari/ceph/management/commands/ceph_refresh.py", line 182, in _populate_counters 'pool': self._calculate_pool_counters(), File "/opt/calamari/webapp/calamari/ceph/management/commands/ceph_refresh.py", line 194, in _calculate_pool_counters pools = self.client.get_pg_pools() File "/opt/calamari/webapp/calamari/ceph/management/commands/ceph_refresh.py", line 48, in get_pg_pools return self._query("pg/dump?dumpcontents=pools")["output"] File "/opt/calamari/webapp/calamari/ceph/management/commands/ceph_refresh.py", line 27, in _query timeout=self._CLIENT_REQUEST_TIMEOUT) File "/opt/calamari/venv/lib/python2.6/site-packages/requests/api.py", line 55, in get return request('get', url, **kwargs) File "/opt/calamari/venv/lib/python2.6/site-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "/opt/calamari/venv/lib/python2.6/site-packages/requests/sessions.py", line 335, in request resp = self.send(prep, **send_kwargs) File "/opt/calamari/venv/lib/python2.6/site-packages/requests/sessions.py", line 438, in send r = adapter.send(request, **kwargs) File "/opt/calamari/venv/lib/python2.6/site-packages/requests/adapters.py", line 333, in send raise Timeout(e) Timeout: HTTPConnectionPool(host='mira045.front.sepia.ceph.com', port=5000): Request timed out. (timeout=10.0)
#6 Updated by Noah Watkins over 10 years ago
- Status changed from In Progress to Resolved