b96d0e2570
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 |
||
---|---|---|
.. | ||
__init__.py | ||
manager.py | ||
resource_tracker.py | ||
rpcapi.py |