ansible / awx-operator

An Ansible AWX operator for Kubernetes built with Operator SDK and Ansible. 🤖
https://www.github.com/ansible/awx
Apache License 2.0
1.24k stars 626 forks source link

Unable to remove 'admin' user. #875

Open gamuniz opened 2 years ago

gamuniz commented 2 years ago
ISSUE TYPE
SUMMARY

Unable to remove the admin user from the UI even if another admin user exists.

ENVIRONMENT
STEPS TO REPRODUCE
  1. install awx-operator
  2. create a system administrator
  3. delete admin user
EXPECTED RESULTS

Admin user is removed.

ACTUAL RESULTS

Admin user appears on next reconciliation loop.

ADDITIONAL INFORMATION
AWX-OPERATOR LOGS
fosterseth commented 2 years ago

@rooftopcellist similar to the admin password issue, do we want the operator to re-instate the admin user if it was already removed? If admin_user is not set, maybe we should only check if at least 1 superuser account is present on the machine. If so, skip the play that creates admin account.

fosterseth commented 2 years ago

potentially look into a flag (may already exist) to prevent admin user from being created