forked from openstack/placement
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow switching resources on overused providers
When a resource-provider gets overused, e.g. because a host in the cluster it represents goes down or because one memory DIMM of multiple fails, we need to be able to (offline) migrate/resize a VM to reduce the pressure on the host. For that, we check in the call setting the allocations if for every allocation with a value for a resource, there's also an allocation removing such a resource - namely switching the allocations from one consumer to another as is done for migrations.
- Loading branch information
1 parent
4d3df47
commit 2691056
Showing
2 changed files
with
153 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters