Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotADirectoryError: [Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list' #195

Open
lentilwallop opened this issue Sep 13, 2023 · 7 comments

Comments

@lentilwallop
Copy link

under linux-6.3, when attempting to delete a backstore/fileio, i get:
NotADirectoryError: [Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list'

offending line (tcm.py line 215 in my version):
"for tpgt_dir in listdir(tpgts_base):"
https://github.com/open-iscsi/rtslib-fb/blob/c1378f28f7abce6f8993a43c34d5e287b092bb1e/rtslib/tcm.py#L218C8-L218C8

@maurizio-lombardi
Copy link
Collaborator

Which version of rtslib/targetcli are you using?

@urb31075
Copy link

It worked when installing Linux. Today this error suddenly appeared. There may have been a system update.
targetcli-error

@urb31075
Copy link

How to view the rtslib version?

@gkyildirim
Copy link

Same problem here. This is Ubuntu 22.04 with a custom kernel.

uname -a
Linux SHARED-DISKS 6.5.10-zabbly+ #ubuntu22.04 SMP PREEMPT_DYNAMIC Fri Nov  3 13:33:23 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
dpkg -l | grep LIO
ii  python3-rtslib-fb               2.1.74-0ubuntu4                         all          object API for managing the Linux LIO kernel target - Python 3.x
ii  targetcli-fb                    1:2.1.53-1ubuntu3                       all          Command shell for managing the Linux LIO kernel target

@urb31075
Copy link

urb31075 commented Nov 21, 2023

dupel:~ uname -a
Linux dupel 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct  9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
dupel:~ dpkg -l | grep LIO
ii  python3-rtslib-fb                          2.1.74-0ubuntu4                         all          object API for managing the Linux LIO kernel target - Python 3.x
ii  targetcli-fb                               1:2.1.53-1ubuntu3                       all          Command shell for managing the Linux LIO kernel target
dupel:~

@gkyildirim
Copy link

Maybe this helps?

https://aur.archlinux.org/packages/targetcli-fb

@maurizio-lombardi
Copy link
Collaborator

@urb31075 @gkyildirim This was fixed in rtslib 2.1.75 more than 1 year ago. Ubuntu / Debian should update their packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants