Use Stevedore for managing scheduler drivers

Registered by Sylvain Bauza

Historically, the Scheduler Manager uses simple classloader for loading both Scheduler drivers (like FilterScheduler, CachingScheduler and ChanceScheduler) and Host Manager classes (HostManager and IronicHostManager).

Now, we really want to avoid having configuration options referencing full namespaces, we should rather move to stevedore and define entrypoints for that.

https://github.com/openstack/nova/blob/3d8191f6c71498bffdc4af411d5f94dc3042b3a3/nova/scheduler/manager.py#L37-L39
https://github.com/openstack/nova/blob/af2d6c9576b1ac5f3b3768870bb15d9b5cf1610b/nova/scheduler/driver.py#L30-L32

low-hanging-fruit

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
Low
Drafter:
Sylvain Bauza
Direction:
Approved
Assignee:
Yingxin
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-3
Started by
Yingxin
Completed by
John Garbutt

Related branches

Sprints

Whiteboard

Approving without spec --johnthetubaguy 20151116

Gerrit topic: https://review.openstack.org/#q,topic:bp/scheduler-driver-use-stevedore,n,z

Addressed by: https://review.openstack.org/246476
    Use stevedore for scheduler host manager

Addressed by: https://review.openstack.org/254768
    Use stevedore for scheduler driver

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.