Change in ovirt-engine[ovirt-engine-4.0]: restapi: Don't try to set IPs for VMs without id

Tal Nisan has submitted this change and it was merged. Change subject: restapi: Don't try to set IPs for VMs without id ...................................................................... restapi: Don't try to set IPs for VMs without id Currently the V3 adapter for VM objects tries to populate the IP addresses reported by the guest agent, but this doesn't work for VM objects that haven't been created yet, like the ones returned by the operation to import a VM from an export storage domain. In addition retrieving the details of a VM before importing it doesn't work either, because the implementation uses inheritance and generics and the JAX-RS implementation that we use in version 4 of the engine doesn't understand it. This patch fixes these two isses needed to make the import operation succeed in both versions of the API. Change-Id: I2e2ea61f34467bcbc0578fde7ba8a0fa9d12a648 Bug-Url: https://bugzilla.redhat.com/1348805 Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com> (cherry picked from commit d5b11641ba4d87d16be15fd1b3ac0359a31ee576) --- M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/AbstractBackendStorageDomainContentResource.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainTemplateResource.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainVmResource.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/adapters/V3VmOutAdapter.java 4 files changed, 59 insertions(+), 66 deletions(-) Approvals: Juan Hernandez: Verified; Looks good to me, approved Jenkins CI: Passed CI tests -- To view, visit https://gerrit.ovirt.org/59632 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I2e2ea61f34467bcbc0578fde7ba8a0fa9d12a648 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-4.0 Gerrit-Owner: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Tal Nisan <tnisan@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
tnisan@redhat.com