Conductor: Initial Move Cold Migrations To Conductor work

Registered by Dan Smith

Regular resize/migrate functions should move to conductor to set out the path for the other migrate-related functions and how they will co-exist. Also to define how conductor will drive these processes without state in the compute nodes.

Blueprint information

Status:
Complete
Approver:
Russell Bryant
Priority:
Low
Drafter:
None
Direction:
Approved
Assignee:
Tiago Mello
Definition:
Approved
Series goal:
Accepted for icehouse
Implementation:
Implemented
Milestone target:
milestone icon 2014.1
Started by
Russell Bryant
Completed by
John Garbutt

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/cold-migrations-to-conductor,n,z

Addressed by: https://review.openstack.org/28457
    Refactors resize_instance and move it to conductor

Addressed by: https://review.openstack.org/30886
    Adds cold migrate call in conductor

Addressed by: https://review.openstack.org/31885
    Converts 'image' to json primitive on compute.rpcapi.prep_resize

Addressed by: https://review.openstack.org/31888
    Refactors scheduler.chance.select_hosts to raise NoValidHost

Addressed by: https://review.openstack.org/32040
    Moves scheduler.rpcapi.prep_resize call on compute.api to conductor

Addressed by: https://review.openstack.org/32503
    Moves compute.rpcapi.prep_resize call to scheduler.manager

Addressed by: https://review.openstack.org/34836
    Moves scheduler.manager._set_vm_state_and_notify to scheduler.utils

Addressed by: https://review.openstack.org/34879
    Adds compute_manager objet to ComputeTaskManager constructor

Addressed by: https://review.openstack.org/35364
    Refactos select_destinations to return HostState objects

Addressed by: https://review.openstack.org/35372
    Moves populate retry logic to the scheduler utils

Addressed by: https://review.openstack.org/34837
    Moves compute.rpcapi.prep_resize call to conductor [WIP]

Addressed by: https://review.openstack.org/36892
    Changes select_destinations to return a dict instead of an object

Addressed by: https://review.openstack.org/39935
    Exposes compute rt.resize_claim through compute.rpcapi

Addressed by: https://review.openstack.org/39936
    [WIP] Moves cold migration compute.manager.prep_resize code to conductor

Abandoned:
==========

https://review.openstack.org/#/c/28457/
https://review.openstack.org/#/c/30886/
https://review.openstack.org/#/c/39935/

Merged (Icehouse):
================

https://review.openstack.org/#/c/31885/
https://review.openstack.org/#/c/31888/
https://review.openstack.org/#/c/32040/
https://review.openstack.org/#/c/32503/
https://review.openstack.org/#/c/34836/
https://review.openstack.org/#/c/34879/
https://review.openstack.org/#/c/35364/
https://review.openstack.org/#/c/35372/
https://review.openstack.org/#/c/34837/
https://review.openstack.org/#/c/36892/

Pending changes:
===============

39936
77672

Apologies, this missed the deadline for Feature Freeze. Marking this one as Implemented, so please open a new blueprint for the remaining patches. Please rebase patches as soon as Juno opens, and we will try to get this in during that period. --johnthetubaguy (5th March 2014)

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.