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

ZFS binds system user to Django user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.16
    • Fix Version/s: None
    • Component/s: Backend: Local Storage, CLI
    • Labels:

      Description

      Steps to reproduce:

      1. start xenail Vagrant VM.
      2. Create a ZFS pool
      3. run `oaconfig install`
      Traceback (most recent call last):
        File "manage.py", line 26, in <module>
          execute_from_command_line(sys.argv)
        File "/home/vagrant/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
          utility.execute()
        File "/home/vagrant/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
          self.fetch_command(subcommand).run_from_argv(self.argv)
        File "/home/vagrant/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
          self.execute(*args, **cmd_options)
        File "/home/vagrant/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
          output = self.handle(*args, **options)
        File "/home/vagrant/openattic/backend/sysutils/management/commands/post_install.py", line 49, in handle
          sysutils.models.post_install.send(sender=sysutils.models)
        File "/home/vagrant/env/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 189, in send
          response = receiver(signal=self, sender=sender, **named)
        File "/home/vagrant/openattic/backend/zfs/management/__init__.py", line 120, in update_disksize
          "filesystem": "zfs", "fswarning": 99, "fscritical": 99, "owner": admin
        File "/home/vagrant/openattic/backend/zfs/models.py", line 81, in _create_volume_for_storageobject
          zfs.save()
        File "/home/vagrant/openattic/backend/zfs/models.py", line 129, in save
          self.fs.chown()
        File "/home/vagrant/openattic/backend/volumes/filesystems/filesystem.py", line 189, in chown
          volumes_settings.CHOWN_GROUP)
        File "/home/vagrant/env/local/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
          return self._proxy_method(*args, **keywords)
        File "/home/vagrant/env/local/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
          **keywords)
        File "/home/vagrant/env/local/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
          message, timeout)
      dbus.exceptions.DBusException: org.freedesktop.DBus.Python.SystemError: Traceback (most recent call last):
        File "/home/vagrant/env/local/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb
          retval = candidate_method(self, *args, **keywords)
        File "/home/vagrant/openattic/backend/systemd/plugins.py", line 51, in loggedfunc
          return func(*args, **kwargs)
        File "/home/vagrant/openattic/backend/systemd/plugins.py", line 99, in wrapper
          return meth(self, *args, **kwargs)
        File "/home/vagrant/openattic/backend/volumes/systemapi.py", line 60, in fs_chown
          invoke(cmd)
        File "/home/vagrant/openattic/backend/systemd/procutils.py", line 119, in invoke
          raise SystemError("%s failed: %s" % (cmdline, procerr if procerr else procout))
      SystemError: "/bin/chown" "-R" "openattic:users" "/media/test/.snapshots" failed: /bin/chown: invalid user: 'openattic:users'
      

      IMO, we should not depends on a django user exists as system user.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: