Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1670 Errors when installing openATTIC on a plain Ubuntu xenial
  3. OP-1676

500 Internal Server Error when trying to create a volume

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.16
    • Fix Version/s: 2.0.16
    • Component/s: Backend: API
    • Labels:
    • Story Points:
      8

      Description

      {"detail":"Could not resolve URL for hyperlinked relationship using view name \"host-detail\". You may
       have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute
       on this field."}
      
      Internal Server Error: {u'kwargs': {}, u'args': (), u'request': <rest_framework.request.Request object at 0x7fe51daaf8d0>, u'view': <volumes.restapi.VolumeProxyViewSet object at 0x7fe51daaf890>}
      Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/rest_framework/views.py", line 463, in dispatch
          response = handler(request, *args, **kwargs)
        File "/usr/share/openattic/rest/multinode/handlers.py", line 101, in create
          return super(RequestHandlers, self).create(request, args, kwargs)
        File "/usr/share/openattic/volumes/restapi.py", line 447, in create
          return Response(serializer.data, status=status.HTTP_201_CREATED)
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 503, in data
          ret = super(Serializer, self).data
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 239, in data
          self._data = self.to_representation(self.instance)
        File "/usr/share/openattic/rest/utilities.py", line 102, in to_representation
          return self.to_native(instance)
        File "/usr/share/openattic/volumes/restapi.py", line 331, in to_native
          data.update(dict([(key, value) for (key, value) in serializer_instance.data.items()
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 503, in data
          ret = super(Serializer, self).data
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 239, in data
          self._data = self.to_representation(self.instance)
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 472, in to_representation
          ret[field.field_name] = field.to_representation(attribute)
        File "/usr/lib/python2.7/dist-packages/rest_framework/relations.py", line 355, in to_representation
          raise ImproperlyConfigured(msg % self.view_name)
      ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view name "host-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.
      service_command(nagios3): invoking `service nagios3 reload`
      [15532/:1.1344] Executing deferred call to /lvm::lvcreate(dbus.String(u'vg-test02'), dbus.String(u'test'), dbus.Int32(500), dbus.String(u''))
      /usr/share/openattic/lvm/systemapi.py:146: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'.
        get_cache("systemd").delete_many(["/sbin/lvs", "/sbin/vgs"])
      

      Update: This error already appears when browsing the Volumes panel.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              swagner Sebastian Wagner
              Reporter:
              lpaduano Paduano, Laura
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days
                  3d