Red Hat Bugzilla – Bug 879938
rhevm-config: when we remove a domain with rhevm-manage-domains we are not asked for authentication or issued any warning
Last modified: 2016-02-10 14:20:58 EST
Description of problem:
when running rhevm-manage-domains --delete I was not asked for authentication and there was no 'are you sure' conformation.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add a domain: rhevm-manage-domains -action=add -domain=domain -provider=ActiveDirectory -user=vdcadmin -interactive
2. remove the domain: rhevm-manage-domains -action=delete -domain=domain -provider=ActiveDirectory -user=vdcadmin -interactive
we do not ask for authentication and there is no 'are you sure' warning.
we should authenticate and be asked if we are sure before domain delete.
[root@dafna-web-admin scripts]# rhevm-manage-domains -action=delete -domain=XXXXX -provider=ActiveDirectory -user=vdcadmin -interactive
WARNING: Domain XXXXX is the last domain in the configuration. After deleting it you will have to either add another domain, or to use the internal admin user in order to login.
Successfully deleted domain qa.lab.tlv.redhat.com. Please remove all users and groups of this domain using the Administration portal or the API. oVirt Engine restart is required in order for the changes to take place (service ovirt-engine restart).
Manage Domains completed successfully
there is no need to ask for authentication, but a prompt to approve delete would be nice (need to have an option to reply in advance for automated flows)
link : http://gerrit.ovirt.org/#/c/9585/
change id : I770269eccdc4a2d0645d96cf48b660ad22d42f9d
3.2 has been released