/srv/irclogs.ubuntu.com/2025/05/08/#cloud-init.txt

rjschweiWorking on updating cloud-init in SUSE distros, first time since the switch to the socket based start up and the process is stuck, there is no log yet, how do I figure out what cloud-init is waiting for? 11:47
rjschwei# journalctl --unit cloud-init-main.service May 03 10:20:21 ip-192-168-10-228 systemd[1]: Starting Cloud-init: Single Proce> May 03 10:20:23 ip-192-168-10-228 systemd[1]: Started Cloud-init: Single Proces>11:47
=== kuraudo1 is now known as kuraudo
falcojrrjschwei: what does stuck mean? Has cloud-init-main.service started? Has cloud-init-local.service started? Are either of them still running?13:26
falcojryou should see new .sock files in /run/cloud-init/share . Do they exist?13:27
rjschweiYes the .sock files exist and cloud-init-main.service is considered to be running by systemd. "stuck" means the process is waiting fro something, I think, but I do not know what thta would be.13:29
falcojrhas cloud-init-local.service started?13:30
rjschweicloud-init-local.service ran and has exited13:33
falcojrwoah...it's weird that it ran and there's still nothing in the logs13:34
rjschweisystemctl status cloud-init-local.service  .... Active: active (exited) s13:34
falcojrhave any other cloud-init services run? e.g., cloud-init-network.service?13:34
rjschweicloud-init-network.service also "active (exited)"13:35
falcojrdoes a journalctl -u on either of those services show anything interesting?13:36
rjschweiboth show a help message for "nc" which would lead me to believe that something went wrong but both also show a "Finished Cloud-init: $NAME Stage" message13:39
rjschweiIf I run the command from cloud-init-local.service in a shell I also get the help message but also 0 as the exit status13:41
falcojrhmmm, looks like you're running a version of netcat that doesn't support all of the options we're providing then. There's a link from https://docs.cloud-init.io/en/latest/reference/breaking_changes.html#single-process-optimization on how to replace that with a python call, but that probably also loses much of the performance benefit unfortunately13:43
rjschweinetcat-openbsd-1.203 what version is expected?13:47
rjschweiWhile performance improvements are nice it first and foremost has to work ;)13:48
falcojrhmmm, I would think that version should work. If you cat the cloud-init-local.service file and compare the options passed to what's in the help/man page, do you see any of the options missing?13:54
rjschweiLooks like the source socket does not exist "ls /run/cloud-init/share/local-return.sock" complains with "ls: cannot access " the options look OK to me based on the man page.14:02
rjschweiwhat would create "local-return.sock"14:02
falcojrthe '-s /run/cloud-init/share/local-return.sock' part of netcat should create that socket file when invoked14:04
blackboxswFWIW: netcat-openbsd 1.226-1.1 worksc14:07
blackboxswI see netcat-openbsd 1.203 on opensuse 15.6. poking at that a bit now14:07
rjschweiOK, I am going to poke people as to why we do not have an updated netcat, at least for the upcoming new release and I am going to test the patch to move to Python and multi stage execution14:08
blackboxswly14:21

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!