[Bug 1988366] Re: python-rtslib-fb needs to handle new attribute cpus_allowed_list

Nobuto Murata 1988366 at bugs.launchpad.net
Thu Mar 21 13:49:45 UTC 2024


Ceph-iSCSI is a bit complicated example as a reproducer
https://docs.ceph.com/en/quincy/rbd/iscsi-overview/
But the simplest reproducer is `targetctl clear` with jammy HWE kernel.

$ 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'

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-rtslib-fb in Ubuntu.
https://bugs.launchpad.net/bugs/1988366

Title:
  python-rtslib-fb needs to handle new attribute cpus_allowed_list

Status in python-rtslib-fb package in Ubuntu:
  Fix Released

Bug 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-rtslib-fb/+bug/1988366/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list