docker-cobbler icon indicating copy to clipboard operation
docker-cobbler copied to clipboard

Systemd restart and cobbler import

Open hyzth opened this issue 9 years ago • 3 comments

Every time I do cobbler sync, it always hangs. Tracing the issue, I found out that during cobbler sync, cobbler will try to restart dhcpd. However, no systemd services can be restarted. When I add this line (taken from dockerhub), it works:

ENV container docker

Do the current code work for you when you do cobbler sync? And another issue, when I do cobbler import, it always shows error about kickstart file not found. How do you make cobbler import the distro?

hyzth avatar Nov 03 '16 08:11 hyzth

Yes the restart is broken currently, you need to restart dhcpd manually when you want to sync. I don't recall getting errors while using import. The blog post (see link in the README) explains a bit about what I did. What error do you get? And what steps did you take?

thijsschnitger avatar Nov 04 '16 08:11 thijsschnitger

No, I can't even restart dhcpd manually. I got that cobbler sync work by adding the mentioned line. The error is: kickstart file not found. At first I built the container and got into it, then cobbler check, restart cobblerd, cobbler sync, all worked fine until cobbler import. And I forgot to mention that even with make import, I still faced error.

hyzth avatar Nov 04 '16 13:11 hyzth

If dhcpd doesn't start then there's something wrong in the config. It's a bit of a PITA to debug, but journalctl -xe should be helpful. For me the issue was using an ip range not served by the network interface I specified, but you might have a different problem. There should be a cobbler.log somewhere as well, maybe that gives a hint about the kickstart file?

thijsschnitger avatar Nov 04 '16 14:11 thijsschnitger