Bug 2098467 - [abrt] target-restore: _gen_attached_luns(): tcm.py:215:_gen_attached_luns:NotADirectoryError: [Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list'
Summary: [abrt] target-restore: _gen_attached_luns(): tcm.py:215:_gen_attached_luns:No...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-rtslib
Version: 36
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Maurizio Lombardi
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:dd5d3ef15a4ea2977bac74ad736...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-19 18:20 UTC by Juan Orti
Modified: 2022-06-29 02:06 UTC (History)
4 users (show)

Fixed In Version: python-rtslib-2.1.75-1.fc36
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-29 02:06:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.55 KB, text/plain)
2022-06-19 18:20 UTC, Juan Orti
no flags Details
File: cpuinfo (3.02 KB, text/plain)
2022-06-19 18:20 UTC, Juan Orti
no flags Details
File: environ (297 bytes, text/plain)
2022-06-19 18:20 UTC, Juan Orti
no flags Details
File: mountinfo (3.92 KB, text/plain)
2022-06-19 18:20 UTC, Juan Orti
no flags Details
File: namespaces (172 bytes, text/plain)
2022-06-19 18:20 UTC, Juan Orti
no flags Details
File: open_fds (348 bytes, text/plain)
2022-06-19 18:20 UTC, Juan Orti
no flags Details

Description Juan Orti 2022-06-19 18:20:17 UTC
Version-Release number of selected component:
target-restore-2.1.74-6.fc36

Additional info:
reporter:       libreport-2.17.1
cgroup:         0::/system.slice/target.service
cmdline:        /usr/bin/python3 -s /usr/bin/targetctl clear
crash_function: _gen_attached_luns
exception_type: NotADirectoryError
executable:     /usr/bin/targetctl
interpreter:    python3-3.10.4-1.fc36.x86_64
kernel:         5.18.5-200.fc36.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
tcm.py:215:_gen_attached_luns:NotADirectoryError: [Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list'

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.10/site-packages/rtslib_fb/root.py", line 318, in clear_existing
    so.delete()
  File "/usr/lib/python3.10/site-packages/rtslib_fb/tcm.py", line 269, in delete
    for lun in self._gen_attached_luns():
  File "/usr/lib/python3.10/site-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'

Local variables in innermost frame:
self: <FileIOStorageObject fileio/rhv-01>
isdir: <function isdir at 0x7f9727071ea0>
islink: <function islink at 0x7f9727072950>
listdir: <built-in function listdir>
realpath: <function realpath at 0x7f9727072d40>
path: '/sys/kernel/config/target/core/fileio_0/rhv-01'
RTSRoot: <class 'rtslib_fb.root.RTSRoot'>
LUN: <class 'rtslib_fb.target.LUN'>
TPG: <class 'rtslib_fb.target.TPG'>
Target: <class 'rtslib_fb.target.Target'>
target_names_excludes: {'discovery_auth', 'version', 'lio_version'}
base: '/sys/kernel/config/target/iscsi'
fm: <rtslib_fb.fabric.ISCSIFabricModule object at 0x7f9726bd4670>
tgt_dir: 'cpus_allowed_list'
tpgts_base: '/sys/kernel/config/target/iscsi/cpus_allowed_list'

Comment 1 Juan Orti 2022-06-19 18:20:20 UTC
Created attachment 1891185 [details]
File: backtrace

Comment 2 Juan Orti 2022-06-19 18:20:22 UTC
Created attachment 1891186 [details]
File: cpuinfo

Comment 3 Juan Orti 2022-06-19 18:20:23 UTC
Created attachment 1891187 [details]
File: environ

Comment 4 Juan Orti 2022-06-19 18:20:24 UTC
Created attachment 1891188 [details]
File: mountinfo

Comment 5 Juan Orti 2022-06-19 18:20:25 UTC
Created attachment 1891189 [details]
File: namespaces

Comment 6 Juan Orti 2022-06-19 18:20:26 UTC
Created attachment 1891190 [details]
File: open_fds

Comment 7 Fedora Update System 2022-06-20 08:46:53 UTC
FEDORA-2022-c8bc506c49 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c8bc506c49

Comment 8 Fedora Update System 2022-06-21 01:29:47 UTC
FEDORA-2022-c8bc506c49 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-c8bc506c49`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-c8bc506c49

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2022-06-29 02:06:46 UTC
FEDORA-2022-c8bc506c49 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.