Bug 1060791

Summary: [RFE] Cleanup, remove IP information guest_info section from VM resource
Product: [oVirt] ovirt-engine Reporter: Juan Hernández <juan.hernandez>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, gklein, iheim, juwu, masayag, pstehlik, rbalakri, rnori, sbonazzo, s.kieske, srevivo
Target Milestone: ovirt-4.0.0-alphaKeywords: FutureFeature, Improvement
Target Release: 4.0.0Flags: rule-engine: ovirt-4.0.0+
gklein: testing_plan_complete-
rule-engine: planning_ack+
juan.hernandez: devel_ack+
pstehlik: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 08:04:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.