Hey everyone,
i am not able to import roles into my newly created namespace which is based on one of my github orgs. The data:
github repo: GitHub - eclipse-slm/slm-ansible-role-docker · GitHub
github org: eclipse-slm
ansible-galaxy role namespace: eclipse_slm
so github-org and role-namespace differ by “-” and “_”
what i’ve tried so far:
ansible-galaxy role import --token $AG_TOKEN ipa-big slm-ansible-role-docker
ansible-galaxy role import --token $AG_TOKEN eclipse_slm slm-ansible-role-docker
ansible-galaxy role import --token $AG_TOKEN ipa-big eclipse_slm.slm-ansible-role-docker
ansible-galaxy role import --token $AG_TOKEN ipa-big eclipse-slm.slm-ansible-role-docker
ansible-galaxy role import --token $AG_TOKEN eclipse_slm eclipse-slm.slm-ansible-role-docker
It always fails when trying to clone the roles repo:
===== CLONING REPO =====
cloning https://github.com/eclipse_slm/eclipse-slm.slm-ansible-role-docker ...
cloning failed: Cloning into '/tmp/tmpdetmt7fh/eclipse-slm.slm-ansible-role-docker'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
I also tried accessing the API directly:
curl -X 'POST' \
"https://galaxy.ansible.com/api/v1/imports/" \
-H 'accept: application/json' \
-H "Authorization: Token ${AG_TOKEN}" \
--data-raw '{"github_repo":"slm-ansible-role-docker","github_user":"ipa-big", "alternate_clone_url": "https://github.com/eclipse-slm/slm-ansible-role-docker"}'
and
curl -X 'POST' \
"https://galaxy.ansible.com/api/v1/imports/" \
-H 'accept: application/json' \
-H "Authorization: Token ${AG_TOKEN}" \
--data-raw '{"github_repo":"slm-ansible-role-docker","github_user":"eclipse_slm", "alternate_clone_url": "https://github.com/eclipse-slm/slm-ansible-role-docker"}'
both requests fail with status code 500. Same applies for using the import site of the UI. Looks like my issue is similar to ##3344