cinder list --sort id' command gives unsorted list result

Bug #1780069 reported by Deepak Mourya
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-cinderclient
New
Undecided
Deepak Mourya

Bug Description

Whenever we use cinder list by default the list should be sorted in the descending order but in actual the resulted output is unsorted.

cinder list

Actual Output:
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
| 03d2ac9f-0a86-4de4-ae66-feb575895abd | available | abbc | 1 | lvmdriver-1 | false | |
| 342e8bee-19b2-4c78-a236-07d22e4cc5ee | available | aab | 1 | lvmdriver-1 | false | |
| 3fc53197-4d33-4584-9f03-57b138021ba5 | available | a | 1 | lvmdriver-1 | false | |
| 4dfc8d07-62d6-44f9-8e88-f60815e3c5c8 | available | ab | 1 | lvmdriver-1 | false | |
| fa82c26e-b857-45a4-b9f4-e60eb7ee39f1 | available | abc | 1 | lvmdriver-1 | false | |
+--------------------------------------+-----------+------+------+-------------+----------+-------------+

Expected Output:

>>> sorted(["abc","a","ab","aab","abbc"],reverse=True)
['abc', 'abbc', 'ab', 'aab', 'a']

Changed in python-cinderclient:
assignee: nobody → Deepak Mourya (mourya007)
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.