[Pkg-linaro-lava-devel] Bug#847277: lava-server: fails to upgrade from jessie to stretch

Andreas Beckmann anbe at debian.org
Wed Feb 8 13:48:21 UTC 2017


Followup-For: Bug #847277
Control: found -1 2016.12-1
Control: tag -1 - unreproducible
Control: severity -1 serious
Control: retitle -1 lava-server: fails to upgrade from jessie to stretch: InconsistentMigrationHistory: Migration lava_scheduler_app.0001_initial is applied before its dependency linaro_django_xmlrpc.0001_initial on database 'default'

The problem is also reproducible on a plain jessie->stretch upgrade:

https://piuparts.debian.org/jessie2stretch/fail/lava-server_2016.12-1.log

[...]
  Setting up lava-server (2016.12-1) ...
  Installing new version of config file /etc/apache2/sites-available/lava-server.conf ...
  Installing new version of config file /etc/init.d/lava-server ...
  Installing new version of config file /etc/lava-server/settings.conf ...
   lavaserver
   lavaserver
   devel
   devel
  System check identified some issues:
  
  WARNINGS:
  va_scheduler_app.Notification.job_status_trigger: (fields.W901) CommaSeparatedIntegerField has been deprecated. Support for it (except in historical migrations) will be removed in Django 2.0.
  	HINT: Use CharField(validators=[validate_comma_separated_integer_ceback (most recent call last):
    File "/usr/bin/lava-server", line 78, in <module>
      main()
    File "/usr/bin/lava-server", line 74, in main
      execute_from_command_line(django_options)
    File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
      utility.execute()
    File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 359, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 294, in run_from_argv
      self.execute(*args, **cmd_options)
    File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 345, in execute
      output = self.handle(*args, **options)
    File "/usr/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 86, in handle
      executor.loader.check_consistent_history(connection)
    File "/usr/lib/python2.7/dist-packages/django/db/migrations/loader.py", line 292, in check_consistent_history
      connection.alias,
  django.db.migrations.exceptions.InconsistentMigrationHistory: Migration lava_scheduler_app.0001_initial is applied before its dependency linaro_django_xmlrpc.0001_initial on database 'default'.
  dpkg: error processing package lava-server (--configure):
   subprocess installed post-installation script returned error exit status 1
  Processing triggers for python-support (1.0.15) ...
  Processing triggers for libc-bin (2.24-8) ...
  Processing triggers for systemd (232-14) ...
  Processing triggers for ca-certificates (20161130) ...
  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
list]) instead.

I can easily provide more debug information from the chroot after the
failure, just tell me what you need (and how to acquire it).


Andreas


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