Acceleration Management
Go to file
chenke c9277285a3 Fix method 'test_discover' assertError in test_driver.py
The error info as follows:

testtools.matchers._impl.MismatchError: !=:
reference = {'cpid_info': '0000:5e:00.0', 'cpid_type': 'pci'}
actual    = {'cpid_info': u'0000:be:00.0', 'cpid_type': u'pci'}

The reason for assertError is that 'intel-fpga-dev.2' is found
earilier than 'intel-fpga-dev.1' randomly because of the module
'glob.glob'.

In cyborg/accelerator/drivers/fpga/intel/sysinfo.py Line 81,
method all_pf_fpgas(), it use glob.glob(..) to find fpga dirvers.
However, this glob module does not guarantee that the file name
obtained is ordered.

For convenience, we can sort the fpgas before assert.

Reference docs:
https://docs.python.org/2.7/library/glob.html?highlight=glob#glob.glob
https://docs.python.org/2.7/library/os.html?highlight=listdir#os.listdir
http://landcareweb.com/questions/34393/an-ri-qi-shun-xu-sou-suo-glob

Change-Id: Ie9de5d7ec06064f557620ec4ee21f7bd776c2add
2019-03-20 11:47:02 +08:00
cyborg Fix method 'test_discover' assertError in test_driver.py 2019-03-20 11:47:02 +08:00
devstack Devstack enablement for OPAE FPGA driver. 2018-11-30 10:21:45 -08:00
doc Fix failures in v1 accelerator API. 2019-03-07 18:37:28 -08:00
etc/cyborg Load cyborg-api app with paste_deploy 2018-06-07 21:42:52 +08:00
playbooks/legacy/cyborg-devstack Move legacy jobs to project 2017-12-29 09:27:59 +01:00
releasenotes Add cyborg-status upgrade check command framework 2018-10-26 19:42:43 +05:30
sandbox Setup sandbox and specs folder 2017-03-14 01:16:33 +08:00
setup Cyborg deployment script 2017-08-30 09:27:56 -04:00
tools/config Fix tox -egenconfig 2018-06-10 16:37:40 +08:00
.gitignore Docs: Autogenerate config documentation 2018-08-08 01:26:38 +00:00
.gitreview Rename project in .gitreview 2017-01-13 08:08:37 +11:00
.stestr.conf Switch to stestr 2018-07-24 15:10:52 +07:00
.zuul.yaml switch documentation job to new PTI 2018-08-17 14:47:35 +09:00
CONTRIBUTING.rst Update and replace http with https for doc links in cyborg 2017-09-12 22:46:46 -07:00
HACKING.rst Add doc8 to pep8 check for cyborg project 2018-05-10 09:32:01 +07:00
LICENSE initial setup "correct tox.ini testr and test-requirement.txt requirement 2016-01-18 14:29:39 +08:00
README.rst Pike doc clean up 2017-09-13 10:51:11 -06:00
babel.cfg initial setup "correct tox.ini testr and test-requirement.txt requirement 2016-01-18 14:29:39 +08:00
requirements.txt Fix:add python-glanceclient to cyborg requirements 2019-02-27 17:30:05 +08:00
setup.cfg Add "Report device data to cyborg" 2018-12-16 18:22:49 +08:00
setup.py uncap eventlet 2018-05-07 17:42:19 +03:00
test-requirements.txt Follow the new PTI for document build 2018-08-11 12:55:49 +08:00
tox.ini Fix tox -e py27 2019-01-11 04:53:13 -05:00

README.rst

Cyborg

OpenStack Acceleration as a Service

Cyborg provides a general management framework for accelerators such as FPGA, GPU, SoCs, NVMe SSDs, CCIX caches, DPDK/SPDK, pmem and so forth.

Features

  • REST API for basic accelerator life cycle management
  • Generic driver for common accelerator support