api-ref: descriptions for the various host fields in server GET response are useless

Bug #1673593 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Sean Dague

Bug Description

This came up in a review for the mistaken use of the hypervisor_hostname field in the server GET response:

https://review.openstack.org/#/c/446685/2/nova/tests/functional/regressions/test_bug_1671648.py@149

Looking at the API ref:

https://developer.openstack.org/api-ref/compute/?expanded=show-server-details-detail#id25

There are three 'host' related fields in the response:

1. hostId - The ID of the host.
2. OS-EXT-SRV-ATTR:host - The host name. Appears in the response for administrative users only.
3. OS-EXT-SRV-ATTR:hypervisor_hostname - The hypervisor host name. Appears in the response for administrative users only.

The hostId is an obfuscated id for the hostname in the guest (server instance).

The 'host' is the name of the compute host that the nova-compute service is running on. This comes from the 'host' configuration option value in nova.conf.

The 'hypervisor_hostname' is the hostname of the hypervisor, provided by the compute driver, which in most cases is the same as 'host' *except* in the case of Ironic in which case it's the Ironic node name.

Tags: api-ref
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/446761

Changed in nova:
assignee: nobody → melanie witt (melwitt)
status: Confirmed → In Progress
Changed in nova:
assignee: melanie witt (melwitt) → Sean Dague (sdague)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/446761
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=261e7e3c5e4ee2b403f5c887bb75a8527a367135
Submitter: Jenkins
Branch: master

commit 261e7e3c5e4ee2b403f5c887bb75a8527a367135
Author: melanie witt <email address hidden>
Date: Thu Mar 16 22:16:10 2017 +0000

    Improve descriptions for hostId, host, and hypervisor_hostname

    The current descriptions for hostId, host, and hypervisor_hostname are
    vague, so this adds more detail to make them more understandable.

    Closes-Bug: #1673593

    Change-Id: Id3ea9bbfe59a47b24e3584cf16b5a556007e58ea

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 16.0.0.0b1

This issue was fixed in the openstack/nova 16.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.