-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fix targetclid daemon infinite stuck #165
Conversation
We need to open a byte IO stream because we are actually dealing with binary data in memory. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
targetcli is hanging with * open-iscsi/targetcli-fb#156 This is fixed now with * open-iscsi/targetcli-fb#165 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
targetcli is hanging with * open-iscsi/targetcli-fb#156 This is fixed now with * open-iscsi/targetcli-fb#165 Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
targetcli is hanging with * open-iscsi/targetcli-fb#156 This is fixed now with * open-iscsi/targetcli-fb#165 Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
targetcli is hanging with * open-iscsi/targetcli-fb#156 This is fixed now with * open-iscsi/targetcli-fb#165 Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
I somehow totally botched my test of this pull request the other day. targetcli freezes on my system with this change. |
@pkalever I didn't actually get a chance to do the debugging I mentioned in #164 yet. I'll check it out more when I wake up. In case you want to look into it before then, my IDE is warning me about...
We need to figure out why our systems are behaving so differently. My main test system has Python 3.5, but I've also tested on 3.7 and was unable to reproduce the hangs you had with StringIO. When I changed to BytesIO, it started hanging and seems like you were describing your system was doing with StringIO. |
@iammattcoleman is this some kind of upstream setup? which can be accessed? |
@pkalever You won't be able to reproduce my exact setup: I'm developing for Ubuntu and am using custom-built targetcli-fb/configshell-fb/rtslib-fb packages. The packages are built using Fedora's spec files as a base, so they're almost identical to the latest Fedora packages. Differences include:
Can you describe your setup with Python 2? I'd like to set up a VM with a similar configuration. |
@iammattcoleman mine is a simple centos7 vagrant box, running targetcli/rtslib/configshell master source installed. If you are interested in bringup the vagrant boxes or get to the same environment then follow: https://github.com/gluster/gluster-block#how-to-quickly-bringup-gluster-block-environment-locally- or there is a Vagrantfile in the repo which gives context about OS env and the ansible playbooks will guide you through detailed steps. Thanks! |
We need to open a byte IO stream because we are actually dealing with
binary data in memory.
Signed-off-by: Prasanna Kumar Kalever prasanna.kalever@redhat.com