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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There should be some warning before deleting the default Execution Environment

AlanCoding opened this issue · comments

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature type

Enhancement to Existing Feature

Feature Summary

Give some notice before the default execution environment gets deleted.

(all steps as superuser)

Select the relevant components

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

Steps to reproduce

If I got to the UI page for the default EE, it looks like this:

http://localhost:8013/#/execution_environments/1/details

Then I can just click "Delete", and it deletes as if it is an ordinary Execution Environment.

Current results

Then all jobs will give this error:

Screenshot from 2024-06-26 08-43-08

...assuming the job doesn't have a custom EE set. Which would match the Demo Job Template.

Sugested feature result

Somewhere in the process of clicking "Delete" it denies the request or gives me a warning that says specifically that it is the default EE in the system.

I would argue that an error is okay, because the user should, ideally, change the setting to a different EE, then come back and delete the old one.

Additional information

No response

Interesting. Delete is greyed out for Control Plane Execution Environment.
Furthermore, I get this when I try to delete any other EE:
obraz
I'm running 24.6.0.

Yeah, but it's a generic message. There's no indicator making it clear that particular image is the default. I honestly don't know for sure that it is the default. You could have kept around some old versions of AWX EE.