/srv/irclogs.ubuntu.com/2024/06/19/#cloud-init.txt

=== nikolay_ is now known as hjckr
NNautCCI'm hoping this is the correct place to ask, but, in my PXE clients, after booting the basic environment the console shows "connecting...\nwaiting for cloud-init...\nAn error occurred. Press enter to start a shell" when I enter the shell and go through all the steps in the "How to debug cloud-init" everything checks out15:10
NNautCCI'd love any suggestions as to where I might need to look next . I've validated my nocloud autoinstall schema with cloud-init schema15:11
NNautCCdmesg has no errors warnings, etc15:12
minimalNNautCC: you mentioned "autoinstall", so this is Ubuntu with Subiquity?15:19
NNautCCyes15:20
minimalso perhaps it might be best to ask in either the #ubuntu-cloud or #ubuntu-server channels?15:20
NNautCCSure thing, thanks. 15:21
holmanbsbraz: interesting question. We have something like that in place for the apt configure module but not a more generic implementation of the request. 16:33
holmanbsbraz: feel free t ofile a feature request on github if you'd like to see something like that16:33
holmanb@minimal ping16:34
holmanbminimal:  have you seen this issue? https://github.com/canonical/cloud-init/issues/538016:35
-ubottu:#cloud-init- Issue 5380 in canonical/cloud-init "add an option to disable dhcpv6 on fallback" [Open]16:35
holmanbThe reporter is using ifupdown and Ubuntu, but curious if ifupdown-ng has the same issue.16:36
minimalholman: looks at a Alpine box with dhcpc where eni has "iface eth0 inet6 dhcp" when /etc/init.d/networking is run the dhcpc output includes "eth0: soliciting an IPv6 router" but there's no problem that only DHCPv4 server is available16:40
minimalI'd have to check how it behaves with either dhclient or udhcpc16:40
minimalholmanb: ^^^16:41
holmanbhmm, interesting16:41
holmanbthanks for checking minimal16:41
minimalthat's with NoCloud on Virtualbox where I haven't enabled VBox's IPv6 support16:42
minimalAlpine 3.18 has the original ifupdown package (in addition ot ifupdown-ng), I could check that16:44
holmanbwhere is it configured to use dhcpcd? 16:45
minimalalso I could check Busybox's own ifupdown as16:45
holmanboh I didn't realize that Busybox had its own ifupdown implementation16:45
minimalholmanb: one of ifupdown-ng's script does a "which" for dhcpc, dhclient, and udhcpc in sequence to determine which is available16:45
holmanbyou've spelled it the same way twice now starting to wonder if dhcpc != dhcpcd16:46
holmanbthat would be really helpful16:46
minimaloops dhcpcd16:47
holmanball good :-)16:47
holmanbjust wanted to be sure16:47
minimalit's hard to remember to spell both the dhcpcd daemon *AND* the udhcpc client correct in the same sentence lol16:47
holmanbyeah, it breaks my brain too16:47
minimalhttps://github.com/ifupdown-ng/ifupdown-ng/blob/main/executor-scripts/linux/dhcp#L7-L916:48
holmanbbased on your check, it sounds like the dhcp6 addition didn't break ifupdown-ng + dhcpcd16:48
holmanbbut that likely ifupdown (debian's) + dhclient is broken (based on that report)16:49
minimalI should be able to test dhclient + ifupdown (not -ng) on Alpine 3.18 fairly easily16:50
minimaljust tests dhclient with ifupdown-ng (NOT ifupdown) and no problem with eni having dhcpv6 specified17:11
minimalI've had a thought - you do know that dhclient only runs as EITHER a dhcpv4 or a dhcpv6 client (via "-4" and "-6" options)?17:12
minimalwith "-4" being the assumed default if neither is specified17:12
holmanbthanks for checking that17:18
holmanbyeah, I'm aware of that17:18
minimalit could perhaps be related to the config script that their dhclient is using (/etc/dhclient-script in Alpine)17:19
minimalI'll test "normal" ifupdown with dhclient shortly17:19
holmanbhmm, that could be17:22
holmanbI just asked for clarification on that17:23
holmanbsince they reported using 22.04 and 24.04, but on 24.04 dhcpcd is the default dhcp client17:24
holmanbminimal: did the check you did include the "auto" keyword on eth0?19:19
holmanbnevermind that shouldn't matter19:39
holmanbmisread the docs19:39
sbrazholmanb: thanks, will do19:57
minimalholmanb: testing Alpine with ifupdown (not ifupdown-ng) and dhclient - seeing that dhclient is repeatedly soliciting an IP address with incremental backoff retries23:32

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