Maor Lipchuk has posted comments on this change.

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


Patch Set 4:

(2 comments)

http://gerrit.ovirt.org/#/c/36549/4/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 67: 
Line 68:         StorageDomainValidator validator = new 
StorageDomainValidator(getStorageDomain());
Line 69:         if (!validate(validator.isHostedEngineStorage())) {
Line 70:             return false;
Line 71:         }
> Allon thought otherwise, we should check existence first :)
We should still check the existence, but we don't have to call also 
getLUNsFromVgInfo, that is why I mentioned to move this to line 60
Line 72: 
Line 73:         return true;
Line 74:     }
Line 75: 


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

Line 68:         
storageDomainFromIrs.setStorageStaticData(domainFromIrs.getFirst());
Line 69:         StorageDomainValidator validator = new 
StorageDomainValidator(storageDomainFromIrs);
Line 70:         if (!validate(validator.isHostedEngineStorage())) {
Line 71:             return false;
Line 72:         }
> Yes, but when and if we go through REST the storage name can be defined in 
ok, so what about moving it after line 83?
Line 73: 
Line 74:         return concreteCheckExistingStorageDomain(domainFromIrs);
Line 75:     }
Line 76: 


-- 
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: 4
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