Created attachment 504285 [details] Shell script to exercise tgt-utils Description of problem: When multiple targets are set up with outgoing users, modifying one target invalidates the binding of the outgoing user to unrelated targets. Version-Release number of selected component (if applicable): 1.0.1-3.fc13 How reproducible: Always Steps to Reproduce: 1. Create two targets "iqn.test:test1" and "iqn.test:test2" 2. Delete target "iqn.test:test1" 3. Recreate target "iqn.test:test1" Actual results: tgt-admin --dump shows that "iqn.test:test2" has lost its outgoing user, even though only "iqn.test:test1" should have been changed. Expected results: Operations on one target are unaffected by operations on another target Additional info: It is possible to fix up the outgoing user binding explicitly. It may be that operations are order dependent, but I am using "tgt-admin --update" which should do the right thing. I have attached a script which demonstrates the problem.
Created attachment 504286 [details] Standard output from tgt-test script
Created attachment 504287 [details] Log output from "tgtd -d 9" while running tgt-test script
Created attachment 504861 [details] Patch to only unbind users which are bound to a target. This patch fixes the reported problem with no apparent side effects.
Ian, thanks for tracking this bug down. I see this is not fixed in stgt upstream. Would you like to submit the patch yourself to stgt.org? If not, I can follow up on your behalf.
OK. I have reported it upstream.
scsi-target-utils-1.0.18-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/scsi-target-utils-1.0.18-1.fc15
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
scsi-target-utils-1.0.18-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/scsi-target-utils-1.0.18-1.fc14
scsi-target-utils-1.0.18-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
scsi-target-utils-1.0.18-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.