Change in ovirt-engine[master]: restapi: Support multiple links to DC from SD

Juan Hernandez has submitted this change and it was merged. Change subject: restapi: Support multiple links to DC from SD ...................................................................... restapi: Support multiple links to DC from SD Currently the Storage Domains available in the top level /storagedomains collection don't have a reference to the Data Centers that they are attached to. Only the /datacenters/{datacenter:id}/storagedomains collection provides this information, but in the context of particular Data Center, so there is no way to easily find out to which Data Centers a Storage Domain is attached to. In general a Storage Domain may be attached to multiple Data Centers simultaneously (an ISO Storage Domain in particular). To simplify finding the Data Centers this patch adds a new "data_centers" attribute to all the Storage Domain collections. This will contain a set of links to the Data Centers. For example: GET /storagedomains/{storagedomain:id} <storage_domain id="..." href="..."> <name>mydata</name> <data_centers> <data_center id="..." href="..."/> <data_center id="..." href="..."/> ... </data_centers> </storage_domain> The previously existing "data_center" (capable of holding one Data Center only) will be preserved for backwards compatibility, but it will removed in the next major release. Change-Id: I55c52309645f73d7a790c07135c21acf91feb824 Bug-Url: https://bugzilla.redhat.com/1132499 Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com> --- M backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAttachedStorageDomainResource.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAttachedStorageDomainsResource.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainResource.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainsResource.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/util/StorageDomainHelper.java 6 files changed, 77 insertions(+), 8 deletions(-) Approvals: Juan Hernandez: Verified Daniel Erez: Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/35406 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I55c52309645f73d7a790c07135c21acf91feb824 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Daniel Erez <derez@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: automation@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server
participants (1)
-
juan.hernandez@redhat.com