Project

General

Profile

Bug #7979

500 Error: /api/v1/cluster/<fsid>/pool

Added by Yan-Fa Li over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Backend (REST API)
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Was bringing up a new Vagrant and got the following error when the dashboard loaded:

2014-04-04 01:32:50,481 - ERROR - django.request Internal Server Error: /api/v1/cluster/7c15b201-056a-4daa-afad-bc34ca72bd9d/pool
Traceback (most recent call last):
File "/home/vagrant/calamari/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/vagrant/calamari/env/local/lib/python2.7/site-packages/rest_framework/viewsets.py", line 78, in view
return self.dispatch(request, *args, **kwargs)
File "/home/vagrant/calamari/rest-api/calamari_rest/views/rpc_view.py", line 72, in dispatch
return super(RPCView, self).dispatch(request, *args, **kwargs)
File "/home/vagrant/calamari/env/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(*args, **kwargs)
File "/home/vagrant/calamari/env/local/lib/python2.7/site-packages/rest_framework/views.py", line 399, in dispatch
response = self.handle_exception(exc)
File "/home/vagrant/calamari/rest-api/calamari_rest/views/rpc_view.py", line 89, in handle_exception
return super(RPCView, self).handle_exception(exc)
File "/home/vagrant/calamari/env/local/lib/python2.7/site-packages/rest_framework/views.py", line 396, in dispatch
response = handler(request, *args, **kwargs)
File "/home/vagrant/calamari/rest-api/calamari_rest/views/v1.py", line 416, in list
pools = [self.pool_object(p, cluster) for p in self.client.list(fsid, POOL, {})]
File "/home/vagrant/calamari/rest-api/calamari_rest/views/v1.py", line 410, in pool_object
'used_objects': get_latest_graphite("ceph.cluster.%s.pool.%s.num_objects" % (cluster['fsid'], pool_data['pool'])),
KeyError: 'fsid'

History

#1 Updated by Yan-Fa Li over 7 years ago

Branch master, commit 5a8d62107e7a68b646bdd882ec943e8b0f78207f

#2 Updated by John Spray over 7 years ago

  • Status changed from New to Resolved

Weird that I didn't notice that. Sorry - fixed on master.

commit 2cd0332763e9d37edd93b6023326193de6bfcbca
Author: John Spray <john.spray@inktank.com>
Date:   Fri Apr 4 11:51:08 2014 +0100

    calamari_rest: Fix v1.pools

Also available in: Atom PDF