python-rtslib-fb needs to handle new attribute cpus_allowed_list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-rtslib-fb (Ubuntu) |
Fix Released
|
Critical
|
Sergio Durigan Junior | ||
Jammy |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
* getting information about "attached_luns" fails via python3-rtslib-fb when running the HWE kernel on jammy due to the new kernel module attribute cpus_allowed_list
* As a consequence, the following operations on jammy fails:
- creating an iSCSI target with Ceph-iSCSI service
https:/
(LUN.allocate) created test-iscsi-
(LUN.add_
tcmu-runner: tcmu_rbd_open:1162 rbd/test-
(LUN.add_
LUN alloc problem - Delete from LIO/backstores failed - [Errno 20] Not a directory: '/sys/kernel/
- targetcli clearconfig confirm=True
[Errno 20] Not a directory: '/sys/kernel/
- targetctl clear
$ sudo targetctl clear
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
funcs[
File "/usr/bin/
RTSRoot(
File "/usr/lib/
so.delete()
File "/usr/lib/
for lun in self._gen_
File "/usr/lib/
for tpgt_dir in listdir(
NotADirectoryError: [Errno 20] Not a directory: '/sys/kernel/
[ Test Plan ]
## create two VMs, one for the GA kernel and the other for the HWE kernel
for kernel in ga hwe; do
uvt-kvm create \
--cpu=4 --memory=4096 \
uvt-kvm wait rtslib-
uvt-kvm ssh rtslib-
uvt-kvm ssh rtslib-
done
## Install the HWE kernel and reboot
uvt-kvm ssh rtslib-
## Upgrade python3-rtslib-fb to the -proposed one
## create the test iSCSI target based on the quickstart guide in targetcli(8)
## https:/
cat <<EOF | sudo targetcli
backstores/fileio create test /tmp/test.img 100m;
iscsi/ create iqn.2006-
cd iscsi/iqn.
luns/ create /backstores/
set attribute generate_
EOF
## confirm the test iSCSI target is discoverable locally and confirm the discovered one is output in the terminal
sudo iscsiadm --mode discoverydb --type sendtargets \
--portal 127.0.0.1 --discover
## tear down the test iSCSI target and confirm there is no error returned
sudo targetcli clearconfig confirm=True
[ Where problems could occur ]
The worst case scenario is it could cause a regression to the environment where the GA kernel is still running since the fix is for newer kernels.
To mitigate the risk, the same test case will be run for both GA kernel and HWE kernel machines with -proposed package.
[ Other Info ]
* upstream fix https:/
====
python-rtslib-fb needs to properly handle the new kernel module attribute cpus_allowed_list.
This is causing a problem during targetcli-fb's autopkgtest on s390x:
Related branches
- git-ubuntu bot: Approve
- Lucas Kanashiro (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 113 lines (+91/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/handle-target-kernel-module-new-attribute-cpus_allow.patch (+82/-0)
debian/patches/series (+1/-0)
description: | updated |
Upstream fix: https:/ /github. com/open- iscsi/rtslib- fb/commit/ 8d2543c4da62e96 2661011fea5b192 52b9660822