Request: natural sort order for "nova image-list"

Bug #967922 reported by Lorin Hochstein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Wishlist
Unassigned

Bug Description

(Running on diablo, not tested with essex)

The nova image-list command sorts by numerical IDs using lexical sort, for example:

orin@os-c200-1:~$ nova image-list
+----+----------------------------------------+--------+--------+
| ID | Name | Status | Server |
+----+----------------------------------------+--------+--------+
| 1 | ttylinux-kernel | ACTIVE | |
| 11 | nam-her | ACTIVE | |
| 13 | abc_030312_1005AM | ACTIVE | |
| 14 | centos5.7 | ACTIVE | |
| 16 | Abcdefg_tools_030812 | ACTIVE | |
| 17 | Abcdefgh_tools_030812 | ACTIVE | |
| 18 | centos-5.8-i386-server-gui | ACTIVE | |
| 19 | centos-5.8-i386-server_gui-rev2 | ACTIVE | |
| 2 | ttylinux-ramdisk | ACTIVE | |
| 20 | ABCD_CentOS_5_7_1 | ACTIVE | |
| 21 | ABCD_CentOS_5_7_2 | ACTIVE | |
| 3 | ttylinux | ACTIVE | |
| 4 | ubuntu-oneiric | ACTIVE | |
| 5 | loader-kernel | ACTIVE | |
| 6 | loader-ramdisk | ACTIVE | |
| 7 | ubuntu-lucid | ACTIVE | |
| 8 | ubuntu-oneiric-xtools | ACTIVE | |
+----+----------------------------------------+--------+--------+

It would be easier to read if it sorted numerically by ID instead of lexically.

Changed in nova:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Looks like we are now using uuid(s) for id(s) so this bug is invalid

dims@dims-desktop:~$ nova image-list
+--------------------------------------+----------------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+----------------------+--------+--------+
| 2b07723a-4f0d-4551-8853-29c65674b3ca | cirros-0.3.0-i386 | ACTIVE | |
| 9feb3841-9215-45ec-8947-918b2699b235 | cirros-0.3.0-i386-10 | ACTIVE | |
| e1e2f849-70f4-4412-984d-34c2fcd5c0a0 | cirros-0.3.0-i386-11 | ACTIVE | |
| 73b5d296-39d7-4424-8861-1a820e52ae5a | cirros-0.3.0-i386-12 | ACTIVE | |
| ee99dbd2-45b7-40c9-be59-f211dec70467 | cirros-0.3.0-i386-4 | ACTIVE | |
| 53bd9e5f-eb3c-4083-90d9-4a27e99fa162 | cirros-0.3.0-i386-5 | ACTIVE | |
| a13a9120-cf18-4914-b864-279a82cb44bd | cirros-0.3.0-i386-6 | ACTIVE | |
| 4a779aeb-e224-4049-a184-3df5d91c0875 | cirros-0.3.0-i386-7 | ACTIVE | |
| fd9864ff-e9dc-4af6-8f2f-f70521adf4d2 | cirros-0.3.0-i386-8 | ACTIVE | |
| 62a0ef79-126d-425e-8a23-169daadfa888 | cirros-0.3.0-i386-9 | ACTIVE | |
+--------------------------------------+----------------------+--------+--------+

Changed in nova:
status: Confirmed → Invalid
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.