Usages API returns instance names but not IDs

Bug #1003093 reported by Gabriel Hurley
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Lin Hua Cheng
OpenStack Dashboard (Horizon)
Fix Released
Medium
Lin Hua Cheng
openstack-manuals
Fix Released
Undecided
Lin Hua Cheng

Bug Description

The usage API returns a list of usage data which includes the instance name, however it fails to include the instance ID. So, for example, if someone wanted to investigate an instance in that list, there's no direct way to get to it.

This is counter to everywhere else in the API where IDs are returned without names.

PLEASE PLEASE PLEASE send both names *and* IDs. Preferrably for everything, everywhere! Horizon and the rest of your consumers will thank you for it!

Tom Fifield (fifieldt)
Changed in nova:
status: New → Confirmed
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
Changed in nova:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
no longer affects: horizon
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

This is still a valid bug for Horizon since we haven't fixed the issue of the links in the usage table, and if Nova *does* fix this problem we'll want to act to apply the fix on our end.

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
importance: Undecided → Medium
milestone: none → folsom-2
status: New → Confirmed
Revision history for this message
Brian Waldon (bcwaldon) wrote :

By 'usage API', do you mean the 'simple_tenant_usage' extension? Just want some clarification.

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :
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/8765

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

So, yes, the "simple_tenant_usage" extension, it looks like.

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

Reviewed: https://review.openstack.org/8765
Committed: http://github.com/openstack/nova/commit/52fd1536a897a24ba07b5f4459edb15e581b7adc
Submitter: Jenkins
Branch: master

commit 52fd1536a897a24ba07b5f4459edb15e581b7adc
Author: Lin Hua Cheng <email address hidden>
Date: Wed Jun 20 19:37:19 2012 +0000

    Add instance_id in Usage API response.

    Fixes bug 1003093.

    Required to fix horizon bug 1003299.

    Add the instance_id in the server usage
    response. The value of the id is the UUID
    of the instance.

    Change-Id: I77e0f64db456b4c80a03fa922dd18146b94d1187

Changed in nova:
status: In Progress → Fix Committed
Changed in openstack-manuals:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: Gabriel Hurley (gabriel-hurley) → Lin Hua Cheng (lin-hua-cheng)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

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

Changed in openstack-manuals:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/8838
Committed: http://github.com/openstack/openstack-manuals/commit/5290ef9d3138bbf21fc30e85fbb65ef999613726
Submitter: Jenkins
Branch: master

commit 5290ef9d3138bbf21fc30e85fbb65ef999613726
Author: Lin Hua Cheng <email address hidden>
Date: Thu Jun 21 22:40:35 2012 -0700

    Add instance_id in the Tenant Usage API.

    Fixes Bug #1016274

    Tenant Usage API has been updated to include
    instance_id in the response (bug 1003093).
    The example has been updated to add the
    new field.

    Change-Id: I7d60be4f809d8d5f5fba39d5cd96e2db616387af

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/8837
Committed: http://github.com/openstack/horizon/commit/a6703494206ba72c1df46950c4425076e154d730
Submitter: Jenkins
Branch: master

commit a6703494206ba72c1df46950c4425076e154d730
Author: Lin Hua Cheng <email address hidden>
Date: Thu Jun 21 21:55:57 2012 -0700

    Fix Project Overview link to use instance_id

    Fixes Bug #1003299

    Tenant Usage API has been updated to include
    instance_id in the response (bug 1003093). The
    link has been updated to used instance_id.

    Change-Id: I9d5fcf120b1e5966a5e019e5b17dea7806f20650

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: folsom-2 → 2012.2
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-2 → 2012.2
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.