The result of 'nova migration-list' command is disorderly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Opinion
|
Wishlist
|
tangxing |
Bug Description
Description
===========
The result of 'nova migration-list' command is disorderly.It is inconvenient to find migration information of vm
Steps to reproduce
==================
[root@nail-5300-1 ~(keystone_admin)]# nova migration-list
Expected result
===============
Expect result order by id or Create_at
Actual result
=============
+----+-
| Id | Source Node | Dest Node | Source Compute | Dest Compute | Dest Host | Status | Instance UUID | Old Flavor | New Flavor | Created At | Updated At | Type |
+----+-
| 62 | - | nail-5300-2 | nail-5300-1 | nail-5300-2 | 10.43.202.88 | completed | 9fc7f971-
| 63 | - | nail-5300-2 | nail-5300-1 | nail-5300-2 | 10.43.202.88 | completed | a90afe68-
| 64 | - | nail-5300-2 | nail-5300-1 | nail-5300-2 | 10.43.202.88 | completed | 52ad4bb1-
| 55 | nail-5300-1 | nail-5300-2 | nail-5300-1 | nail-5300-2 | 10.43.202.88 | confirmed | 9fc7f971-
| 53 | - | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | completed | 9fc7f971-
| 54 | - | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | completed | a90afe68-
| 61 | - | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | completed | 52ad4bb1-
| 57 | - | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | error | 52ad4bb1-
| 58 | - | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | error | 52ad4bb1-
| 59 | - | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | error | 52ad4bb1-
| 60 | - | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | error | 52ad4bb1-
| 56 | nail-5300-2 | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | confirmed | 9fc7f971-
| 65 | nail-5300-2 | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | confirmed | 9fc7f971-
| 66 | nail-5300-2 | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | confirmed | a90afe68-
| 67 | nail-5300-2 | nail-5300-1 | nail-5300-2 | nail-5300-1 | 10.43.203.85 | confirmed | 52ad4bb1-
+----+-
Changed in nova: | |
assignee: | nobody → tangxing (tang-xing) |
affects: | nova → python-novaclient |
Changed in python-novaclient: | |
status: | Incomplete → New |
I'm not sure which the api version you are using, we set sort dir/key to ['created_at', 'id']/['desc', 'desc'] by default in v2.59, see [1].
[1] https:/ /github. com/openstack/ nova/blob/ 7db20191206be45 4175e069cab0810 7a8c4fbe6f/ nova/api/ openstack/ compute/ migrations. py#L140