-
Notifications
You must be signed in to change notification settings - Fork 70
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
Problems using new targetclid daemon #149
Comments
@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. |
Indeed I would consider it as an experimental feature which still needs to be fully debugged. |
@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?
The text was updated successfully, but these errors were encountered: