ansible / galaxy

Legacy Galaxy still available as read-only on https://old-galaxy.ansible.com - looking for the new galaxy -> https://github.com/ansible/galaxy_ng
Apache License 2.0
852 stars 331 forks source link

Roles import with GitHub owner name rather than Galaxy owner name #71

Open chouseknecht opened 6 years ago

chouseknecht commented 6 years ago

From @natefoo on April 5, 2017 17:17

We have a project account for our roles at https://galaxy.ansible.com/galaxyprojectdotorg/ which is linked to the @galaxybot GitHub account. As I'm a member of the galaxyproject GitHub org and have granted access to that org for my individual Galaxy account, I can also see and trigger imports for galaxyprojectdotorg roles under my individual account.

We have created a new role, galaxyproject/ansible-proftpd. This role now appears under my individual Galaxy account. However, when importing under my individual account, Galaxy created the role as galaxyproject.proftpd rather than galaxyprojectdotorg.proftpd. So I logged in under the galaxyprojectdotorg Galaxy account using the @galaxybot GitHub account and navigated to "My Roles." The full list of galaxyprojectdotorg roles was displayed there, not including the new proftpd role. Upon clicking "Refresh your Repositories from GitHub", all of the roles disappeared except galaxyprojectdotorg.galaxy.

I have verified that @galaxybot has the needed permissions on the galaxyproject org. What's gone wrong here?

Copied from original issue: ansible/galaxy-issues#246

chouseknecht commented 6 years ago

From @natefoo on April 6, 2017 18:45

The roles appear now, it was a permissions problem with @galaxybot's teams. However, the role still imports as galaxyproject.proftpd. It looks like Galaxy is importing roles using the GitHub repo owner name rather than the Galaxy owner name.

chouseknecht commented 6 years ago

From @natefoo on April 6, 2017 18:49

FWIW I am perfectly happy renaming our roles to galaxyproject, but (back when he was still at Ansible) Michael DeHaan had asked us to change from galaxy to galaxyprojectdotorg due to the unfortunate project name collision.

chouseknecht commented 6 years ago

That's the expected behavior. We changed it, maybe 2 years ago now to import under the GitHub namespace.

chouseknecht commented 6 years ago

From @natefoo on April 13, 2017 13:54

Ok, thanks. I guess I'll reimport our old roles, then? Or can their names be fixed somehow?

chouseknecht commented 6 years ago

I think the right thing to do is to move them to the GitHub namespace. Otherwise, each time your team creates a role, it will be an issue.

chouseknecht commented 6 years ago

Closing.