2022-09-01 02:39:36 |
Sergio Durigan Junior |
bug |
|
|
added bug |
2022-09-01 02:39:42 |
Sergio Durigan Junior |
python-rtslib-fb (Ubuntu): importance |
Undecided |
Critical |
|
2022-09-01 04:05:23 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~sergiodj/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/429265 |
|
2022-09-02 19:22:53 |
Launchpad Janitor |
python-rtslib-fb (Ubuntu): status |
In Progress |
Fix Released |
|
2024-03-21 10:48:59 |
Nobuto Murata |
bug |
|
|
added subscriber Nobuto Murata |
2024-03-22 11:57:33 |
Nobuto Murata |
description |
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:
https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic/kinetic/s390x/t/targetcli-fb/20220830_075622_04113@/log.gz |
[ 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://docs.ceph.com/en/quincy/rbd/iscsi-target-cli/
(LUN.allocate) created test-iscsi-pool/disk_1 successfully
(LUN.add_dev_to_lio) Adding image 'test-iscsi-pool/disk_1' to LIO backstore user:rbd
tcmu-runner: tcmu_rbd_open:1162 rbd/test-iscsi-pool.disk_1: address: {172.16.12.185:0/2337103748}
(LUN.add_dev_to_lio) Successfully added test-iscsi-pool/disk_1 to LIO
LUN alloc problem - Delete from LIO/backstores failed - [Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list'
- targetcli clearconfig confirm=True
[Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list'
- targetctl clear
$ sudo targetctl clear
Traceback (most recent call last):
File "/usr/bin/targetctl", line 82, in <module>
main()
File "/usr/bin/targetctl", line 79, in main
funcs[sys.argv[1]](savefile)
File "/usr/bin/targetctl", line 57, in clear
RTSRoot().clear_existing(confirm=True)
File "/usr/lib/python3/dist-packages/rtslib_fb/root.py", line 318, in clear_existing
so.delete()
File "/usr/lib/python3/dist-packages/rtslib_fb/tcm.py", line 269, in delete
for lun in self._gen_attached_luns():
File "/usr/lib/python3/dist-packages/rtslib_fb/tcm.py", line 215, in _gen_attached_luns
for tpgt_dir in listdir(tpgts_base):
NotADirectoryError: [Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list'
[ 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 \
rtslib-fb-sru-testing-$kernel \
release=jammy
uvt-kvm wait rtslib-fb-sru-testing-$kernel
uvt-kvm ssh rtslib-fb-sru-testing-$kernel 'sudo apt-get update && sudo apt-get upgrade -y'
uvt-kvm ssh rtslib-fb-sru-testing-$kernel 'sudo apt-get install -y python3-rtslib-fb targetcli-fb'
done
## Install the HWE kernel and reboot
uvt-kvm ssh rtslib-fb-sru-testing-hwe 'sudo apt-get install -y linux-generic-hwe-22.04 && sudo reboot'
## Upgrade python3-rtslib-fb to the -proposed one
## create the test iSCSI target based on the quickstart guide in targetcli(8)
## https://manpages.ubuntu.com/manpages/jammy/en/man8/targetcli.8.html
cat <<EOF | sudo targetcli
backstores/fileio create test /tmp/test.img 100m;
iscsi/ create iqn.2006-04.com.example:test-target;
cd iscsi/iqn.2006-04.com.example:test-target/tpg1/;
luns/ create /backstores/fileio/test;
set attribute generate_node_acls=1;
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://github.com/open-iscsi/rtslib-fb/commit/8d2543c4da62e962661011fea5b19252b9660822
====
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:
https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic/kinetic/s390x/t/targetcli-fb/20220830_075622_04113@/log.gz |
|
2024-03-22 16:57:32 |
James Page |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2024-03-22 21:43:17 |
Ubuntu Archive Robot |
bug |
|
|
added subscriber James Page |
2024-03-27 16:17:10 |
Nobuto Murata |
bug |
|
|
added subscriber Canonical Field High |
2024-04-03 16:46:47 |
Robie Basak |
nominated for series |
|
Ubuntu Jammy |
|
2024-04-03 16:46:47 |
Robie Basak |
bug task added |
|
python-rtslib-fb (Ubuntu Jammy) |
|
2024-04-03 16:46:52 |
Robie Basak |
python-rtslib-fb (Ubuntu Jammy): status |
New |
Incomplete |
|
2024-06-10 18:28:53 |
Mauricio Faria de Oliveira |
bug |
|
|
added subscriber Mauricio Faria de Oliveira |
2024-06-10 18:29:09 |
Mauricio Faria de Oliveira |
python-rtslib-fb (Ubuntu Jammy): status |
Incomplete |
Triaged |
|
2024-06-10 18:29:11 |
Mauricio Faria de Oliveira |
python-rtslib-fb (Ubuntu Jammy): importance |
Undecided |
Medium |
|
2024-06-10 18:29:14 |
Mauricio Faria de Oliveira |
python-rtslib-fb (Ubuntu Jammy): assignee |
|
Mauricio Faria de Oliveira (mfo) |
|
2024-06-19 15:53:16 |
Mauricio Faria de Oliveira |
python-rtslib-fb (Ubuntu Jammy): status |
Triaged |
In Progress |
|
2024-07-05 13:31:46 |
Timo Aaltonen |
python-rtslib-fb (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2024-07-05 13:31:48 |
Timo Aaltonen |
bug |
|
|
added subscriber SRU Verification |
2024-07-05 13:32:06 |
Timo Aaltonen |
tags |
server-todo update-excuse |
server-todo update-excuse verification-needed verification-needed-jammy |
|
2024-07-13 15:09:19 |
Nobuto Murata |
tags |
server-todo update-excuse verification-needed verification-needed-jammy |
server-todo update-excuse verification-done verification-done-jammy |
|
2024-07-15 10:34:29 |
Ćukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2024-07-15 10:35:56 |
Launchpad Janitor |
python-rtslib-fb (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|