Bug 1060791 - [RFE] Cleanup, remove IP information guest_info section from VM resource
Summary: [RFE] Cleanup, remove IP information guest_info section from VM resource
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.0.0-alpha
: 4.0.0
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-03 15:56 UTC by Juan Hernández
Modified: 2016-07-06 06:19 UTC (History)
11 users (show)

Fixed In Version: ovirt 4.0.0 alpha1
Doc Type: Enhancement
Doc Text:
In 4.0, the "guest_info" section has been removed from the REST API VM resource as it is no longer required.
Clone Of:
Environment:
Last Closed: 2016-07-05 08:04:38 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.0.0+
gklein: testing_plan_complete-
rule-engine: planning_ack+
juan.hernandez: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 45992 0 master MERGED restapi: Remove duplicated guest info 2020-12-22 14:09:53 UTC

Description Juan Hernández 2014-02-03 15:56:35 UTC
Currently the RESTAPI reports the information about the IP addresses of guest network interfaces in several places:

1. /vms/{vm:id}

  <vm href="..." id="...">
    ...
    <name>whatever</name>
    ...
    <guest_info>
      <ips>
        <ip address="192.168.122.30"/>
      </ips>
      <fqdn>whatever.example.com</fqdn>
    </guest_info>
  </vm>

2. /vms/{vm:id}/nics and /vms/{vm:id}/reporteddevices

  <nics>
    <nic>
      ...
      <reported_devices>
        <reported_device href="..." id="..">
          <name>eth0</name>
          <description>guest reported data</description>
          <type>network</type>
          <mac address="00:1a:4a:b5:4c:94"/>
          <ips>
            <ip address="192.168.1.115" version="v4"/>
            <ip address="fe80::21a:4aff:feb5:4c94" version="v6"/>
            <ip address="::1:21a:4aff:feb5:4c94" version="v6"/>
          </ips>
          <vm href="..." id="..."/>
        </reported_device>
      </reported_devices>
      ...
    </nic>
  </nics>

Number 1 was the first implementation, and is kept only for backwards compatibility. It should be removed in version 4.x.

Comment 1 Juan Hernández 2014-02-03 15:57:41 UTC
The initial discussion about this is in bug 1055556.

Comment 2 Juan Hernández 2014-09-02 09:56:19 UTC
This is a backwards compatibility breaking change that we can do only in 4.x, please don't move it back to 3.x.

Comment 3 Red Hat Bugzilla Rules Engine 2015-10-19 11:00:22 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 4 Karolína Hajná 2016-04-27 07:29:35 UTC
Verified in 4.0.0-0.0.master.20160404161620.git4ffd5a4.el7.centos (build ovirt-4.0_alpha1)

Comment 6 Sandro Bonazzola 2016-07-05 08:04:38 UTC
oVirt 4.0.0 has been released, closing current release.


Note You need to log in before you can comment on or make changes to this bug.