[Pkg-linaro-lava-devel] Bug#984496: lava-server: fails to install: TypeError: 'Meta.fields' must not contain non-model field names: group migration

Andreas Beckmann anbe at debian.org
Thu Mar 4 08:04:47 GMT 2021


Package: lava-server
Version: 2020.12-2
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.

>From the attached log (scroll to the bottom...):

  Setting up lava-server (2020.12-2) ...
  adduser: Warning: The home directory `/var/lib/lava-server/home/' does not belong to the user you are currently creating.
  Updating configuration:
  * generate SECRET_KEY
  * generate DATABASES
  Run fixups:
  * fix permissions:
    - /var/lib/lava-server/home/
    - /var/lib/lava-server/default/
    - /var/lib/lava-server/default/media/
    - /var/lib/lava-server/default/media/job-output/
    - /etc/lava-server/dispatcher-config/
    - /etc/lava-server/dispatcher.d/
    - /var/lib/lava-server/default/media/job-output/2017/
    - /etc/lava-server/dispatcher-config/devices/
    - /etc/lava-server/dispatcher-config/devices/*
    - /etc/lava-server/dispatcher-config/device-types/
    - /etc/lava-server/dispatcher-config/device-types/*
    - /etc/lava-server/dispatcher-config/health-checks/
    - /etc/lava-server/dispatcher-config/health-checks/*
  * drop duplicated templates:
  * fix permissions:
    - /etc/lava-server/settings.conf
    - /etc/lava-server/instance.conf
    - /var/log/lava-server/
    - /var/log/lava-server/*
    - /etc/lava-server/secret_key.conf
  Create database:
  /var/run/postgresql:5432 - accepting connections
  psql -q
  lava-server manage migrate --noinput --fake-initial
  Traceback (most recent call last):
    File "/usr/bin/lava-server", line 68, in <module>
      main()
    File "/usr/bin/lava-server", line 64, in main
      execute_from_command_line([sys.argv[0]] + options.command)
    File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
      utility.execute()
    File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 375, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 323, in run_from_argv
      self.execute(*args, **cmd_options)
    File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 361, in execute
      self.check()
    File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 387, in check
      all_issues = self._run_checks(
    File "/usr/lib/python3/dist-packages/django/core/management/commands/migrate.py", line 65, in _run_checks
      issues.extend(super()._run_checks(**kwargs))
    File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 377, in _run_checks
      return checks.run_checks(**kwargs)
    File "/usr/lib/python3/dist-packages/django/core/checks/registry.py", line 72, in run_checks
      new_errors = check(app_configs=app_configs)
    File "/usr/lib/python3/dist-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
      all_namespaces = _load_all_namespaces(resolver)
    File "/usr/lib/python3/dist-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
      url_patterns = getattr(resolver, 'url_patterns', [])
    File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 584, in url_patterns
      patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 577, in urlconf_module
      return import_module(self.urlconf_name)
    File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
    File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 790, in exec_module
    File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
    File "/usr/lib/python3/dist-packages/lava_server/urls.py", line 149, in <module>
      include("lava_rest_app.urls"),
    File "/usr/lib/python3/dist-packages/django/urls/conf.py", line 34, in include
      urlconf_module = import_module(urlconf_module)
    File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
    File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 790, in exec_module
    File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
    File "/usr/lib/python3/dist-packages/lava_rest_app/urls.py", line 22, in <module>
      from lava_rest_app.base.views import LavaObtainAuthToken
    File "/usr/lib/python3/dist-packages/lava_rest_app/base/views.py", line 56, in <module>
      from lava_rest_app import filters
    File "/usr/lib/python3/dist-packages/lava_rest_app/filters.py", line 53, in <module>
      class UserFilter(filters.FilterSet):
    File "/usr/lib/python3/dist-packages/rest_framework_filters/filterset.py", line 38, in __new__
      cls.expand_auto_filters(new_class)
    File "/usr/lib/python3/dist-packages/rest_framework_filters/filterset.py", line 66, in expand_auto_filters
      for gen_name, gen_f in new_class.get_filters().items():
    File "/usr/lib/python3/dist-packages/django_filters/filterset.py", line 358, in get_filters
      raise TypeError(
  TypeError: 'Meta.fields' must not contain non-model field names: group
  migration
  dpkg: error processing package lava-server (--configure):
   installed lava-server package post-installation script subprocess returned error exit status 1
  Processing triggers for ca-certificates (20210119) ...
  Updating certificates in /etc/ssl/certs...
  0 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...
  done.
  Errors were encountered while processing:
   lava-server


cheers,

Andreas


More information about the Pkg-linaro-lava-devel mailing list