Description of problem: Dialog box of New Data Center, gets closed when trying to add a new DC with a name which already exists The message indicates "Error while executing action: Cannot create Repository. Data Center name is already in use." Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1.Crate a new DC with same name already exists in the setup 2. 3. Actual results: get a pop up message "Error while executing action: Cannot create Repository. Data Center name is already in use." and close the new dialog box of new Data Ceneter Expected results: Dialog box should not be closed. Additional info:
Created attachment 739794 [details] engine log
the behavior / request described here is very similar to the one described in bug 670863. when the error originates from the client validation, we are not closing the dialog (we will highlight the problematic field/section within the dialog) when the error originates from the server, we are always closing the dialog. I assume that there are some errors for which it makes sense to close the dialog, and there are other errors for which it makes sense to keep the dialog open. the GUI is indifferent to the returned error - it doesn't have a way of knowing the correct behavior to perform upon each and ever returned error. solving this issue will require quite a lot of work, which I don't think we will be able to do any time soon, hence flagging for future.
update: we should introduce a validation (we have that for other business entities), this should completely eliminate this CanDoAction message to appear in the GUI.
re-assigning to Alexander. as I mentioned in comment #3: need to introduce a Data-Center-name-uniqueness validation in the client (as exists for other New dialogs for other business entities in the system).
ovirt-3.6.0-3 release
Verified on ovirt-engine-3.6.0-0.0.master.20150713172442.gitd6e83be.el6.noarch