Nova API /os-hosts missing element "zone"

Bug #1159055 reported by Feilong Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Feilong Wang

Bug Description

# Expected Output
http://127.0.0.1:8774/v2/c9a7b0efca7b424dbc9137bf9cc38e71/os-hosts
{"hosts": [{"zone": "internal", "host_name": "flwang-ThinkPad-X230", "service": "conductor"}, {"zone": "nova", "host_name": "flwang-ThinkPad-X230", "service": "compute"}, {"zone": "internal", "host_name": "flwang-ThinkPad-X230", "service": "cert"}, {"zone": "internal", "host_name": "flwang-ThinkPad-X230", "service": "network"}, {"zone": "internal", "host_name": "flwang-ThinkPad-X230", "service": "scheduler"}, {"zone": "internal", "host_name": "flwang-ThinkPad-X230", "service": "consoleauth"}, {"zone": "nova", "host_name": "nova-compute-2", "service": "compute"}]}

# Actual Output
http://127.0.0.1:8774/v2/c9a7b0efca7b424dbc9137bf9cc38e71/os-hosts
<?xml version='1.0' encoding='UTF-8'?>
<hosts><host host_name="flwang-ThinkPad-X230" service="conductor"/><host host_name="flwang-ThinkPad-X230" service="compute"/><host host_name="flwang-ThinkPad-X230" service="cert"/><host host_name="flwang-ThinkPad-X230" service="network"/><host host_name="flwang-ThinkPad-X230" service="scheduler"/><host host_name="flwang-ThinkPad-X230" service="consoleauth"/><host host_name="nova-compute-2" service="compute"/></hosts>

Feilong Wang (flwang)
description: updated
Changed in nova:
assignee: nobody → Fei Long Wang (flwang)
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/25232

Changed in nova:
status: New → In Progress
Joe Gordon (jogo)
tags: added: grizzly-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/25232
Committed: http://github.com/openstack/nova/commit/c5097ab6682ee1b3021bb628e5083108e3b368d0
Submitter: Jenkins
Branch: master

commit c5097ab6682ee1b3021bb628e5083108e3b368d0
Author: Fei Long Wang <email address hidden>
Date: Sun Mar 24 12:36:47 2013 +0800

    Fixes Nova API /os-hosts missing element "zone"

    Now the HostIndexTemplate of Nova /os-hosts API is missing element "zone",
    which will cause the XML output of list hosts missing the zone attribute.

    Fixes bug: 1159055

    Change-Id: I9940efcfd364c35b00cde4398d531d7ff56dc2b9

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → grizzly-rc2
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/25446

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (milestone-proposed)

Reviewed: https://review.openstack.org/25446
Committed: http://github.com/openstack/nova/commit/d7dcc5d0d72471f2be6895baf2717ec7c78f9f32
Submitter: Jenkins
Branch: milestone-proposed

commit d7dcc5d0d72471f2be6895baf2717ec7c78f9f32
Author: Fei Long Wang <email address hidden>
Date: Sun Mar 24 12:36:47 2013 +0800

    Fixes Nova API /os-hosts missing element "zone"

    Now the HostIndexTemplate of Nova /os-hosts API is missing element "zone",
    which will cause the XML output of list hosts missing the zone attribute.

    Fixes bug: 1159055

    Change-Id: I9940efcfd364c35b00cde4398d531d7ff56dc2b9
    (cherry picked from commit c5097ab6682ee1b3021bb628e5083108e3b368d0)

Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-rc2 → 2013.1
Alan Pevec (apevec)
tags: removed: grizzly-backport-potential
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.