/srv/irclogs.ubuntu.com/2022/05/31/#cloud-init.txt

abc33Hi all How can I set Timos configuration in user-data?10:19
holmanbabc33: Welcome o/14:08
holmanbabc33: What is Timeos? I don't see any mention of it in a quick grep of the codebase, so I would imaging you're probably going to want to use runcmd/bootcmd if using builtin modules.14:11
blackboxswfalcojr: I think daily recipe builds broke on my recent changes for schema. https://launchpadlibrarian.net/603670335/buildlog_ubuntu-kinetic-amd64.cloud-init_22.2-3259-ga918e9e2-0ubuntu1+1968~trunk~ubuntu22.10.1_BUILDING.txt.gz17:22
blackboxswfalcojr: if you are not working it, I'll fix it. It's a unittest problem now that our versions schema doesn't use relative file paths17:22
blackboxswhttps://github.com/canonical/cloud-init/pull/1486 put up for review for daily package build failures18:39
ubottuPull 1486 in canonical/cloud-init "test_schema: no relative $ref URLs, replace $ref with local path" [Open]18:39
mrfHi, im testing cloud-init for Ubuntu 22.04 LTS , the section "package: [fail2ban, unzip, htop]" didnt work. Checking official doc looks like its ok. Anyone got same issue?20:34
blackboxswmrf: 'package:' is not a known key in the schema. https://cloudinit.readthedocs.io/en/latest/topics/modules.html#package-update-upgrade-install20:37
blackboxswyou need packages20:37
blackboxswas you are missing an 's20:37
blackboxswcloud-init schema is permissive and still allows for passing invalid/unknown keys as far as schema validation. Though we plan to tighten that to strict in the future to warn earlier about invalid/typo'd  schema20:38
mrfsorry misspelling typeing20:38
blackboxswit happens to all of us20:38
mrflets try again ... test 15 :P20:39
blackboxswgenerally I'd like to be able to add a `--strict` parameter to `sudo cloud-init schema --annotate system` that would tell you about errors there in misspelled top-level keys. Any keys below a top-level key should have properly reported as an error in user-data though20:39
mrfthanks ! blackboxsw20:41
blackboxswcertainly20:41
mrfblackboxsw are u there? Im getting the same error : can you take a look? -> https://gyazo.com/77ed5468936d900b9447cc1f67a5aa6821:01
blackboxswmrf looks like you are using the live-server installer from the logs you linked. I see exit code 100 in those logs. which generally (from APT) implies an APt error of sorts  such as APT lock being held by another process21:06
blackboxswI wonder if something else is installing packages at the same time as curtin trying to install fail2ban package?21:07
mrfmmm21:07
mrfhttps://gyazo.com/c6102bcfe8d5d7e6f9f418d4beac300d21:08
mrfmy cloud-init is quite simple i think so21:08
blackboxswso, your clod-init contains "packages: [fail2ban...]" right? and the installer itself is also specifying a postinstall/install_fail2ban script?21:09
blackboxswon the failed target machine, I'd like to see as much of `sudo cloud-init query userdata` as we can. Be wary if you have any passwords etc in that userdata21:10
mrfhttps://gyazo.com/849f571be39d08d8f74a3f9ebe011ba721:12
mrfwe just got a test password for this test21:12
blackboxswmrf: good I was just going to warn you about the leak21:13
mrfyeah :=21:13
blackboxswso cloud-init userdata you provided is installing the packages, and calling apt_update itself. So, I'm not sure why the subiquity installer environment is also trying to install_fail2ban too. It seems like this would be the exit 100 collision you are experiencing21:14
blackboxswI'm looking through subiquity/live-server installer code now to see if I can grasp what is triggering that curtin-based system-install call21:15
blackboxswmrf: looks like here https://github.com/canonical/subiquity/blob/main/subiquity/server/controllers/install.py#L22721:16
blackboxswmrf: a shot in the dark, if you drop the `package_upgrade: true` from your userdata if you don't hit this problem21:17
blackboxswif that is even possible given your install choices.  (I didn't catch whether you specified this userdata directly via autoinstall yaml or whether you manually went through the live-server installer dialogs21:18
mrfmmm let me check removing `package_upgrade: true`21:18
mrfwe're trying develop a custom pxe server for our company21:19
blackboxsw+1 that makes sense mrf21:19
mrfim getting the same error21:42
mrfwithout `package_upgrade: true`21:43
mrfmm found this in the log : ERROR subiquity.common.geoip:119 geoip lookup failed21:49
mrfok , im retard ... this airgapped network doesnt have acces to internet21:51
mrfthen is unable to download all21:51
blackboxswmrf: heh, it always comes down to the physical layer :) that'd do it, blocking unable to get access to the internet21:53
mrf:P  thanks for help blackboxsw21:54
blackboxswglad we could debug a bit. I was worried about some timing collisions w/ live-installer invoking package installs at same time as cloud-init user-data being exec'd, but maybe not the case there.21:55

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