c9277285a3
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 |
||
---|---|---|
cyborg | ||
devstack | ||
doc | ||
etc/cyborg | ||
playbooks/legacy/cyborg-devstack | ||
releasenotes | ||
sandbox | ||
setup | ||
tools/config | ||
.gitignore | ||
.gitreview | ||
.stestr.conf | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
babel.cfg | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
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.
- Free software: Apache license
- Source: https://git.openstack.org/cgit/openstack/cyborg
- Bugs: https://bugs.launchpad.net/openstack-cyborg
- Blueprints: https://blueprints.launchpad.net/openstack-cyborg
Features
- REST API for basic accelerator life cycle management
- Generic driver for common accelerator support