Public bug reported: This is similar to bug 1712718 but instead of the case that we're creating a new instance (or unshelving an offloaded instance), this is the case that a resize/cold migration fails it's pre-check or claim on the destination host and gets rescheduled:
https://github.com/openstack/nova/blob/16.0.0.0rc1/nova/compute/manager.py#L3801 That is called from prep_resize which happens on the destination node, so we should call SchedulerReportClient.remove_provider_from_instance_allocation in that case to remove the allocations against the destination node before rescheduling. Note that we can't just remove all allocations since that would remove the allocations that already exist on the source node for the instance during a resize/migrate. ** Affects: nova Importance: High Status: Triaged ** Tags: migrate pike-rc-potential placement resize -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1712850 Title: Allocations are not removed from destination node when rescheduling during resize/migrate Status in OpenStack Compute (nova): Triaged Bug description: This is similar to bug 1712718 but instead of the case that we're creating a new instance (or unshelving an offloaded instance), this is the case that a resize/cold migration fails it's pre-check or claim on the destination host and gets rescheduled: https://github.com/openstack/nova/blob/16.0.0.0rc1/nova/compute/manager.py#L3801 That is called from prep_resize which happens on the destination node, so we should call SchedulerReportClient.remove_provider_from_instance_allocation in that case to remove the allocations against the destination node before rescheduling. Note that we can't just remove all allocations since that would remove the allocations that already exist on the source node for the instance during a resize/migrate. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1712850/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

