Re:Re: [lists.openstack.org代发][nova] ask some questions about flavor
Rambo
lijie at unitedstack.com
Wed Mar 4 09:31:34 UTC 2020
Oh,no. I know we support to get the list migrations filter by "migration-type". Actually, I just want to know why the "new_instance_type_id" and "old_instance_type_id" in response of list_migrations the response should be an *internal* value.
------------------ Original ------------------
From: "Brin Zhang(张百林)";
Date: 2020年3月4日(星期三) 下午5:09
To: "lijie at unitedstack.com"; "openstack-discuss at lists.openstack.org";
Subject: Re: [lists.openstack.org代发][nova] ask some questions about flavor
Items: [lists.openstack.org代发][nova] ask some questions about flavor
Hi,all:
> I have two questions about the flavor. One is the property "OS-FLV-DISABLED:disabled" defined when we created the flavor, but there is no method to change the property. And I see a patch about this [1], but it is abandoned. So I want to know our community how
> to consider this function.
"OS-FLV-DISABLED:disabled", this is typically only visible to administrative users. I'm not sure if it is worth supporting the modification/update. I think it should be planned in advance for managers. If the specific extra spec bound to flavor is only used as a dedicated flavor.
> Another one is when we call the "list-migrations" api, why we receive the new_instance_type_id and old_instance_type_id in response of list_migrations should be internal value for the migration-type is "resize"[2]? Maybe the value should be exposed on REST
> API, so that we can know which is the old flavor.
In microversion 2.23 we support to show “migration-type” in the List Migrations API [1][2], I think you call List Migrations REST API is not add the “OpenStack-API-Version” or “X-OpenStack-Nova-API-Version”, right?
And you can get the list migrations filter by “migration-type” (enum in: evacuation, live-migration, migration (cold), resize), as the call such as: http://192.168.2.11/compute/v2.1/os-migrations?migration_type=resize that show what migration type what you want.
[1] API changes: https://docs.openstack.org/api-ref/compute/?expanded=list-migrations-detail,show-migration-details-detail,id320-detail#list-migrations
[2] microverion 2.3: https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id21
> Can you tell me more about this? Thank you very much.
Ref:
[1]:https://review.opendev.org/#/c/61291/
[2]:https://review.opendev.org/#/c/588481/
Best Regards
Rambo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200304/6a4ce034/attachment.html>
More information about the openstack-discuss
mailing list