Closed martbhell closed 6 years ago
@martbhell
It appears that right now all of your Galaxy roles work. Or, at least the one I tested works.
I can update the 'namespace' in the Galaxy database, and that should accomplish what you're looking for.
I expect that once we change the namespace to CSCfi
, then users attempting to run ansible-galaxy install CSC-IT-Center-for-Science.<role_name>
will be broken.
Please confirm that you want me to update the namespace to CSCfi
, and I'll get it done today.
Thanks!
Hello, update away please :)
Updated.
I had trouble moving the following roles:
jetty
shibboleth-sp
apache
mariadb
elasticsearch
ansible-role-elasticsearch
shibboleth-idp
They seemed to be duplicates, so I deleted them from the old namespace. However, they're not showing up under the new namespace.
Can you try re-importing these, assuming you still want them, and let me know what happens.
Thanks!
Hm. Some of those we do want and I can't re-add them.
When I now go to https://galaxy.ansible.com/roleadd#/ I don't see the roles of my new organization's name, they old ones still have the old name and I don't see all.
How do I get them? Do I need to remove and the organization?
Hello @chouseknecht ?
@martbhell
Apologies. I have some time to work on this now.
Not clear on exactly what you need me to do. I see lots of roles under the new 'CSCfi' organization. What's missing, or what needs deleting?
Hi, when I go to my account and import and add role I only see old organization name, not the new one. How do I get the new one there?
@martbhell
There is a link near the top of the My Roles page that takes you into GitHub where you can grant Galaxy access to your orgs. Look for "If you don't see all of your roles, review and add your authorized organizations."
ansible galaxy oauth is allowed access to the organization. I don't see that text on github. I see the role I want to update in galaxy by the way, it's just pointing to the old organization name it seems - if I do a reimport it does not find the new tag. The role I'm looking at is ansible-role-cuda by the way.
@martbhell
Curious. What if you attempt to import it via the command line? You can use the ansible-galaxy
CLI to authenticate with GitHub, and then start an import. Instructions here: http://docs.ansible.com/ansible/latest/galaxy.html#authenticate-with-galaxy
Sometimes, when a user has access to lots of repos on GitHub, the Galaxy server can't process and present the entire list. It actually gets throttled by the GitHub API. Perhaps that's happening here.
Cool! I'll give it a shot. Next update in a day or two.
OK that manual import worked and updated this one role, but we have as you say many roles. Does this mean if we want to update roles on ansible-galaxy (while keeping the old organizational name/symlink working) we need to run this command manually every time there's an update?
From the output below these two work: https://galaxy.ansible.com/CSCfi/cuda/ https://galaxy.ansible.com/CSC-IT-Center-for-Science/cuda/
But this one does not. https://galaxy.ansible.com/CSC-IT-Center-for-Science/ansible-role-cuda/
I got the below warning when I successfully imported/updated the role:
$ ansible-galaxy import --role-name=cuda CSCfi ansible-role-cuda WARNING: More than one Galaxy role associated with Github repo CSCfi/ansible-role-cuda. The following Galaxy roles are being updated: CSCfi.ansible-role-cuda CSCfi.cuda CSC-IT-Center-for-Science.ansible-role-cuda To properly namespace this role, remove each of the above and re-import CSCfi/ansible-role-cuda from scratch
This issue was moved to ansible/galaxy#42
Hello!
Seems our roles https://galaxy.ansible.com/CSC-IT-Center-for-Science/ don't update because we have renamed our organization to "CSCfi" on github. How do I go about changing the pointer to CSCfi? Would anybody still using the old and long link still work after this rename?
// Johan