-
Notifications
You must be signed in to change notification settings - Fork 69
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
targetcli sessions
does not show dynamic sessions
#120
Comments
iammattcoleman
changed the title
sessions are not listed for dynamic ACLs
sessions are not listed for dynamic sessions
Jun 22, 2018
iammattcoleman
changed the title
sessions are not listed for dynamic sessions
Jun 22, 2018
targetcli sessions list
does not show dynamic sessions
iammattcoleman
changed the title
Jun 22, 2018
targetcli sessions list
does not show dynamic sessionstargetcli sessions
does not show dynamic sessions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In demo mode, sessions listed in the TPG's
dynamic_sessions
file in configfs are not shown intargetcli sessions list
ortargetcli sessions detail
. This appears to be the same issue described in this RedHat Bugzilla ticket: https://bugzilla.redhat.com/show_bug.cgi?id=1161489I'm running my tests on Ubuntu 18.04, which has kernel 4.15.0-23 and targetcli-fb 2.1.43-1 (aka 2.1fb43).
For example, if a target has an open session...
If I create an ACL for the initiator, the session information becomes available.
If I
stat
thedynamic_sessions
file, the atime/ctime/mtime change with every execution ofstat
:Additionally, inotify is not able to detect changes in the file: as a simple test,
iwatch /sys/kernel/config/target/iscsi/iqn.2018-06.com.example:testtarget/tpgt_1/dynamic_sessions
does not display any events when an initiator connects or disconnects. I was hoping to work around the issue by monitoringdynamic_sessions
for changes and running a script that creates ACLs when new initiators connect, which will be much less efficient without reliable timestamps or inotify.The target's
fabric_statistics/iscsi_instance/sessions
file misbehaves the the same way withstat
andinotify
. I suspect this is due to something along the lines of thedynamic_sessions
andsessions
being pseudo-files that directly access kernel data structures when read, so there never actually are any write events forinotify
to detect.dynamic_sessions
to work properly withstat
andinotify
/iwatch
?The text was updated successfully, but these errors were encountered: