This change refactors database session management and aligns unit tests with the production DB context handling. - Replace _session_for_read() and _session_for_write() helpers with @main_context_manager.reader / @main_context_manager.writer decorators to simplify and standardize DB access. - Update DB API methods to use context.session directly and rely on centralized transaction management through enginefacade. - Switch tests to use cyborg.context.RequestContext instead of oslo_context.RequestContext for consistent context propagation. Closes-Bug: #2061130 Change-Id: Idf7714ec9fa57b4885bd5679f431cdeac2ad1497 Signed-off-by: Sooyoung Kim <sykim.etri@gmail.com>
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
- Wiki: https://wiki.openstack.org/wiki/Cyborg
- Source: https://opendev.org/openstack/cyborg
- Blueprints: https://blueprints.launchpad.net/openstack-cyborg
- Bugs: https://bugs.launchpad.net/openstack-cyborg
- Documentation: https://docs.openstack.org/cyborg/latest/
- Release notes: https://docs.openstack.org/releasenotes/cyborg/
- Design specifications: https://specs.openstack.org/openstack/cyborg-specs/
Features
- REST API for basic accelerator life cycle management
- Generic driver for common accelerator support
Description
Languages
Python
98.7%
Shell
1.2%