/srv/irclogs.ubuntu.com/2023/07/18/#ubuntu-server.txt

blahdeblah`ip r` would be the preferred alternative to `netstat -rn` nowadays :-)00:58
sarnold.. I couldn't remember what 'netstat -rn' actually did, so didn't know what to suggest for the replacement ;)01:00
blahdeblah:)01:15
genii!ics02:31
ubottuIf you want to share the internet connection of your Ubuntu machine with other machines in the network see https://help.ubuntu.com/community/Internet/ConnectionSharing02:31
Mathisenhello where can i find a uptodate guide on install landscape server and client07:15
Mathisenhttps://ubuntu.com/landscape/install does not seem to be07:17
=== shokohsc53 is now known as shokohsc5
=== JanC is now known as Guest1579
=== JanC_ is now known as JanC
jamespagecpaelzer: hey - I did a bit of work on a new rabbitmq-server release which I've uploaded to Debian experimental12:41
jamespageany reason why I would not sync that to Mantic?12:41
cpaelzerjamespage: hmm, it is not in sync-blocklist afaics13:02
cpaelzernor does it have delta13:02
jamespagecpaelzer: I shall do so then13:21
jamespagefwiw I've already built and tested it on Mantic anyway :)13:21
=== JanC_ is now known as JanC
eldowanI am trying to configure cloud-init on a VM, and everything works except network on boot. I have a 2 minute stop during boot at "Host and Network Name Lookups". After this aborts and I am able to login, I can run dhclient and receive a DHCP address immediately. This is on a clean install. How can I start to troubleshoot this?19:50
=== JanC_ is now known as JanC
eldowaniops19:53
blackboxsweldowan: systemd-analyze blame/systemd-analyzes critical-chain may help inspect problems. If the problem is in cloud-init logs: sudo cloud-init analyze show; sudo cloud-init analyze blame;    Some other docs here  https://cloudinit.readthedocs.io/en/latest/reference/faq.html#failing-to-complete-on-systemd.19:56
blackboxsweldowan:  Also check journalctl -b 0  -o short-precise and compare against timestamps in /var/log/cloud-init.log to see what else may block cloud-init if you see cloud-init just sitting without logging anything for 2 mins19:56
eldowanI'll check the links.19:57
eldowanIt _looks_ at a glance like it's only the network portion that causes issues. everything else completes -- hostname, user accounts, SSH keys, etc...19:57
blackboxswyeah I'd expect invalid routes being setup or DNS incorrectly configured19:58
eldowanHmm. non cloud-init clients have no problems starting up, and the other ubuntu, windows, & other VMs have no issues with DNS or routes. Simple flat network DHCP/DNS/gateway on the same router appliance (pfsense)19:59
eldowansystemd-analyze blame shows the culprit to be "systemd-networkd-wait-online.service" with a time of > 2 minutes and errors showing as generic timeout. I guess it's not a cloud-init issue20:01
blackboxswgrep "Applying network config" /var/log/cloud-init.log to see if the expected network config looks reasonable and compare against what you are seeing from 'ip addr' or 'ip route'  etc. /etc/netplan/50-cloud-init.yaml is the final network config emitted by cloud-init on ubuntu systems  20:02
eldowan50-cloud-init.yaml looks pretty standard. I only have 1 NIC set to DHCP, and the MAC is correct. Will look at the cloud-init log 20:03
eldowancloud-init.log shows the correct nameserver, search domain, mac, and device.20:05
blackboxswgiven systemd-networkd-wait-online.service being your blocker there, the device in your network config isn't reporting itself as "up" and configured yet for some reason or other. I'd check the related network driver logs in journalctl -b 0 to see when the network device is found and driver is loaded, and the device reports online.20:09
blackboxswnote if you are using netplan.io version 0.106. there  may be MAC matching issues to be aware of if you NIC is a virtual nic. https://discourse.ubuntu.com/t/netplan-0-106-call-for-testing/33932/3 not sure if that applies to your situation or not20:11
eldowanThanks, I'll take a look there too. Stuck at startup right now, not sure of netplan.io version. Just installed a clean copy of ubuntu server 22.04 and all the updates this morning, so whatever is in teh mainline is what I'm likely running20:12
blackboxswok netplan 0.106 not something to be concerned with on 22.04 yet as it's currently netplan 0.10520:14
eldowanOK, I think it must have be a self inflicted wound. in "journalctl -b 0" I see "eth0 ... failed to set IAID+DUID: No such file or directory" and then timeouts after a 2 minute gap. after looking for that error message, I found a reference to `systemd-machine-id-setup` and running that + reboot fixed the issue.20:19
eldowanI'm betting I tried to prepare the system for cloud init incorrectly and gunked something up by accident.20:20
sarnoldwhat on earth is *that*? :)20:20
eldowanOh, during my attempt to clean and prep the system I deleted the /etc/machine-id file and I think this is what's throwing it for a loop. I'd looked for some documents on prepping for cloud-init but I only found non-related ubuntu cloud docs20:27
sarnoldthat might still be worth a bug report; I wonder if it would make sense for $something during boot to generate a machine-id if it is missing?20:29
eldowanthe root issues seems to be if I the file is missing from disk. If I `truncate -s 0` the file it comes up correctly. When this is the case, I do see in dmesg an alert about the missing file -- so it *does* seem to be half-caught20:32
eldowanSeems my issue is explictly out of bounds for startup: https://pasteboard.co/4HPNFkKATPSt.png20:39
eldowanConsidering that the log output explictly doesn't allow booting properly with the file missing from disk, would it be worth opening a bug report? Seems maybe this is intended?20:40
sarnoldwow that's a much better error report than I expected20:41
=== shokohsc56 is now known as shokohsc5
eldowanSo i guess the network is brought up before /etc/ is remounted as rw? I'd have assumed I would fall under criteria 3 "/etc/machine-id is missing and /etc/ is writable." except at that moment /etc/ is ro.20:43

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