Commit ed87f79
committed
Correct REST API response fields for /os-migrations API
The compute APIs are unfortunately inconsistent with regard to the
response parameters for migrations.
* GET /servers/{server_id}/migrations returns server_uuid
* GET /os-migrations returns instance_uuid
Because the 'Server UUID' column is being specified for parsing the
response from GET /os-migrations, it is always showing as an empty
string to users.
There are a few other mismatches between the column names and the REST
API response fields [1]:
* 'Old Flavor' vs 'old_instance_type_id'
* 'New Flavor' vs 'new_instance_type_id'
* 'Type' vs 'migration_type'
This adds a new list containing the REST API response field names to
pass to utils.get_item_properties so that the responses are correctly
parsed and the client output contains the response data instead of
empty strings.
Story: 2009078
Task: 42890
[1] https://docs.openstack.org/api-ref/compute/?expanded=list-migrations-detail#list-migrations
Change-Id: I8aab60619e0225047f6a1c31e44917ca8fcc799e1 parent 59256be commit ed87f79
3 files changed
Lines changed: 77 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2781 | 2781 | | |
2782 | 2782 | | |
2783 | 2783 | | |
2784 | | - | |
| 2784 | + | |
2785 | 2785 | | |
2786 | 2786 | | |
2787 | 2787 | | |
2788 | 2788 | | |
2789 | 2789 | | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
2790 | 2798 | | |
2791 | 2799 | | |
2792 | | - | |
| 2800 | + | |
| 2801 | + | |
2793 | 2802 | | |
2794 | 2803 | | |
2795 | | - | |
2796 | | - | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
2797 | 2808 | | |
2798 | 2809 | | |
2799 | 2810 | | |
2800 | | - | |
| 2811 | + | |
| 2812 | + | |
2801 | 2813 | | |
2802 | | - | |
| 2814 | + | |
| 2815 | + | |
2803 | 2816 | | |
2804 | 2817 | | |
2805 | | - | |
| 2818 | + | |
2806 | 2819 | | |
2807 | 2820 | | |
2808 | 2821 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1587 | 1587 | | |
1588 | 1588 | | |
1589 | 1589 | | |
1590 | | - | |
| 1590 | + | |
1591 | 1591 | | |
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
1596 | | - | |
| 1596 | + | |
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | | - | |
1603 | | - | |
| 1602 | + | |
| 1603 | + | |
1604 | 1604 | | |
1605 | 1605 | | |
1606 | 1606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4909 | 4909 | | |
4910 | 4910 | | |
4911 | 4911 | | |
| 4912 | + | |
| 4913 | + | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
4912 | 4919 | | |
4913 | 4920 | | |
4914 | 4921 | | |
| |||
4920 | 4927 | | |
4921 | 4928 | | |
4922 | 4929 | | |
4923 | | - | |
| 4930 | + | |
4924 | 4931 | | |
4925 | 4932 | | |
4926 | 4933 | | |
| |||
4982 | 4989 | | |
4983 | 4990 | | |
4984 | 4991 | | |
| 4992 | + | |
| 4993 | + | |
| 4994 | + | |
| 4995 | + | |
| 4996 | + | |
| 4997 | + | |
| 4998 | + | |
4985 | 4999 | | |
4986 | 5000 | | |
4987 | 5001 | | |
| |||
5019 | 5033 | | |
5020 | 5034 | | |
5021 | 5035 | | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
| 5039 | + | |
| 5040 | + | |
| 5041 | + | |
| 5042 | + | |
| 5043 | + | |
5022 | 5044 | | |
5023 | 5045 | | |
5024 | 5046 | | |
| |||
5125 | 5147 | | |
5126 | 5148 | | |
5127 | 5149 | | |
| 5150 | + | |
| 5151 | + | |
| 5152 | + | |
| 5153 | + | |
| 5154 | + | |
| 5155 | + | |
| 5156 | + | |
| 5157 | + | |
5128 | 5158 | | |
5129 | 5159 | | |
5130 | 5160 | | |
| |||
5194 | 5224 | | |
5195 | 5225 | | |
5196 | 5226 | | |
| 5227 | + | |
| 5228 | + | |
| 5229 | + | |
| 5230 | + | |
| 5231 | + | |
| 5232 | + | |
| 5233 | + | |
| 5234 | + | |
5197 | 5235 | | |
5198 | 5236 | | |
5199 | 5237 | | |
| |||
5247 | 5285 | | |
5248 | 5286 | | |
5249 | 5287 | | |
| 5288 | + | |
| 5289 | + | |
5250 | 5290 | | |
5251 | 5291 | | |
5252 | 5292 | | |
5253 | 5293 | | |
| 5294 | + | |
| 5295 | + | |
5254 | 5296 | | |
5255 | 5297 | | |
5256 | 5298 | | |
| |||
5309 | 5351 | | |
5310 | 5352 | | |
5311 | 5353 | | |
| 5354 | + | |
| 5355 | + | |
5312 | 5356 | | |
5313 | 5357 | | |
5314 | 5358 | | |
5315 | 5359 | | |
| 5360 | + | |
| 5361 | + | |
5316 | 5362 | | |
5317 | 5363 | | |
5318 | 5364 | | |
| |||
5371 | 5417 | | |
5372 | 5418 | | |
5373 | 5419 | | |
| 5420 | + | |
| 5421 | + | |
5374 | 5422 | | |
5375 | 5423 | | |
| 5424 | + | |
| 5425 | + | |
5376 | 5426 | | |
5377 | 5427 | | |
5378 | 5428 | | |
5379 | 5429 | | |
| 5430 | + | |
5380 | 5431 | | |
| 5432 | + | |
5381 | 5433 | | |
5382 | 5434 | | |
5383 | 5435 | | |
| |||
0 commit comments