Eli Mesika has posted comments on this change. Change subject: core: Gluster disk as network device ......................................................................
Patch Set 1: (2 comments) https://gerrit.ovirt.org/#/c/41899/1/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilder.java File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilder.java: Line 375: switch (disk.getDiskStorageType()) { Line 376: case IMAGE: Line 377: DiskImage diskImage = (DiskImage) disk; Line 378: Guid storageDomainId = diskImage.getStorageIds().get(0); Line 379: StorageDomain sd = DbFacade.getInstance().getStorageDomainDao().get(storageDomainId); We are using now CDI to inject DAOs Please inject the DAO rather then create it via DbFacade do git grep "\@Inject" |grep -i dao to see samples Line 380: if (sd.getStorageType() == StorageType.GLUSTERFS && Line 381: FeatureSupported.libgfApiSupported(vm.getVdsGroupCompatibilityVersion())) { Line 382: struct.put(VdsProperties.DiskType, VdsProperties.NETWORK); Line 383: } Line 376: case IMAGE: Line 377: DiskImage diskImage = (DiskImage) disk; Line 378: Guid storageDomainId = diskImage.getStorageIds().get(0); Line 379: StorageDomain sd = DbFacade.getInstance().getStorageDomainDao().get(storageDomainId); Line 380: if (sd.getStorageType() == StorageType.GLUSTERFS && safer : if ( StorageType.GLUSTERFS == sd.getStorageType() Line 381: FeatureSupported.libgfApiSupported(vm.getVdsGroupCompatibilityVersion())) { Line 382: struct.put(VdsProperties.DiskType, VdsProperties.NETWORK); Line 383: } Line 384: struct.put(VdsProperties.PoolId, diskImage.getStoragePoolId().toString()); -- To view, visit https://gerrit.ovirt.org/41899 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I061594c83342883804fc379a00a953591474bdbb Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ala Hino <ah...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Eli Mesika <emes...@redhat.com> Gerrit-Reviewer: Federico Simoncelli <fsimo...@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches