Adds host_ip to hypervisor show API

Bug #1283655 reported by OpenStack Infra on 2014-02-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Sharat Sharma

Bug Description
commit e05566de71f39acad3566fc31ba1053d84130c03
Author: Jay Lau <email address hidden>
Date: Wed Feb 5 22:44:15 2014 +0800

    Adds host_ip to hypervisor show API

    After no-compute-fanout-to-scheduler, host_ip was stored in the table
    of compute_nodes. Host ip address should be considered as the hypervisor
    attribute similar to the hypervisor_type, hypervisor_version etc, and
    now those attributes such as hypervisor_type, hypervisor_version etc
    are all listed as the hypervisor attribute when calling "nova
    hypervisor-show host", so we can also set "host_ip" as a new attribute
    output for this command.

    1) Only administrators can view hypervisor detail in nova.
    2) It can help improve debug capabilities for nova. For example, if
    admin using SimpleCIDRAffinityFilter, then after VM is deployed, admin
    can check if the VM was deployed successfully to the desired host by
    checking ip address of the host via "nova hypervisor-show host".
    3) Add host_ip to the output for "nova hypervisor-show"

    Implement bp hypervisor-show-ip
    Change-Id: I006a504d030be1f47beb68a844647026a6daf0ce

Tom Fifield (fifieldt) on 2014-02-25
Changed in openstack-manuals:
milestone: none → icehouse
status: New → Confirmed
importance: Undecided → Medium
Changed in openstack-api-site:
milestone: none → icehouse
status: New → Confirmed
importance: Undecided → Medium
Stephen Gordon (sgordon) wrote :

Doesn't look like this impacts the manuals side as we don't actually reference/use this command outside of the cli-reference (which doesn't show output).

Changed in openstack-manuals:
status: Confirmed → Invalid
Tom Fifield (fifieldt) on 2014-03-30
Changed in openstack-api-site:
milestone: icehouse → none
Changed in openstack-manuals:
milestone: icehouse → none
Changed in openstack-api-site:
assignee: nobody → Lucky samadhiya (lucky-samadhiya)

i think in json response there is already present host_IP . please find reference url for same

is it correct ?

Atsushi SAKAI (sakaia) wrote :

For #2, Yes.

json response on the document has host_ip.
but the response body's detail (like host_ip, hypervisor_type) is not documented on API ref.
Would you add these items to the response parameter table?

Anne Gentle (annegentle) wrote :

Updated JSON example:

Changed in openstack-api-site:
status: Confirmed → Triaged
Sharat Sharma (sharat-sharma) wrote :

Assigning to myself since there is no activity from a long time. if any one have issues please tell me.

Changed in openstack-api-site:
assignee: Lucky samadhiya (lucky-samadhiya) → Sharat Sharma (sharat-sharma)
status: Triaged → In Progress
affects: openstack-api-site → nova

Change abandoned by Michael Still (<email address hidden>) on branch: master
Reason: This code hasn't been updated in a long time, and is in merge conflict. I am going to abandon this review, but feel free to restore it if you're still working on this.

Sean Dague (sdague) on 2016-12-09
Changed in nova:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers