ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.07k stars 3.42k forks source link

DELETE api/v2/projects/ 502 #14611

Open crzysan opened 1 year ago

crzysan commented 1 year ago

Please confirm the following

Bug Summary

This issue occurs when I try to delete a specific project using the UI or the API. This project is not linked to any other resource it's an empty project and also using the Default organisation. Other projects doesn't give an issue however there are two projects that can't be removed.

Is there a workaround for this? Is this something that you guys already are working on?

AWX version

22.1.0

Select the relevant components

Installation method

openshift

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

Chrome, Edge

Steps to reproduce

On the UI just select the delete button. Curl command on the API. Using the awx.awx ansible module.

Expected results

Resource deleted

Actual results

Issue: Failed to delete project. DELETE api/v2/projects/484/ 502

Additional information

No response

fosterseth commented 1 year ago

as a workaround you can delete it directly with the django ORM

kubectl exec -it deploy/awx-task -c awx-task -- bash -c "source /var/lib/awx/venv/awx/bin/activate; bash"

awx-manage shell_plus

Project.objects.filter(id=484).delete()

djyasin commented 11 months ago

Hi @crzysan! Were you able to resolve the issue with the workaround @fosterseth provided?