Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-1966

index_registry task hits attributeError trying to use serializers.ValidationError

Details

    • Bug
    • Resolution: Done
    • Minor
    • 2.4
    • Unspecified
    • Backend
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Release Note Not Required

    Description

      Description

       

      The index_registry task if hitting an AttributeError when trying to access serializers.ValidationError because the locally imported 'serializers' is from `galaxy_ng.app.api.ui.serializers` instead of from rest_framework.exceptions or rest_framework.serializers.

       

       

      worker_1       | pulp []: pulpcore.tasking.pulpcore_worker:INFO: Task bef9a416-8a57-4ddf-8b2b-d5ae4021fafc failed (module 'galaxy_ng.app.api.ui.serializers' has no attribute 'ValidationError')
      worker_1       | pulp []: pulpcore.tasking.pulpcore_worker:INFO:   File "/venv/lib64/python3.8/site-packages/pulpcore/tasking/pulpcore_worker.py", line 452, in _perform_task
      worker_1       |     result = func(*args, **kwargs)
      worker_1       | 
      worker_1       |   File "/src/galaxy_ng/galaxy_ng/app/tasks/index_registry.py", line 113, in create_or_update_remote_container
      worker_1       |     except serializers.ValidationError as e:
      worker_1       | 
      

       

       

      Seen running integration tests on local standalone. The error can be seen in the logs.

      1. Dependency Versions

      galaxy_ng 36c40b77eb6f49b97f99b833aa1430dd7a715f61

      Steps to Reproduce

      1. Bring a standalone env  (./compose up)
      2. run integration tests ( HUB_LOCAL=1 ./dev/common/RUN_INTEGRATION.sh)
      3. watch/grep the logs for above traceback

       

      Attachments

        Issue Links

          Activity

            People

              rh-ee-alikins Adrian Likins (Inactive)
              rh-ee-alikins Adrian Likins (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: