sebastiangraf / jSCSI

A Java iSCSI Framework
http://jscsi.org
BSD 3-Clause "New" or "Revised" License
60 stars 28 forks source link

MacOS 3rd party initiators like globalSAN and ATTO Xtend #9

Closed sharrajesh closed 12 years ago

sharrajesh commented 12 years ago

Hello There,

First of all I want to thank you guys for doing this freaking awesome work!

In my project I needed to use just the Target component of your package. Hence I was able to download your source and run it as server.

It worked !!!!great!!!! to expose my data files as disks using Microsoft iSCSI initiator and Linux open-iscsi initiators (which I verified on Ubuntu 12.04).

However I had trouble making it work right out of the box using MacOS Third Party initiators. One of them is called globalSAN and other is called ATTO XTend.

While I am debugging this problem and collecting some debug logs on the server side I was wondering if you guys got chance to test it on the MAC side. Also just wondering is jSCSI suppose to work with other 3rd party initiators.

Cheers!

sebastiangraf commented 12 years ago

Hi,

Thanks for your interest in the project.

Unfortunately, I have bad news for you: We hadn't any possibilities to test jSCSI with the globalSAN initiator (even though I thought about it).

We are at the moment running on very low resources regarding this project mainly focussing on whitebox-tests with jUnit and merging pull-requests from users in the project.

So if you have the chance to debug jSCSI to make it work with any mac initiator, that would be great although we have at the moment no possibility to do so by ourselves. Nevertheless I could give you some hints if you have concrete questions.

cheers + sorry for not having better news

sebastian

sharrajesh commented 12 years ago

Hello Sebastian,

I have uploaded some java debug logs from the target component itself and wireshirk network capture logs (with just the ISCSI display filter on) to my google drive at-

https://docs.google.com/folder/d/0B8_6pcFr1MxNYnoxeGtWWWlMbjg/edit

The logs are- one for the scenario when things work fine on my windows machine and another from my Macbook pro when things does not work. The logs are appropriately named i.e. they start with working-xxx or notworking-xxx.

On my MacBook pro, from the iscsi initiator software (Xtend from ATTO) that I was using, the error box states the following message: "Discovery Failed: java.net.ProtocolException: Illegal TTT in final text PDU:0"

It seems we do not go past the login phase. Even though the debug log on the target side says that Login successful. The message on the Mac software side "Illegal TTT", could it mean the Mac side did not like "Target Transfer Tag" value sent by our server side.

I have also copied a network capture log with just ISCSI display filter on, while I was running the microsoft software iscsi target on my windows and ATTO XTEND on Mac. Things work fine in this scenario.

Any help or hints will be appreciated.

Thanks bunch!

sharrajesh commented 12 years ago

Yes Sebastian,

I confirmed that, if under TargetPduFactory.java at line number 142, if I hardcode setTargetTransferTag to 0xffffffff, then we move forward on the Mac side. I get the list of SendTargets. But later mac side app get stuck stating "operation in progress".

I am posting wireshark iscsi and target side debug logs again.

https://docs.google.com/folder/d/0B8_6pcFr1MxNcEptQ0FWUGQ0Tjg/edit

Now it seems as if Mac side is not getting "SCSI: Inquiry Lun" responses.

I will continue looking into this issue. I welcome any suggestions or comments from you.

sebastiangraf commented 12 years ago

Hi there,

I will try to take a look at it this week although I cannot guarantee it. The target has at the moment some minor problems (with the IET as well) while I still have not the time to fix them on-the-fly.

Sorry, I will let you know asap if I can help you directly.

Cheers

Sebastian

sharrajesh commented 12 years ago

Hello Sebastian,

I have made bunch of changes, to make jSCSI Target work with MAC OSX initiator from ATTO Xtend.

With these changes we still continue to work with MS iSCSI initiator and linux open-iscsi.

I have not gotten around to test it with globalSAN yet. I am in the process of buying a license of it.

I was wondering if you can review my changes to see if I am on the right track. For your convenience I am also uploading the patch to the following link.

https://docs.google.com/folder/d/0B8_6pcFr1MxNelN5V3UzQUoyQmc/edit

Thanks for your help.

Rajesh

sebastiangraf commented 12 years ago

Hi Rajesh, I inserted (most of) your changes and uploaded it. The changes will be available in the next stable version. Thank you very much! cheers sebastian

sharrajesh commented 12 years ago

Thanks for your time Sebastian. I will sync your changes and test them with different configurations. I will let you know how everything went.

On Sep 2, 2012 8:10 AM, "Sebastian Graf" notifications@github.com wrote:

Hi Rajesh, I inserted (most of) your changes and uploaded it. The changes will me available in the next stable version. Thank you very much! cheers sebastian

— Reply to this email directly or view it on GitHubhttps://github.com/disy/jSCSI/issues/9#issuecomment-8222763.