Re: [Nova] How to (live-) migrate instances in a server-group with affinity to another host?

Jesper Schmitz Mouridsen jesper at schmitz.computer
Thu Jun 1 20:31:36 UTC 2023


--force iirc

Den 1. juni 2023 22.03.57 CEST, Christian Rohmann <christian.rohmann at inovex.de> skrev:
>Hello OpenStack-Discuss,
>
>I was wondering how I as an admin can (live-)migrate instances for which the user applied a server-group with affinity.
>Looking at the API ([1]), there is no (obvious) way to migrate multiple instances or a server-group "en bloc".
>
>But migrating a single instance out of a group does result in:
>
>> [...]
>> 2023-06-01 12:20:00.489 6910 INFO nova.scheduler.host_manager [req-01d9 83eb5 9c8353142098 - default default] Host filter ignoring hosts:
>> 2023-06-01 12:20:00.490 6910 INFO nova.filters [req-01d9 83eb5 9c8353142098 - default default] Filter ServerGroupAffinityFilter returned 0 hosts
>> 2023-06-01 12:20:00.491 6910 INFO nova.filters [req-01d9 83eb5 9c8353142098 - default default] Filtering removed all hosts for the request with instance ID '2476cfdd-9315-4bff-ba3e-d3be5874593f'. Filter results: ['AvailabilityZoneFilter: (start: 10, end: 10)', 'ComputeFilter: (start: 10, end: 10)', 'ComputeCapabilitiesFilter: (start: 10, end: 9)', 'ImagePropertiesFilter: (start: 9, end: 9)', 'ServerGroupAntiAffinityFilter: (start: 9, end: 9)', 'ServerGroupAffinityFilter: (start: 9, end: 0)']
>> [...] 
>
>Am I missing something here? Or am I just holding this wrong?
>
>
>
>Regards
>
>Christian
>
>
>
>[1] https://docs.openstack.org/api-ref/compute/?expanded=force-migration-complete-action-force-complete-action-detail#live-migrate-server-os-migratelive-action
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230601/a1ed0f36/attachment.htm>


More information about the openstack-discuss mailing list