Project

Profile

Help

Issue #8744

closed

Pulp3 database migration broken with newly release click 8

Added by equipe_serveurs@exane.com over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

With the release of click 8.0.0 the 13/05, I get the following stack trace while migrating the database. Rolling back to 7.x version solves the issue.

Cmd Run: pulpcore-manager migrat

Stack Trace:

Traceback (most recent call last):
  File "/srv/pulp/app/.venv/bin/pulpcore-manager", line 8, in <module>
    sys.exit(manage())
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/app/manage.py", line 11, in manage
    execute_from_command_line(sys.argv)
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 357, in execute
    django.setup()
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/django/apps/registry.py", line 122, in populate
    app_config.ready()
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/app/apps.py", line 94, in ready
    self.import_viewsets()
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/app/apps.py", line 127, in import_viewsets
    from pulpcore.app.viewsets import NamedModelViewSet
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/app/viewsets/__init__.py", line 1, in <module>
    from .base import (  # noqa
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/app/viewsets/base.py", line 17, in <module>
    from pulpcore.app import tasks
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/app/tasks/__init__.py", line 5, in <module>
    from .importer import pulp_import  # noqa
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/app/tasks/importer.py", line 37, in <module>
    from pulpcore.tasking.tasks import enqueue_with_reservation
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/tasking/tasks.py", line 21, in <module>
    from pulpcore.tasking import connection, util
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/pulpcore/tasking/connection.py", line 1, in <module>
    from rq.cli.helpers import get_redis_from_config
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/rq/cli/__init__.py", line 2, in <module>
    from .cli import main
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/rq/cli/cli.py", line 98, in <module>
    @pass_cli_config
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/rq/cli/cli.py", line 77, in pass_cli_config
    func = option(func)
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/click/decorators.py", line 247, in decorator
    _param_memo(f, OptionClass(param_decls, **option_attrs))
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/click/core.py", line 2467, in __init__
    super().__init__(param_decls, type=type, multiple=multiple, **attrs)
  File "/srv/pulp/app/.venv/lib/python3.6/site-packages/click/core.py", line 2108, in __init__
    ) from None
ValueError: 'default' must be a list when 'multiple' is true.


Related issues

Related to Pulp - Issue #8743: Ansible playbooks fail on database migrations due to click versionCLOSED - NOTABUGActions

Also available in: Atom PDF