Hello,

I have noticed an issue caused by user error. It would be great if some 
admin could help me resolve this issue. Based on the source code it seems 
someone with "admin" would be able to delete this erroneous role.

If you try to import a role through command line and include the 
--role-name and you provide incorrect arguments it will timeout the import 
and key the role-name locked

example:

ansible-galaxy import rahul0705 rahul0705/ansible-certbot --role-name certbot

This was a mistake (the extra username in the repo field). This creates the 
following log:

Starting import 99571: role_name=certbot 
repo=rahul0705/rahul0705/ansible-certbot

Once that times out we still cannot use the certbot role name in the 
rahul0705 namespace.

Starting import 99568: role_name=ansible-certbot repo=rahul0705/ansible-certbot
Accessing branch: master
Parsing and validating meta data.
Setting role name to certbot
Parsing galaxy_tags
Parsing platforms
Adding dependencies
Parsing and validating README
Adding repo tags as role versions
Removing old tags
Import completed
Status SUCCESS : warnings=0 errors=0
Error saving role: duplicate key value violates unique constraint 
"main_role_namespace_36aa1070a7d8dc70_uniq" DETAIL: Key (namespace, 
name)=(rahul0705, certbot) already exists.

When I try to delete the incorrect import I get

% ansible-galaxy delete -vvv rahul0705 rahul0705/ansible-certbot
No config file found; using defaults
Opened /Users/rahul/.ansible_galaxy
https://galaxy.ansible.com/api/v1/removerole/?github_user=rahul0705&github_repo=rahul0705/ansible-certbot
ERROR! Galaxy user rahul does not have access to repo 
rahul0705/rahul0705/ansible-certbot

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/087e143d-fdca-4805-b38c-f35052038e01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to