integralstor / integralstor_gridcell

Gluster/ZFS based open source scale-out storage system
1 stars 3 forks source link

Adding iSCSI initiator/target users after remove, with same username is giving error. #111

Closed naveenmh closed 8 years ago

naveenmh commented 8 years ago

In iSCSI Targets, after all valid inputs/changes, the target is able to detect from the initiators. But once after removing the corresponding 'initiator authentication user' and 'target authentication user' from target, and if u try to add 'add initiator authentication user' and 'add target authentication user' with same username as before is giving error saying ...

"Error adding ISCSI authentication user

Error Details : Error Adding User: tgtadm: this account already exists "

which causes the target is not accessible at the initiator side!!!

recreation steps: shares and targets >> create new iSCSI target >> edit target >> add LUN and add ACL >> add initiator and target auth users >> save changes >> select view iSCSI targets >> edit target >> remove auth. init. user and remove auth. targ. user >> edit again iscsi target >> try to adauth. init. user and auth. tag user with ''same username" as previous. >> error!!!

screenstots:

screenshot from 2016-01-13 16-58-59 screenshot from 2016-01-13 16-59-11

fractalram commented 8 years ago

This is a quirk of istgt - even though the user is deleted from the target, it still exists in istgt. Restarting the iscsi service should clear this. If that works, then this bug can be marked wontfix.

naveenmh commented 8 years ago

Yes after restarting iscsi service(service tgtd restart) it will allow to create user with same name.