How to resolve the error "URL: /v2/ansible-automation-platform-21/ee-minimal-rhel8/tags/list not supported." while syncing container image from registry.redhat.io ?

Solution Verified - Updated -

Environment

  • Ansible Automation Platform 2.1
  • Private Automation Hub 4.4

Issue

  • In Private Automation hub GUI, Syncing container image from registry.redhat.io fails with the error URL: /v2/ansible-automation-platform-21/ee-minimal-rhel8/tags/list not supported.

Resolution

  • The issue has been fixed in Ansible Automation Platform 2.2 onwards. Private Automation Hub can be upgraded to fix this issue permanently.

  • For Ansible Automation Platform 2.1, as a workaround edit the URL schema for Remote Registries in Execution Environment page in Private Automation Hub GUI:

    Automation Hub GUI --> Execution Environments --> Remote Registries --> edit the URL schema as "https://registry.redhat.io"
    

Diagnostic Steps

  • The following error message can be seen in Task management in Automation Hub GUI:

    Error message
    
    Description
    URL: /v2/ansible-automation-platform-21/ee-minimal-rhel8/tags/list not supported.
    
    Traceback
    File "/usr/lib/python3.8/site-packages/pulpcore/tasking/pulpcore_worker.py", line 323, in _perform_task
    result = func(*args, **kwargs)
    File "/usr/lib/python3.8/site-packages/pulp_container/app/tasks/synchronize.py", line 44, in synchronize
    return dv.create()
    File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/declarative_version.py", line 151, in create
    loop.run_until_complete(pipeline)
    File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
    File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline
    await asyncio.gather(*futures)
    File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/api.py", line 43, in __call__
    await self.run()
    File "/usr/lib/python3.8/site-packages/pulp_container/app/tasks/sync_stages.py", line 71, in run
    list_downloader = self.remote.get_downloader(url=tag_list_url)
    File "/usr/lib/python3.8/site-packages/pulp_container/app/models.py", line 339, in get_downloader
    return super().get_downloader(remote_artifact=remote_artifact, url=url, **kwargs)
    File "/usr/lib/python3.8/site-packages/pulpcore/app/models/repository.py", line 410, in get_downloader
    return self.download_factory.build(url, **kwargs)
    File "/usr/lib/python3.8/site-packages/pulpcore/download/factory.py", line 174, in build
    raise ValueError(_("URL: {u} not supported.".format(u=url)))
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments