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

indexing execution environments from redhat registry fails

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • Unspecified
    • Backend, Pulp
    • None
    • Moderate

      Description

      When trying to index the registry.redhat.io registry, the task fails with traceback:

        File "/venv/lib64/python3.11/site-packages/pulpcore/tasking/tasks.py", line 66, in _execute_task
          result = func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
        File "/src/galaxy_ng/galaxy_ng/app/tasks/index_registry.py", line 146, in index_execution_environments_from_redhat_registry
          download_result = downloader.fetch()
                            ^^^^^^^^^^^^^^^^^^
        File "/venv/lib64/python3.11/site-packages/pulpcore/download/base.py", line 185, in fetch
          done, _ = asyncio.get_event_loop().run_until_complete(asyncio.wait([self.run()]))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.11/asyncio/base_events.py", line 653, in run_until_complete
          return future.result()
                 ^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.11/asyncio/tasks.py", line 415, in wait
          raise TypeError("Passing coroutines is forbidden, use tasks 
      explicitly.") 

      The issue might stem from the updated asyncio library in python 3.11. According to python docs: "Changed in version 3.11: Passing coroutine objects to wait() directly is forbidden."

      Key Dependency Versions

      python 3.11

      pulpcore 3.28.3

      Steps to Reproduce

      1) Spin up galaxy_ng using standalone profile with UI

      2) Add a remote registry with URL registry.redhat.io

      3) Attempt to index execution environments of the registry (task fails)

              Unassigned Unassigned
              rh-ee-etracey Eamon Tracey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: