Closed NUABO closed 5 years ago
I think you need to invalidate the cache or not use the cache at all and/or update rtslib.
In this patch https://github.com/open-iscsi/rtslib-fb/commit/f7fc7a7f96d66b222388bae8f783885ad534114c we now skip the cache when scanning from sysfs so this fixes bugs when looping over devices.
You might also need to do an invalidate call in your app or manage your own ID space. In this patch for the ceph tools I just added an invalidate call during device creation:
https://github.com/ceph/ceph-iscsi-config/pull/95/files#diff-48d98f32cf5a5a487e05c20521d55b0eR747
hi @mikechristie, thanks for your help, i will try :smile:
hi,after using targetcli to delete two targets in succession, re-create one. At this time, use rtslib-fb to view the target information error.
But at this time in sysfs, you can view user/app2
As shown in the figure, app2 is now in the user_0 path, but the error message is in No such _Backstore in configfs: /sys/kernel/config/target/core/user_2
Rtslib-fb will automatically find the new path traversal, why is it always [ERROR] <class 'rtslib_fb.utils.RTSLibNotInCFS'>:Storage object user/app2 not found?