/srv/irclogs.ubuntu.com/2020/07/15/#cloud-init.txt

=== vrubiolo1 is now known as vrubiolo
sdhd-saschaDid anybody know an easy tutorial for creating an bond, with pxe and maybe install "kubeadm", "rke" or some other way to create an Kubernetes cluster? (on bare-metal....)12:12
HolidayI know this isn't directly cloud-init related but I wasn't able to find an answer in #Ubuntu. Any reason why after an apt-get install cloud-init there would be 3 systemctl units on ubuntu 18.04 and cloud-init runs on boot as expected but in 20.04 after the apt install there's no units listed in systemctl and nothing runs on boot even after a systemctl enable cloud-init?12:21
HolidayIt looks like everything is there and good but nothing kicks off. a 'systemctl start cloud-init' fires it off and displays what I'd expect to the terminal, just wasn't sure what by apparent default would keep it from doing so on boot in 20.0412:21
sdhd-sascha@Holiday I don't know. I'm only guest here... But i figured out, since years. That LTS ubuntu is only LTS after some years... It maybe better to use some older distro... (Except you are a expert, and can handle this kind ;-) )12:27
sdhd-saschaMaybe i try landscape today. Some weeks ago it didn't support 20.0412:31
Holiday@sdhd-sascha ah sadly hands are tied as this is for a provision portal for internal devs/users/etc to spin things up. Our home grown solution used vmware-tools and ansible so it was just "does ssh work", where as the new solution I'm assisting in rolling out we went cloud-init a couple years ago for the linux side which worked well.. until 20.04 made me a liar haah12:40
Odd_BlokeHoliday: Hmm, I'm not sure off-hand.  What type of Ubuntu system are you installing cloud-init on that doesn't already have cloud-init?12:40
Holidayit's a 20.04 LTS, built from kickstart to be mostly bare bones, so I did an apt install cloud-init like I did with our 18.04 build (built the same way with kickstart and the same overall packages)12:41
sdhd-sascha@Holiday @Odd_Bloke : As i know MAAS use cloud-init ...12:41
Holidayjust confused on why the systemd files all seem there, systemctl enable doesn't yell at me about it not existing, but then the darn thing doesn't run on boot but will by hand haha. I know, ubuntu prob12:42
Holidayor I just have some fub in my script that's preventing run on boot but everything is the same as the 18.04.. hence my 'what. the. heck.'12:43
Odd_BlokeHoliday: Can you run `cloud-init collect-logs` on an affected 20.04 machine and upload the tarball it produces somewhere?  (A Launchpad bug filed using the link in /topic would work.)12:45
Holidayrgr I'll work on that one12:55
Odd_BlokeThanks!12:56
Odd_Bloke(My guess is that the cloud-init generator is tripping you up, but I'm not entirely sure; cloud-init is generally pre-installed in Ubuntu images where it would be used, so post-first-boot installation isn't a path that is regularly walked.)12:57
Holiday@odd_bloke https://bugs.launchpad.net/cloud-init/+bug/1887668  I hope I put enough detail without being too like.. who knows. Did this while on a zoom haah13:13
ubot5Ubuntu bug 1887668 in cloud-init "cloud-init doesn't appear to be running on boot" [Undecided,New]13:13
Odd_BlokeHoliday: OK, so it looks like my guess was correct: if you look at /run/cloud-init/ds-identify.log, then you can see "No ds found ... Disabled cloud-init", which means that cloud-init is entirely disabled.13:22
Odd_BlokeLooking further up in the log, you can see that "rpctool query returned 1".13:22
Odd_BlokeHoliday: Which is emitted by https://github.com/canonical/cloud-init/blob/master/tools/ds-identify#L791-L80813:23
Odd_BlokeSo we're expecting `vmware-rpctool "info-get guestinfo.ovfEnv"` to return 0 and it instead fails.13:24
Holidayso that is related to the vmware tools from my quick google.. which open-vm-tools is in place13:26
Holidayokay I see running the vmware-rpctool "info-get guestinfo.ovfEnv" returns "No value found". I also ran on my 18.04 but it returns the same value13:30
Odd_BlokeHoliday: Has the exit code changed between the two Ubuntu releases?13:35
Odd_Bloke(`echo $?` after running it.)13:35
Holidaythey're the same. I'm not 100% sure that's the main cause as the software as far as I remember is forming an iso with the user rundata to inject (mounts to the VM pre-boot), and is using the root account via vmware tools rpc for the other bits (morpheus is the portal software).13:37
Holidaybut again I'm not super well versed in this area. The exit code for both is 113:37
Odd_BlokeHmm, OK, could you pastebin ds-identify.log from the 18.04 system?  (https://paste.ubuntu.com/)13:39
=== vrubiolo1 is now known as vrubiolo
Holidayhttps://paste.ubuntu.com/p/hd95RyBbZY/13:54
Holidayquick skim between the two systems seems everything there matches up13:56
Odd_Bloke*polishes monacle and peers through it* "Disabled cloud-init", you say?13:57
Odd_BlokeOh, actually, a major difference there is uptime.13:57
Odd_BlokeHoliday: If you reboot the bionic instance, does cloud-init run?13:59
Holidayhrm well it did, something I changed in this clone apparently made it stop haha14:17
Holidaybasically it was running every time it booted/rebooted. now for some reason it stopped, I did just run an 'apt update; apt upgrade'14:18
Holidaygoing to clone from my base again and check that one pre-updates14:19
Holidayokay yeah so I cloned my base bionic to a new VM as well and on power up cloud-init runs and I see all that "calling http://169.254.169.254/<etc>' failed stuff as expected for the 120 seconds14:21
Holidayinteresting.. on the one I ran 'apt upgrade' on, a systemctl list-units | grep cloud once again returns no results like the 20.04 system that's not running on boot either14:22
Odd_BlokeOh, that is interesting; what version of cloud-init is that upgrading from?14:24
Holidayso pre-upgrade, an apt list --installed | grep cloud returns cloud-guest-utils @ 0.30-0ubuntu5 and cloud-init @ 19.4.33-gbb4131a2-0ubuntu114:26
Holidayhrm same version after the apt upgrade14:26
HolidayI did see systemd get and what not get updated (although since the base auto-updates on provision via cloud-init there were a ton of packages that got updated), so apparently not cloud-init related at all since the versions are the same but another package that's being updated14:27
Holidayjust needed that second set of ideas and extra thoughts/pokes to realize that. Still doesn't make sense why on 20.04 where I installed cloud-init and haven't updated after that doesn't work on boot like expected14:27
Holidayfunny thing is I remember getting hit by the "updating systemd killed my network" bug. I'm going to slide the cause over into that area14:31
Odd_BlokeHoliday: So one thought I have: is the OVF ISO available to the instances for the entire time they're up?14:37
Odd_BlokeBecause if it is removed, then cloud-init will potentially no longer identify that there is anything for it to do, and disable itself.14:37
Odd_Bloke(Which could be a difference between the two instances which isn't tied to Ubuntu version.)14:38
Odd_BlokeAnd my other thought: a systemd upgrade will reload the daemon, so it will pick up new services on-disk at that point.14:38
Odd_BlokeSo if you install cloud-init and later (or in the same transaction, probably) upgrade systemd on one system, but don't on the other; then that could explain the difference in reports.14:39
Odd_Bloke(A `systemctl daemon-reload` after you install cloud-init should have them appear available.)14:39
HolidayI'll check that daemon-reload14:40
Holidaythe only ISO in use is with the rundata that morpheus passes over. Other than that there's no OVF or ISO as these are existing VMs within vCenter. Historically every reboot cloud-init would run (which was a bit of an 'ugh' because I'd have to wait for the 2 minute timeout before I could do something in the base VM we clone from but boy do I miss that delay now haha)14:41
Holidaytrying to purge cloud-init now via apt and re-installing too to see if there's any change that way14:42
Odd_BlokeYeah, so I think the problem you're having is that your instance doesn't appear to be running on a cloud, so cloud-init disables itself.14:42
Odd_BlokeFrom what I can tell, it sounds like focal is behaving as we would expect; you've been getting away with it on bionic for some reason. :p14:43
Holidayhaha could be14:43
Holidayguess worst case I'll make an rc.d entry to kick it off and then use the rundata to wipe that entry or something.14:43
Odd_BlokeHoliday: As you build these images, you could configure cloud-init to look only for the datasource you're expecting to use.14:43
Odd_BlokeThat would have two effects: the 120s timeout would go away, and ds-identify won't disable cloud-init if only a single datasource is configured.14:44
Odd_Bloke(Because it assumes that whoever wrote the configuration is smarter than it is, precisely for this sort of case.)14:45
Holidayhaha obviously I proved that wrong14:45
Holidayalright I'll look into that area and see if I can figure something out there. This is the only area so far where we've used cloud-init and it initially was setup in short time as we were on an initial time crunch. I'll do some reading up in that area and see if that helps at all14:46
HolidayI still just find it weird it worked before the update but not after, yet the cloud-init package version didn't change14:47
Holidayarlight, time to google and read. Thank you for all the assistance, though, input and direction pointing!~14:48
Odd_BlokeHoliday: If there's anything more we can do, let us know!14:48
smoserhttps://github.com/canonical/cloud-init/pull/492 makes me think of https://youtu.be/3m6Blqs0IgY18:41
Odd_Blokefalcojr: https://github.com/canonical/cloud-init/pull/493 <-- the Oracle PR19:27
falcojrwill take a look19:27
Odd_Blokesmoser: You may also be interested in ^ as the original author of DataSourceOracle; it's refactoring DataSourceOracle to use Oracle's metadata endpoint.19:28
smoserOdd_Bloke: are instance ids the same between opc/v1 and openstack ?19:31
smoser+1 to oracle for not having putting HTML in their metadata responses.19:33
blackboxswcommunity-notice: cloud-init 20.2 finally released! to Ubuntu Xenial, Bionic, Eoan and Focal. Thanks all for the patience and verification efforts! email/blog post forthcoming19:40
=== blackboxsw changed the topic of #cloud-init to: pull-requests https://git.io/JeVed | Meeting minutes: https://goo.gl/mrHdaj | Next status meeting July 28 16:15 UTC | 20.2 (Jul 15) | https://bugs.launchpad.net/cloud-init/+filebug
blackboxswexpect to see 20.2 in daily published cloud images within the next day or two19:41
Odd_Blokesmoser: Good question!  I'll check.19:50
Odd_Blokesmoser: N=1, yes.  I'll ask Oracle for confirmation.19:53
=== vrubiolo1 is now known as vrubiolo
powersjblackboxsw, I think the date for 20.2 should stay at Apr 28. That is when upstream cut the release.20:27
blackboxswahh right +120:27
powersj20.3 should then be planned for sometimes from now till sept. so we stay on track for 4 releases/year20:28
=== blackboxsw changed the topic of #cloud-init to: pull-requests https://git.io/JeVed | Meeting minutes: https://goo.gl/mrHdaj | Next status meeting July 28 16:15 UTC | 20.2 (Apr 26) | https://bugs.launchpad.net/cloud-init/+filebug
blackboxswpowersj: yep, plan for 20.3 is in short order when some Oracle work is complete. (and to avoid this costly an SRU)20:29
powersjsweet20:29
blackboxswwill send an email to the list early next week20:29
blackboxsw-> camping for a real woodsy outdoor wedding Th/Fri20:30
blackboxsw:w20:30
blackboxswfalcojr: followup on your https://github.com/canonical/pycloudlib/pull/3/files22:42
blackboxswor first review round rather22:42

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