Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1662

16.04: Internal Server on /api/pools cause of ZFS error

    XMLWordPrintable

    Details

      Description

      > "zfs" "get" "-H" "used" "tank"
      E The ZFS modules are not loaded.
      E Try running '/sbin/modprobe zfs' as root to load them.
      Internal Server Error: {u'kwargs': {}, u'args': (), u'request': <rest_framework.request.Request object at 0x7eff98d09290>, u'view': <volumes.restapi.PoolProxyViewSet object at 0x7eff99838dd0>}
      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 64, in list
          results.append(serializer.data)
        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 157, in to_native
          data.update(self.super_to_native_or_to_representation(obj))
        File "/usr/share/openattic/rest/utilities.py", line 97, in super_to_native_or_to_representation
          return super(ToNativeToRepresentationMixin, self).to_representation(obj)
        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/fields.py", line 1645, in to_representation
          return method(value)
        File "/usr/share/openattic/volumes/restapi.py", line 167, in get_usage
          return obj.get_volumepool_usage()
        File "/usr/share/openattic/volumes/models.py", line 423, in get_volumepool_usage
          self.volumepool_or_none.get_volumepool_usage(stats)
        File "/usr/share/openattic/zfs/models.py", line 89, in get_volumepool_usage
          stats["vp_used"] = self.fs.rootfs_used_megs
        File "/usr/share/openattic/zfs/filesystems.py", line 133, in rootfs_used_megs
          self.zpool.storageobj.name, "used"))[0][2])
        File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
          return self._proxy_method(*args, **keywords)
        File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
          **keywords)
        File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
          message, timeout)
      DBusException: org.freedesktop.DBus.Python.SystemError: Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
          retval = candidate_method(self, *args, **keywords)
        File "/usr/share/openattic/systemd/plugins.py", line 51, in loggedfunc
          return func(*args, **kwargs)
        File "/usr/share/openattic/zfs/systemapi.py", line 46, in zfs_get
          ret, out, err = invoke(args, return_out_err=True, log=False)
        File "/usr/share/openattic/systemd/procutils.py", line 119, in invoke
          raise SystemError("%s failed: %s" % (cmdline, procerr))
      SystemError: "zfs" "get" "-H" "used" "tank" failed: The ZFS modules are not loaded.
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            swagner Sebastian Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: