-
Notifications
You must be signed in to change notification settings - Fork 19
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
Any new target will not be registered after removing all registered targets. #38
Comments
Thank you for reporting the issue.
I don't know what the root cause is and will try to devote some time to investigate it during the next week. |
Thank you for your reply, and I await to hear your good news about this bug. |
@cvubrugier Have you fixed this issue? |
Sorry, no. I spent some time investigating bug I still don't understand why the registration is declared invalid. |
The registration is invalid because the registration PDU includes information about a TPG that refers to a network portal which is no longer known by the iSNS server. In this case, the registration PDU should include information about the network portal as well. After all targets are deregistered, the iSNS server removes information about the network portals. See section 5.6.5.4 in RFC 4171:
This bug is a side effect of commit ed1b924 "Do not register a portal if it is already registered" which fixed a bug with the Microsoft iSNS server. |
According to RFC 4171 (iSNS) 5.6.5.4. Device Deregister Request (DevDereg) Upon receiving the DevDereg, the iSNS server removes all objects identified by the Operating Attribute(s), and all subordinate objects that are solely dependent on those identified objects. The iSNS server removes a portal when no target depends on it. Thus, we have to mark a portal as no longer registered when its reference counter reaches zero so that when a new target is later registered, the portal is registered too. This patch fixes issue #38. Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
Hi @wncboy, I committed a fix and merged it in the master branch. I would appreciate if you could test again and confirm that the issue is fixed. Thanks! |
Thank you for your support, I will test master branch today, and tell you the test results. |
I committed other changes to fix issue #40. Updating a target after its portals are changed should work better now. |
@cvubrugier I have tested this patch on my device, it is work fine, but I will continue to test it, if it has any bug, I will report to you immediately. |
I found an issue, if I remove all registered targets, after that, any new target will not be registered successfully, and target-isns return "error in response (status = 3)".
iSNS server is Open-iSNS server, and the version is 0.97.
target-isns version 0.6.4.
The kernel version of the device is 4.4.118.x86/Linux
The text was updated successfully, but these errors were encountered: