open-iscsi / target-isns

Target-isns is an iSNS client for the Linux LIO iSCSI target
GNU General Public License v2.0
16 stars 19 forks source link

Some iSNS objects are not registered if a target is created after target-isns is started #20

Closed cvubrugier closed 9 years ago

cvubrugier commented 9 years ago

When an iSCSI target is created with targetcli, it shows up before its TPG and default portal are created. Since target-isns registers a target as soon as it appears in configfs, the target is registered but some of its objects like TPGs or portals are not.

I think we should find a way to wait some time to get all inotify events before registering a new target.