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

Incorrect Mapping for role namespaces

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • Backend
    • None

      https://forum.ansible.com/t/namespace-issue-with-new-galaxy-ansible-com/1325/5

      Problem Description

      Some Role namespaces have been synced to the wrong namespace.

      https://forum.ansible.com/t/new-ansible-galaxy/1155/10

      bittner[Peter Bittner|https://forum.ansible.com/u/bittner]
       
       
      We had some things (namespaces, roles, collections) corrected - probably manually - on the legacy Galaxy instance, in the past (see GitHub ansible/galaxy#2535 2). It looks like the data was attempted to migrate, but the - presumably manual - corrections seem to have caused duplicate namespaces and roles.

      See, for example, the role painless.software I maintain:

      Note that the content on the role page of the new Galaxy instance points to a non-existing repository on GitHub, because it assumes the 1:1 mapping of Ansible namespace and GitHub user or org name.

      Note that I do not own the “painless” user or org name on GitHub.

      The resources now found on Galaxy are:

      Sorry for the plain URLs; as a new user I’m not allowed to have more than 2 URLs in a post.

      Also, as a consequence, my users cannot install the painless.software role anymore; it must now be called painless-software.software for the installation to succeed: 

      {{$ ansible-galaxy install painless.softwareStarting galaxy role install process

      • downloading role 'software', owned by painless
      • downloading role from https://github.com/painless/ansible-role-software/archive/master.tar.gz
        [ERROR]: failed to download the file: HTTP Error 404: Not Found
        [WARNING]: - painless.software was NOT installed successfully.
        ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.}}
        Will this be corrected in an already-planned cleanup task?

      Should users report such discrepancies?

      https://galaxy.ansible.com/ui/task/018af0d4-7664-7054-9169-dca21e3d4945/

      Descriptiongit clone for https://github.com/do1jlr/ansible_role_gopass failed
      TracebackFile "/venv/lib64/python3.11/site-packages/pulpcore/tasking/tasks.py", line 66, in _execute_task result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/galaxy_ng/app/api/v1/tasks.py", line 93, in legacy_role_import raise Exception(f'git clone for {clone_url} failed')

       

      Git is trying to sync from owner_username do1jlr but the provider namespace it actually other https://github.com/roles-ansible/ansible_role_gopassAs you can see in https://old-galaxy.ansible.com/l3d/gopass - the github repo points to the correct provider namespace.

       

      Reminders:

      • Set the affected Component(s): Backend, Infrastructure, Pulp, QE, Security, UI
      • Apply labels "crc-automation-hub" and/or "private-automation-hub" to indicate if the issue is for Cloud Automation Hub, Private Automation Hub, or both

              jtanner@redhat.com James Tanner
              rochacbruno@redhat.com Bruno Rocha
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: