python-novaclient does not support extended status

Bug #954750 reported by Anthony Young
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Wishlist
David Wilde

Bug Description

This makes it difficult to debug broken instances.

Steps to reproduce:

> (Launch server)
> nova list

Expected:

listing that includes vm_state, task_state, power_state

Actual:

$ nova list
+--------------------------------------+----------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+----------+--------+------------------+
| 7527897b-aca6-467d-a58c-594953c93eab | Server 6 | BUILD | private=10.0.0.2 |
+--------------------------------------+----------+--------+------------------+

summary: - python-novclient does not support extended status
+ python-novaclient does not support extended status
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Why do you need to have the extended status in nova list? It's already available in nova show, and the list table has quite a bit of info in it already. I'm not against doing this, I just want to make sure we do it for the right reasons

Revision history for this message
Anthony Young (sleepsonthefloor) wrote :

Hey Brian -

The main motivation is for rough cli parity with dashboard:

http://stsh.me/1PS

Otherwise, it is easier to check dashboard than to do 'nova list' if you have more than a few instances. I actually did not see the information in 'nova show' either:
+-------------------+----------------------------------------------------------+
| Property | Value |
+-------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2012-03-14T06:32:12Z |
| flavor | m1.small |
| hostId | 7029505c0c8b047eff26a17b6d24de5ade6b5520252c25665f653ca9 |
| id | 7527897b-aca6-467d-a58c-594953c93eab |
| image | cirros-0.3.0-x86_64-blank |
| key_name | |
| metadata | {} |
| name | Server 6 |
| private network | 10.0.0.2 |
| progress | 0 |
| status | ACTIVE |
| tenant_id | c567684213574b89b0d496bb2f3868b6 |
| updated | 2012-03-14T06:32:20Z |
| user_id | aeb858633c1d487192f14f77ef598e04 |
+-------------------+----------------------------------------------------------+

Looks like a policy issue:

(in nova) etc/nova/policy.json: "compute_extension:extended_status": [["rule:admin_api"]]

Is there a reason to not expose this info to all users by default?

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Wishlist
status: New → Incomplete
Thierry Carrez (ttx)
Changed in nova:
status: Incomplete → Confirmed
Thierry Carrez (ttx)
affects: nova → python-novaclient
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/27649

Changed in python-novaclient:
assignee: Anthony Young (sleepsonthefloor) → David Wilde (david-wilde-rackspace)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

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

commit e009bec2208d2f38896160a1ea677a3014f851e5
Author: Dave Wilde <email address hidden>
Date: Sun Apr 28 07:37:33 2013 -0500

    Adds extended status fields to nova list

    The nova list command now includes 'Task State' and 'Power State' fields to
    bring parity with the dashboard.

     * Add helper function _translate_extended_states()
     to convert extended states to human

    Fixes: bug #954750

    Change-Id: I564b7f88e9e2524d8e4ffe21a51608c5e3b23d2d

Changed in python-novaclient:
status: In Progress → Fix Committed
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.