Open gonzoleeman opened 5 years ago
@gonzoleeman is your targetclid.service running ?
The unix socket activation is not working as expected (hangs) for me as well. Not sure about the root cause though.
I agree, having a man page for targetclid will be useful.
And it's disappointing there isn't a debug logging option for targetclid. Nor a man page. Is targetclid experimental?
Indeed I would consider it as an experimental feature which still needs to be fully debugged. @pkalever , do you have the time to investigate this problem with socket activation?
@maurizio-lombardi honestly as mentioned before, I tried to figure-out the issue earlier, and couldn't understand it fully.
It will be really quick and helpful if someone with better understanding about socket activation can help with it ? I remember it was @gonzoleeman who gave the idea about socket activation stuff. May be he can help us here with some code or clues about the root cause.
Problem I see is, the targetcli cli command gets stuck on the first call (which is when activating the dameon), if we quit the cli command (by this time daemon would have got activated already) and retry the same command then it all works.
Thanks!
I am debugging this and believe I'll be able to figure it out.
I got the Python 3.7 issues with binary vs strings sorted out, and I fixed one bug that made it so that targetclid only handled one command, instead of multiple commands, and now I'm looking at the abstract namespace that systemd uses for its sockets.
See pull request #150
I have an updated pull request #151
Also, A man page can be added for targetclid(8) under a different/new issue.
I have installed test latest configshell-fb (v1.1.26), rtslib-fb (v2.1.70), and targetcli (v2.1.50), and it all seems to work as expected, unless I try to use the targetclid daemon.
Even though the "make install" does install them, I copied targetclid.service and targetclid.socket into my systemd unit directory, ran "daemon-reload", and started them running, with no issues.Systemd says the service is running, and I can see targetclid running as a daemon using "ps".
But when I try to use the daemon, I get an error:
Because of recent python3 changes, I tried this fix:
That does get me past the stack trace, but then the targetcli command just hangs, waiting for a reply from targetclid.
And it's disappointing there isn't a debug logging option for targetclid. Nor a man page. Is targetclid experimental?