rtslib-fb is a Python object API for managing the Linux kernel SCSI target subsystem (LIO). Version 2.2.4 requires Python >=3.9 and is actively maintained under the open-iscsi organization on GitHub. It provides classes to configure iSCSI, Fibre Channel, and other target backstores, ACLs, and LUNs.
pip install rtslib-fbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize RTSRoot and list existing targets and backstores.
Run the Python script with sudo or as root.
Replace all imports of rtslib with rtslib_fb (e.g., from rtslib_fb.root import RTSRoot).
Ensure no other process is modifying LIO config concurrently, or use locking mechanisms.
Change import to 'rtslib_fb' (e.g., 'from rtslib_fb.root import RTSRoot').
Run the script with sudo or as root user.
Use 'from rtslib_fb.target import Target'.