[Operations] 'nova list' doesn't show enough information.

Bug #1076473 reported by James Penick
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
High
Unassigned
python-novaclient
Fix Released
Undecided
Kieran Spear

Bug Description

When debugging user issues with various VMs Openstack operators need the ability to know (at a glance) the compute node for a given VM. Right now we have to either run 'nova show' on every VM, and try to compile information that way, or write a tool to do the DB query for us (Which many of us have done, but it's a workaround.)

Can someone please add compute node to the output of nova-list?

Even better, i'd like to be able to add other columns with a flag

eg: nova list --all_tenants --show flavor,task_state,instance_name

Tags: ops
Michael Still (mikal)
Changed in nova:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Sam Morrison (sorrison) wrote :

Would be good to be able to provide filters to it as well if you're an admin.

eg: nova list --filter tenant=<tenant_id> --filter flavour=<flavour>

Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :

@Sam

'nova list --flavor=<flavor_id>' already works today.

I'd agree that tenant and perhaps arbitrary filters as originally requested would be good to have.

Revision history for this message
Stuart Stent (stuart-stent) wrote :

task_state would be extremely helpfully for those running LVM backed VMs, as the VM state = Active even when task state is deleting.

Revision history for this message
Tiantian Gao (gtt116) wrote :

I believe the bug should belong to python-novaclient.
when we type "nova list", novaclient make request to "GET http://node:8774/v2/{tenant}/servers/detail". Actually novaclient catch all the information about instances, which include task_state, flavor_id , etc.
So we only need to modify python-novaclient to fix the bug.

Kieran Spear (kspear)
Changed in python-novaclient:
assignee: nobody → Kieran Spear (kspear)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

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

Reviewed: https://review.openstack.org/21494
Committed: http://github.com/openstack/python-novaclient/commit/e8001968607492218cce4c2a408e54836f627212
Submitter: Jenkins
Branch: master

commit e8001968607492218cce4c2a408e54836f627212
Author: Kieran Spear <email address hidden>
Date: Thu Feb 7 19:24:11 2013 +1100

    Support showing extra fields in server list

    Adds a --fields argument that sets the fields to display.
    ID is always displayed.

    Fixes bug #1076473

    Change-Id: If3462e6a490ea16da4834a7f40f96b111c9e8227

Changed in python-novaclient:
status: In Progress → Fix Committed
Revision history for this message
Russell Bryant (russellb) wrote :

It looks like this one was resolved by changing novaclient, so closing out for nova.

Changed in nova:
status: Triaged → Invalid
Changed in python-novaclient:
status: Fix Committed → Fix Released
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.