604e5b54fe
With this patch, cyborg can report accelerators information into placement. Then scheduer can find an appropriate host according to user requirements. This patch leverages Nova's code in order to avoid reinventing the wheel. It is batter that nova can split the placement client to a separated lib. So other projects can use it easily. This new client can support provider trees, that is needed by cyborg's different dirvers. We can create a sub provider tree easily by the follow method. class SchedulerReportClient(object): def get_provider_tree_and_ensure_root( self, context, rp_uuid, name=None, parent_provider_uuid=None) The patch include: 1. add get_ksa_adapter for placement client 2. add placement client 3. update placement config Missing testcase for this patch. Change-Id: I1ad9d525fa070dfa0f7cbf374003a74c50de17b4 |
||
---|---|---|
.. | ||
lib | ||
plugin.sh | ||
settings |