Fix resource tracking for operations that move instances between hosts
Resource tracking for operations that move instances between compute hosts is
broken in Nova. The fix requires some refactoring and tweaking of the data
model so it's discussed in a spec. It's really about fixing of several long
standing bugs.
Blueprint information
- Status:
- Complete
- Approver:
- John Garbutt
- Priority:
- Medium
- Drafter:
- Nikola Đipanov
- Direction:
- Approved
- Assignee:
- Nikola Đipanov
- Definition:
- Approved
- Series goal:
- Accepted for liberty
- Implementation:
- Implemented
- Milestone target:
- 12.0.0
- Started by
- John Garbutt
- Completed by
- John Garbutt
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Fix resource tracking for operations that move instances between hosts
Addressed by: https:/
compute: rename ResizeClaim to MoveClaim
Addressed by: https:/
rt: generalize claim code tobe useful for other move actions
Addressed by: https:/
tests: move a test to the proper class in test_resource_
Addressed by: https:/
tests: Move test_resource_
Addressed by: https:/
Introduce a simple state machine module
Addressed by: https:/
Define migration states and transitions and use when changing status
Addressed by: https:/
rt: move filtering of mygration by type lower in the call stack
Addressed by: https:/
Allow for migration object to be passed to _move_claim
Addressed by: https:/
compute: Make rebuild_instance RPC take an optional migration
Addressed by: https:/
compute: Split the rebuild_instance method
Addressed by: https:/
compute: Make rebuild consider the node that was passed in
Addressed by: https:/
Make rebuild/evacuate use resource claims
Addressed by: https:/
db: Add the migration_context to the instance_extra table
Addressed by: https:/
objects: Add MigrationContext object
Addressed by: https:/
objects: Hook migration object into Instance
Addressed by: https:/
tests: Make test_claims use Instance object
Addressed by: https:/
Claims: Make sure move claims crate a migration context records
Addressed by: https:/
compute: migrate/resize paths properly handle stashed numa_topology
Addressed by: https:/
RT: Migration resource tracking uses migration context
Gerrit topic: https:/
This is the last patch we need to get merged for liberty:
https:/