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