Daniel Erez has submitted this change and it was merged. Change subject: core: introduce GetUnregisteredBlockStorageDomains query ......................................................................
core: introduce GetUnregisteredBlockStorageDomains query Introduced a new command for discovering unregistered block (iSCSI/FCP) storage domains (of type Data). The query should get as parameters the host ID, StorageType (iSCSI/FCP) and a list of StorageServerConnections (applicable only for iSCSI). Finding unregistered domains flow is as follows: * Connect into the specified targets (using ConnectStorageToVds). * Retrieve associated LUNs (using GetDeviceList). * Filter irrelevant LUNs by crossing with the specified targets and LUNs that are already a part of registered storage domains. * Fetching volume group IDs from the LUNs list. * For each VG-ID, use GetVGInfo to get VG-Name (storage domains ID). * Invoke GetStorageDomainInfo on each storage domain ID and build the StorageDomain objects. * Finally, return to the client a list of storage domains and successfully logged-in connections. Change-Id: I71cad5562f8d7dcb39c5a99b7daea28ccb4a00cf Signed-off-by: Daniel Erez <de...@redhat.com> --- A backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/GetUnregisteredBlockStorageDomainsQuery.java A backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/GetUnregisteredBlockStorageDomainsQueryTest.java A backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/GetUnregisteredBlockStorageDomainsParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java 4 files changed, 606 insertions(+), 0 deletions(-) Approvals: Daniel Erez: Verified; Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/29172 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I71cad5562f8d7dcb39c5a99b7daea28ccb4a00cf Gerrit-PatchSet: 10 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches