Request: natural sort order for "nova image-list"
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_
| 17 | Abcdefgh_
| 18 | centos-
| 19 | centos-
| 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-
+----+-
It would be easier to read if it sorted numerically by ID instead of lexically.
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Looks like we are now using uuid(s) for id(s) so this bug is invalid
dims@dims- desktop: ~$ nova image-list ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ---+ 4f0d-4551- 8853-29c65674b3 ca | cirros-0.3.0-i386 | ACTIVE | | 9215-45ec- 8947-918b2699b2 35 | cirros- 0.3.0-i386- 10 | ACTIVE | | 70f4-4412- 984d-34c2fcd5c0 a0 | cirros- 0.3.0-i386- 11 | ACTIVE | | 39d7-4424- 8861-1a820e52ae 5a | cirros- 0.3.0-i386- 12 | ACTIVE | | 45b7-40c9- be59-f211dec704 67 | cirros-0.3.0-i386-4 | ACTIVE | | eb3c-4083- 90d9-4a27e99fa1 62 | cirros-0.3.0-i386-5 | ACTIVE | | cf18-4914- b864-279a82cb44 bd | cirros-0.3.0-i386-6 | ACTIVE | | e224-4049- a184-3df5d91c08 75 | cirros-0.3.0-i386-7 | ACTIVE | | e9dc-4af6- 8f2f-f70521adf4 d2 | cirros-0.3.0-i386-8 | ACTIVE | | 126d-425e- 8a23-169daadfa8 88 | cirros-0.3.0-i386-9 | ACTIVE | | ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ---+
+------
| ID | Name | Status | Server |
+------
| 2b07723a-
| 9feb3841-
| e1e2f849-
| 73b5d296-
| ee99dbd2-
| 53bd9e5f-
| a13a9120-
| 4a779aeb-
| fd9864ff-
| 62a0ef79-
+------