Hide Forgot
Description of problem: It is possible to add same host twice on the setup, in parallel, in different data centers. Version-Release number of selected component (if applicable): ic154 Steps to reproduce: Just add in parallel same host (host with the same name and address), in different data centers.
http://gerrit.ovirt.org/1648
Adding the unique constraints is good. I think we should prevent this in canDoAction level as well.
Yair, I checked it, VdsHandler.isVdsExist (line 100) already handles both cases. The error can only happen if the second thread passes this point before the first thread is persisted to the DB and it's transaction gets finished. Should be a few miliseconds if not heavily loaded. The datacenter is not used as a filter at validation, so this should not be a problem, hostnames and addresses should be unique even between datacenters.
Can we close this issue?
(In reply to comment #4) > Can we close this issue? I exepct bugs will be closed as part of releasing oVirt 3.1
closing ON_QA bugs as oVirt 3.1 was released: http://www.ovirt.org/get-ovirt/