cyborg/cyborg/agent
Shaohe Feng b96d0e2570 aggent support resource tracker for FPGA
use PeriodicTasks to track resources.

Info:
 https://docs.openstack.org/oslo.service/latest/reference/periodic_task.html

Aggent is a bridge for FPGA driver and conductor.
It gets the lastest informations and update them to conductor.

This patch we call conductor API directly instead of object
remotable method.  Will support it in the next version.

This patch depends on the FPGA driver patch and conductor patch.

How to test this patch:
1. apply the fpga driver patch
   https://review.openstack.org/#/c/531129
2. generate a sysfs fpga data
   $ ./cyborg/tests/unit/accelerator/drivers/fpga/intel/prepare_test_data.py
3. Change the SYS_FPGA in cyborg/accelerator/drivers/fpga/intel/sysinfo.py to
   "/tmp/sys/class/fpga"
4. change the SYS_FPGA_PATH in cyborg/accelerator/drivers/fpga/utils.py to
   "/tmp/sys/class/fpga"
5. restart agent.

The unittest for this patch will be in a separated patch, and comes out ASAP.

Co-Authored-By: Dolpher Du <Dolpher.Du@intel.com>

Change-Id: I5e487cf939aa65d0fc79399ddd5d1337a8c2fa98
2018-02-04 11:54:20 +00:00
..
__init__.py Cyborg deployment script 2017-08-30 09:27:56 -04:00
manager.py aggent support resource tracker for FPGA 2018-02-04 11:54:20 +00:00
resource_tracker.py aggent support resource tracker for FPGA 2018-02-04 11:54:20 +00:00
rpcapi.py Cyborg deployment script 2017-08-30 09:27:56 -04:00