The test case in the description succeeded for both the GA kernel and HWE kernel for jammy.
[GA kernel]
ubuntu@rtslib-fb-sru-testing-ga:~$ apt policy python3-rtslib-fb
python3-rtslib-fb:
Installed: 2.1.74-0ubuntu4.1
Candidate: 2.1.74-0ubuntu4.1
Version table:
*** 2.1.74-0ubuntu4.1 500
500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
100 /var/lib/dpkg/status
2.1.74-0ubuntu4 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
ubuntu@rtslib-fb-sru-testing-ga:~$ ## 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 < Created fileio test with size 104857600
/> Created target iqn.2006-04.com.example:test-target.
Created TPG 1.
Global pref auto_add_default_portal=true
Created default portal listening on all IPs (0.0.0.0), port 3260.
/> /iscsi/iqn.20...t-target/tpg1> Created LUN 0.
/iscsi/iqn.20...t-target/tpg1> Parameter generate_node_acls is now '1'.
/iscsi/iqn.20...t-target/tpg1> exit
Global pref auto_save_on_exit=true
Configuration saved to /etc/rtslib-fb-target/saveconfig.json
ubuntu@rtslib-fb-sru-testing-ga:~$ ## 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
127.0.0.1:3260,1 iqn.2006-04.com.example:test-target
ubuntu@rtslib-fb-sru-testing-ga:~$ ## tear down the test iSCSI target and confirm there is no error returned
sudo targetcli clearconfig confirm=True
All configuration cleared
[HWE kernel]
ubuntu@rtslib-fb-sru-testing-hwe:~$ apt policy python3-rtslib-fb
python3-rtslib-fb:
Installed: 2.1.74-0ubuntu4.1
Candidate: 2.1.74-0ubuntu4.1
Version table:
*** 2.1.74-0ubuntu4.1 500
500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
100 /var/lib/dpkg/status
2.1.74-0ubuntu4 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
ubuntu@rtslib-fb-sru-testing-hwe:~$ ## 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 < Created fileio test with size 104857600
/> Created target iqn.2006-04.com.example:test-target.
Created TPG 1.
Global pref auto_add_default_portal=true
Created default portal listening on all IPs (0.0.0.0), port 3260.
/> /iscsi/iqn.20...t-target/tpg1> Created LUN 0.
/iscsi/iqn.20...t-target/tpg1> Parameter generate_node_acls is now '1'.
/iscsi/iqn.20...t-target/tpg1> exit
Global pref auto_save_on_exit=true
Configuration saved to /etc/rtslib-fb-target/saveconfig.json
ubuntu@rtslib-fb-sru-testing-hwe:~$ ## 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
127.0.0.1:3260,1 iqn.2006-04.com.example:test-target
ubuntu@rtslib-fb-sru-testing-hwe:~$ ## tear down the test iSCSI target and confirm there is no error returned
sudo targetcli clearconfig confirm=True
All configuration cleared
ubuntu@rtslib-fb-sru-testing-hwe:~$ uname -a
Linux rtslib-fb-sru-testing-hwe 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux