User can't know which flavor used for resize by the result of "nova migration-list"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Low
|
Unassigned |
Bug Description
Description
===========
Users use "nova migration-list | grep resize" to see resize operation records, but they can't know which flavor is used for resize. Because "migrations" table record new flavor information using flavor's id which is consistent with "id" in "flavors" table, but users only can see 'flavorid' by "nova flavor-list".
Steps to reproduce
==================
* I did create two flavor
nova flavor-create test_01 test_01 128 1 1
nova flavor-create test_02 test_02 256 2 2
* then I did create an instance
nova boot --flavor test_01 --image abac216f-
* then I did resize instance from test_01 to test_02
nova resize e0661223-
* the I did look for resize migration records
nova migration-list | grep resize
| 204 | computer1 | ctrl3 | computer1 | ctrl3 | 193.168.1.13 | finished | e0661223-
old flavor is 1, new flavor is 2
* I did search all flavors
nova flavor-list
+------
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+------
| test_01 | test_01 | 128 | 1 | 0 | | 1 | 1.0 | True |
| test_02 | test_02 | 256 | 2 | 0 | | 2 | 1.0 | True
+------
Expected result
===============
As a user, I want to know which flavor is "2"?
for example:
nova migration-list | grep resize
| 204 | computer1 | ctrl3 | computer1 | ctrl3 | 193.168.1.13 | finished | e0661223-
Actual result
=============
User can't know what kind of flavor is "2"?
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
Pike
Changed in nova: | |
importance: | Undecided → Low |
description: | updated |
nova migration-list return flavorid instead of instance_type_id.
I will upload a patch set to fix it.