Project

General

Profile

Bug #9047

rest-api: new modules for crush_map support need adding to setup.py

Added by Dan Mick about 7 years ago. Updated about 7 years ago.

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

0%

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

Description

External user trying to build/use runs into this traceback; the diagnosis is that rest-api/setup.py needs to change to add renderers and parsers as modules:


2014-08-07 13:41:13,948 - ERROR - django.request Internal Server Error: /
Traceback (most recent call last):
  File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 103, in get_response
    resolver_match = resolver.resolve(request.path_info)
  File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 319, in resolve
    for pattern in self.url_patterns:
  File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 347, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/opt/calamari/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_web-0.1-py2.7.egg/calamari_web/urls.py", line 20, in <module>
    url(r'^api/v1/', include('calamari_rest.urls.v1')),
  File "/opt/calamari/venv/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 25, in include
    urlconf_module = import_module(urlconf_module)
  File "/opt/calamari/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/urls/v1.py", line 2, in <module>
    from rest_framework import routers
  File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/routers.py", line 21, in <module>
    from rest_framework import views
  File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/views.py", line 81, in <module>
    class APIView(View):
  File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/views.py", line 84, in APIView
    renderer_classes = api_settings.DEFAULT_RENDERER_CLASSES
  File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/settings.py", line 198, in __getattr__
    val = perform_import(val, attr)
  File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/settings.py", line 150, in perform_import
    return [import_from_string(item, setting_name) for item in val]
  File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/settings.py", line 166, in import_from_string
    raise ImportError(msg)
ImportError: Could not import 'calamari_rest.renderers.CalamariBrowsableAPIRenderer' for API setting 'DEFAULT_RENDERER_CLASSES'. ImportError: No module named renderers.

Associated revisions

Revision e806202a (diff)
Added by Christina Meno about 7 years ago

rest_api: add modules to setup.py

Fixes: #9047
Signed-off-by: Gregory Meno <>

History

#1 Updated by Christina Meno about 7 years ago

  • Status changed from 12 to In Progress

#2 Updated by Christina Meno about 7 years ago

  • Status changed from In Progress to Fix Under Review

#3 Updated by Christina Meno about 7 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF