glance image-list should sort on name, not UUID
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Glance Client |
Fix Released |
Low |
Brian Waldon | ||
Bug Description
Look at the output of the following command
$ glance image-list
+------ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- ------+ ------- -+
| ID | Name | Disk Format | Container Format | Size | Status |
+------ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- ------+ ------- -+
| 2f199e99- babd-4a1f- 93b2-bf38a8b7a4 fa | cirros- 0.3.0-x86_ 64-uec- kernel | aki | aki | 4731440 | active |
| 41152594- f1cc-4f0b- b04d-d7b5f21907 c4 | cirros- 0.3.0-x86_ 64-uec | ami | ami | 25165824 | active |
| 54932597- 48cd-4ae5- bda7-fdf397116a e0 | evil | qcow2 | bare | 197120 | active |
| 6faf19bb- a5a9-4b44- a932-7e2c0f8135 d1 | f17-x86_ 64-openstack- sda | qcow2 | bare | 251985920 | active |
| 9474c929- 9651-4e09- 8565-4a5a7acf25 6a | f18-x86_ 64-openstack- sda | qcow2 | bare | 279511040 | active |
| a13223fe- a458-4c4a- b61b-a2bc743660 bf | cirros- 0.3.0-x86_ 64-uec- ramdisk | ari | ari | 2254249 | active |
| c7251cc3- 11f4-40a4- a867-96780af3d0 a8 | foo | | | 251985920 | active |
| ca1bb9f9- e659-4561- 8c06-33609cbf25 75 | f16-x86_ 64-openstack- sda | qcow2 | bare | 213581824 | active |
+------ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- ------+ ------- -+
Notice how it has sorted the images based on the "ID" column UUID strings. This is incredibly unhelpful for humans, effectively equivalent to no sorting at all, since UUIDs are randomly generated strings. It should be sorting the images based on the 'Name' column. While not a huge issue when you have < 10 images, if you have 100's of images registered the current sorting makes the command practically unusable