forked from openstack/nova
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distinguish resize from offline migrate in scheduler
The scheduler reacts to the scheduler-hint `_nova_check_type`. To be able to have specific filters/weighers for resize, we set this scheduler-hint to "resize" already. Since resizes and offline migrations take the same code path and only differ in having a flavor change or not, we used to set "resize" also for offline migrations. In the future, we want to be able to distinguish between offline migrations and resizes, because one is triggered by customers and the other can only be triggered by admins. Therefore, we introduce another `_nova_check_type` "migrate". There's also already another `_nova_check_type` "live_migrate", so "migrate" does not clash there. To help in finding an offline migration scheduling request in the scheduler, we add the helper function `request_is_migrate()` in the same spirit as the already existing functions for "resize" and "live_migrate". Change-Id: Id8915a2eb52025e31604af8dde53343ab980ca3e
- Loading branch information
1 parent
7cb4383
commit b00d74f
Showing
3 changed files
with
23 additions
and
3 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
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