question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

User Can't Delete Role if github repo was already deleted

See original GitHub issue

Bug Report

SUMMARY

I’d like to delete this role, but get an error.

STEPS TO REPRODUCE
ansible-galaxy delete robertdebock ansible-role-iptables
ERROR! Galaxy user robertdebock does not have access to repo robertdebock/ansible-role-iptables
EXPECTED RESULTS

I’d like the role to be removed.

ACTUAL RESULTS
ansible-galaxy 2.6.3
  config file = /home/robertdb/Documents/ansible/mvps/ansible.cfg
  configured module search path = [u'/home/robertdb/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible-galaxy
  python version = 2.7.15 (default, May 16 2018, 17:50:09) [GCC 8.1.1 20180502 (Red Hat 8.1.1-1)]
Using /home/robertdb/Documents/ansible/ansible.cfg as config file
Opened /home/robertdb/.ansible_galaxy
https://galaxy.ansible.com/api/v1/removerole/?github_user=robertdebock&github_repo=ansible-role-iptables
ERROR! Galaxy user robertdebock does not have access to repo robertdebock/ansible-role-iptables

When I visit the API, I see the same error on a DELETE method:

HTTP 400 Bad Request
Allow: DELETE, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "detail": "Galaxy user robertdebock does not have access to repo robertdebock/ansible-role-iptables"
}

I have the feeling that I’m making a mistake, but am not sure what the mistake is.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chouseknechtcommented, Nov 15, 2018

@robertdebock

Your tower role is deleted.

1reaction
chouseknechtcommented, Sep 20, 2018

@robertdebock

Deleted. The API failed to remove it because the repository on GitHub was already removed or missing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting permissions for deleting or transferring repositories
In the "Access" section of the sidebar, click Member privileges. Under "Repository deletion and transfer", select or deselect Allow members to delete or ......
Read more >
Deleting an issue - GitHub Docs
People with admin permissions in a repository can permanently delete an issue from a repository. The ability to delete issues depends on whether...
Read more >
Deleting a repository - GitHub Docs
Deleting a repository will permanently delete release attachments and team permissions. This action cannot be undone. Deleting a private repository will delete ......
Read more >
Can't delete IAM role because policies are attached #2761
It seems like changing a user, role, or group name causes a deletion and recreation of that resource, but we'd need to trigger...
Read more >
Users can not remove a deleted Github repo that has been ...
A Github repository that has been pinned to a user's profile is unpinned when the repository is deleted. ... All pinned Github repositories...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found