New Version Tagged

2019-11-14 Thread The Lee-Man
I have tagged version 2.1.0 of open-iscsi.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/38c6b2f0-2e96-4a77-a243-4c2b0e90db3f%40googlegroups.com.


Re: Could not logout of all requested sessions when working with centos 7

2019-11-14 Thread soruk42
Hi,

I ran into this same problem (and found this thread while googling for it), 
and compared CentOS 6 and 7 settings.

The fix, for me, was to edit /etc/iscsi/iscsid.conf and change the line

iscsid.safe_logout = Yes

... to = No

Then: systemctl restart iscsid.service

After that, the logout worked. (And, multipath did the right thing!)

Optionally, put the setting back to "Yes" afterwards and restart iscsid 
again.

-- Michael

On Friday, 7 November 2014 06:56:17 UTC, Shay Katz wrote:
>
> Hi
>
> I have client (centos 7) with logged in sessions,
>
>  
>
> [root@lgdrm1027 ~]# iscsiadm -m session
>
> tcp: [1] 10.206.12.5:3260,1 iqn.2008-05.com.xtremio:001e679efc4a 
> (non-flash)
>
> tcp: [2] 10.205.12.5:3260,1 iqn.2008-05.com.xtremio:001e679efc4a 
> (non-flash)
>
> tcp: [3] 10.206.12.6:3260,1 iqn.2008-05.com.xtremio:001e679efc4b 
> (non-flash)
>
> tcp: [4] 10.205.12.6:3260,1 iqn.2008-05.com.xtremio:001e679efc4b 
> (non-flash)
>
> tcp: [5] 10.206.12.15:3260,1 iqn.2008-05.com.xtremio:001e679efff6 
> (non-flash)
>
> tcp: [6] 10.205.12.15:3260,1 iqn.2008-05.com.xtremio:001e679efff6 
> (non-flash)
>
> tcp: [7] 10.206.12.16:3260,1 iqn.2008-05.com.xtremio:001e679efff7 
> (non-flash)
>
> tcp: [8] 10.205.12.16:3260,1 iqn.2008-05.com.xtremio:001e679efff7 
> (non-flash)
>
>  
>
> After logging in the user remove the portals from the target, now when I 
> am trying to logged out the operation fails
>
> And I didn't find how to remove them (There is no force flag):
>
>  
>
> [root@lgdrm1027 ~]# iscsiadm -m node -u
>
> Logging out of session [sid: 1, target: 
> iqn.2008-05.com.xtremio:001e679efc4a, portal: 10.206.12.5,3260]
>
> Logging out of session [sid: 2, target: 
> iqn.2008-05.com.xtremio:001e679efc4a, portal: 10.205.12.5,3260]
>
> Logging out of session [sid: 3, target: 
> iqn.2008-05.com.xtremio:001e679efc4b, portal: 10.206.12.6,3260]
>
> Logging out of session [sid: 4, target: 
> iqn.2008-05.com.xtremio:001e679efc4b, portal: 10.205.12.6,3260]
>
> Logging out of session [sid: 5, target: 
> iqn.2008-05.com.xtremio:001e679efff6, portal: 10.206.12.15,3260]
>
> Logging out of session [sid: 6, target: 
> iqn.2008-05.com.xtremio:001e679efff6, portal: 10.205.12.15,3260]
>
> Logging out of session [sid: 7, target: 
> iqn.2008-05.com.xtremio:001e679efff7, portal: 10.206.12.16,3260]
>
> Logging out of session [sid: 8, target: 
> iqn.2008-05.com.xtremio:001e679efff7, portal: 10.205.12.16,3260]
>
> iscsiadm: Could not logout of [sid: 1, target: 
> iqn.2008-05.com.xtremio:001e679efc4a, portal: 10.206.12.5,3260].
>
> iscsiadm: initiator reported error (9 - internal error)
>
> iscsiadm: Could not logout of [sid: 2, target: 
> iqn.2008-05.com.xtremio:001e679efc4a, portal: 10.205.12.5,3260].
>
> iscsiadm: initiator reported error (2 - session not found)
>
> iscsiadm: Could not logout of [sid: 3, target: 
> iqn.2008-05.com.xtremio:001e679efc4b, portal: 10.206.12.6,3260].
>
> iscsiadm: initiator reported error (2 - session not found)
>
> iscsiadm: Could not logout of [sid: 4, target: 
> iqn.2008-05.com.xtremio:001e679efc4b, portal: 10.205.12.6,3260].
>
> iscsiadm: initiator reported error (2 - session not found)
>
> iscsiadm: Could not logout of [sid: 5, target: 
> iqn.2008-05.com.xtremio:001e679efff6, portal: 10.206.12.15,3260].
>
> iscsiadm: initiator reported error (2 - session not found)
>
> iscsiadm: Could not logout of [sid: 6, target: 
> iqn.2008-05.com.xtremio:001e679efff6, portal: 10.205.12.15,3260].
>
> iscsiadm: initiator reported error (2 - session not found)
>
> iscsiadm: Could not logout of [sid: 7, target: 
> iqn.2008-05.com.xtremio:001e679efff7, portal: 10.206.12.16,3260].
>
> iscsiadm: initiator reported error (2 - session not found)
>
> iscsiadm: Could not logout of [sid: 8, target: 
> iqn.2008-05.com.xtremio:001e679efff7, portal: 10.205.12.16,3260].
>
> iscsiadm: initiator reported error (2 - session not found)
>
> iscsiadm: Could not logout of all requested sessions
>
> [root@lgdrm1027 ~]#
>
> *same scenario on centos 6.5 worked well.*
> *Shay*
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/5405214f-8249-4371-b29e-25f18ad1cfae%40googlegroups.com.


RE: [PATCH v3] scsi: avoid potential deadloop in iscsi_if_rx func

2019-11-14 Thread wubo (T)
Hi,

> On 11/12/19 5:37 PM, Martin K. Petersen wrote:
> >
> >> In iscsi_if_rx func, after receiving one request through
> >> iscsi_if_recv_msg func, iscsi_if_send_reply will be called to try to
> >> reply the request in do-loop. If the return of iscsi_if_send_reply
> >> func return -EAGAIN all the time, one deadloop will occur.
> >>
> >> For example, a client only send msg without calling recvmsg func,
> >> then it will result in the watchdog soft lockup.
> >> The details are given as follows,
> >
> > Lee/Chris/Ulrich: Please review!
> >
> 
> 
> Okay, after looking again at the thread, I do have some additional feedback 
> for
> the patch submitter.
> 
> You should put your "changes in V2, V3, ..." above the patch line (the
> "-- " on a line by itself), not as part of the patch.
> 
> Also, as long as you are making one last round of changes, please change
> "deadloop" to "deadlock" in your patch subject, as deadloop is not a word.
> 

Okay, I will correct it in V4.

> Lastly, the "Suggested-by" lines you added are fine, but that generally means
> that person suggested the patch, not changes. For folks that suggest changes,
> it's up to them to say they like or do not like your changes after you make 
> them,
> at which point they can add their "Reviewed-by" tag if they wish.
> 
> Please feel free to send your patch to me directly, before publishing, if you
> would like a review before publishing again.

Okay, Thanks.
> 
> --
> Lee

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/EDBAAA0BBBA2AC4E9C8B6B81DEEE1D6915E28CFE%40dggeml505-mbs.china.huawei.com.