/srv/irclogs.ubuntu.com/2024/11/25/#cloud-init.txt

=== cpaelzer_ is now known as cpaelzer
=== dbungert1 is now known as dbungert
=== woky_ is now known as woky__
=== woky__ is now known as woky_
Guest38Hello everyone!  Proxmox 8.3.0 Debian 12 host and VM's with latest apt update.17:04
Guest38datasource_list: [ NoCloud, None ]17:04
Guest38Two NIC's, both are deliberately assigned IP's through rc.local. Everything is great on first boot, but on subsequent reboots, randomly, the IP assignments don't take - first NIC grabs a DHCP address (that it's not supposed to), and the second NIC doesn't take one of it's assigned IP's (multiple IP's for different subnets are assigned to second17:04
Guest38NIC). Sometimes, other second NIC IP's also don't take.17:04
Guest38cloud-init clean --logs --reboot makes everything happy for the next boot, but problems come screaming right back on subsequent reboots.17:04
Guest38This problem has been brutalizing me for days. I'm completely open to (non-free) direct help, if anyone has the magic solution (hopefully, this plead doesn't offend the rules or anyone's sensibilities). :-).17:04
Guest38Thanks!17:04
Guest38Version: 22.4.2-1+deb12u217:05
minimalGuest38: did you look at /var/log/cloud-init.log to see what is happening?17:22
Guest38Yes, no errors or warnings, but deprecation notices and I get the sense maybe my config isn't optimal, which possibly is contributing to struggles. Is there a way to somewhat privately post the log without it being permanently logged by the Internet?17:46
minimalGuest38: I wasn't thinking about errors/warning, rather what the cloud-init.log shows regarding network configuration18:04
minimalnormally with NoCloud then the ISO/FAT device provided a network-config YAML file and if that is not provided then cloud-init falls back to DHCP on an interface18:05
minimalI suspect rc.local is not consulted during boot until AFTER cloud-init has run18:07
Guest38Yes, indeed, I compared a working VM (because cloud-init clean --logs --reboot was ran) vs another VM that failed. The failed VM's 50-cloud-init.yaml is missing everything that cloud-init should have pushed into it. Unsure why, especially why clean works, but VM networking always fails after subsequent reboots.18:08
Guest38To your other point, yes, sort of smells like a timing issue, but that's my noob sense18:10
Guest38I'm open to another pair of eyes on my config, if anyone has a few minute$$ :-)18:11
minimalGuest38: I wasn't thinking of timing, rather is your rc.local writing network config file(s) or just configuring interfaces direct? (i.e. "ip" command)18:15
Guest71Guest38 rejoined at Guest7118:15
minimalGuest71: I  wasn't thinking of timing, rather is your rc.local writing network config file(s) or just configuring interfaces direct? (i.e. "ip" command)18:16
Guest71just configuring interfaces direct (i.e. "ip" command), only additional IP's and only to second NIC.  cloud-init is handling first NIC IPv4 (static) and IPv6 (DHCP), and second NIC (static).18:18
minimalGuest71: hint - cloud-init will write a network config file for the OS18:19
Guest71Yes, thanks, I see that.  My rc.local called script is not writing or touching the 50-cloud-init.yaml file18:20
Guest71On a related note, Debian cloud-init is v22.4.2, while Ubuntu cloud-init is 24.2.  Is there a way to use 24.2 on Debian, just to see if the newest version solves this problem?18:22
minimalI'm not familiar with the 50-cloud-init.yaml and so don't know what it relates to18:23
Guest7150-cloud-init.yaml is for netplan, the replacement for /etc/network/interfaces18:23
minimalok18:23

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