Project

Profile

Help

Issue #8895

closed

django.core.exceptions.FieldError: Unsupported lookup 'resource' for ArrayField or join on the field not permitted.

Added by ttereshc over 3 years ago. Updated over 3 years ago.

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

Description

Trying to run a migration with the future pulpcore 3.14 fails in the following way pulpcore 3.14 will deprecate it and 3.15 will remove it.

This needs to be fixed for 3.15.

pulp [d42e1bccd6444d1e9992fd63aadf7625]: django.request:ERROR: Internal Server Error: /pulp/api/v3/migration-plans/5172b292-c16d-45d0-80cb-4577328dbd7f/run/
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py", line 125, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pulp_2to3_migration/app/viewsets.py", line 94, in run
    if is_migration_plan_running():
  File "/usr/local/lib/python3.6/site-packages/pulp_2to3_migration/app/viewsets.py", line 47, in is_migration_plan_running
    reserved_resources_record__resource='pulp_2to3_migration')
  File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 892, in filter
    return self._filter_or_exclude(False, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 910, in _filter_or_exclude
    clone.query.add_q(Q(*args, **kwargs))
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1290, in add_q
    clause, _ = self._add_q(q_object, self.used_aliases)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1318, in _add_q
    split_subq=split_subq, simple_col=simple_col,
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1251, in build_filter
    condition = self.build_lookup(lookups, col, value)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1110, in build_lookup
    lhs = self.try_transform(lhs, lookup_name)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1151, in try_transform
    "permitted%s" % (name, output_field.__name__, suggestion)
django.core.exceptions.FieldError: Unsupported lookup 'resource' for ArrayField or join on the field not permitted.
Actions #1

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 98 to Sprint 99
Actions #2

Updated by ttereshc over 3 years ago

  • Description updated (diff)
  • Status changed from ASSIGNED to NEW
  • Assignee deleted (ttereshc)
Actions #3

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 99 to Sprint 100
Actions #4

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 100 to Sprint 101
Actions #5

Updated by ipanova@redhat.com over 3 years ago

  • Sprint changed from Sprint 101 to Sprint 102
Actions #6

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 102 to Sprint 103
Actions #7

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 103 to Sprint 104
Actions #8

Updated by ttereshc over 3 years ago

  • Assignee set to ttereshc

Added by ttereshc over 3 years ago

Revision 9f0babc8 | View on GitHub

Make the plugin compatible with pulpcore 3.14+

New tasking system changes some fields a bit.

closes #8895 https://pulp.plan.io/issues/8895

Added by ttereshc over 3 years ago

Revision 9f0babc8 | View on GitHub

Make the plugin compatible with pulpcore 3.14+

New tasking system changes some fields a bit.

closes #8895 https://pulp.plan.io/issues/8895

Added by ttereshc over 3 years ago

Revision 9f0babc8 | View on GitHub

Make the plugin compatible with pulpcore 3.14+

New tasking system changes some fields a bit.

closes #8895 https://pulp.plan.io/issues/8895

Actions #9

Updated by ttereshc over 3 years ago

  • Status changed from NEW to MODIFIED
Actions #10

Updated by ttereshc over 3 years ago

  • Sprint/Milestone set to 0.14.0
Actions #11

Updated by pulpbot over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF