Tal Nisan has posted comments on this change.

Change subject: core: Block import of storage domain if the storage contains 
hosted engine
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.ovirt.org/#/c/36549/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddExistingBlockStorageDomainCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddExistingBlockStorageDomainCommand.java:

Line 56:     protected boolean canAddDomain() {
Line 57:         StorageDomainValidator validator = new 
StorageDomainValidator(getStorageDomain());
Line 58:         if (!validate(validator.isHostedEngineStorage())) {
Line 59:             return false;
Line 60:         }
> This should be done AFTER the existence check in the next block
Done
Line 61: 
Line 62:         if 
(getStorageDomainStaticDAO().get(getStorageDomain().getId()) != null) {
Line 63:             return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST);
Line 64:         }


-- 
To view, visit http://gerrit.ovirt.org/36549
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I36db8c4a7a1d13be8874407c56596ecd9ab74333
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to