/srv/irclogs.ubuntu.com/2021/06/10/#cloud-init.txt

=== MAbeeTT_ is now known as MAbeeTT
blackboxswfalcojr: just approved with doc suggestion https://github.com/canonical/cloud-init/pull/917. Thanks for that take what you think makes sense from that supplement.17:10
ubottuPull 917 in canonical/cloud-init "Use instance-data-sensitive.json in jinja templates (SC-117)" [Open]17:10
blackboxswyay PR bot links17:10
blackboxswfalcojr: thanks for the doc update. wheee I get some soft-ball reviews in today for credit https://github.com/canonical/cloud-init/pull/91817:12
ubottuPull 918 in canonical/cloud-init "doc: Update NoCloud docs stating required files" [Open]17:12
anankeI'm trying to figure out how to kick off running of write-files module, to force it writing files manually, since it's set to per-instance18:56
anankeI've tried 'cloud-init single --name cc_write_files --frequency always', but I get the following error in log files: 18:57
anankeudo cloud-init single --name cc_write_files --frequency always18:58
anankeoops, wrong paste18:58
ananke2021-06-10 18:57:35,470 - helpers.py[DEBUG]: Running config-cc_write_files using lock (<cloudinit.helpers.DummyLock object at 0x7f8ab8465a60>)18:58
ananke2021-06-10 18:57:35,470 - cc_write_files.py[DEBUG]: Skipping module named cc_write_files, no/empty 'write_files' key in configuration18:58
anankethe docs indicate that this should be the correct module name18:59
blackboxswananke: `sudo cloud-init devel schema --system --annotate` beware if you have username's passwords in that userdata  before pasteing19:00
blackboxswit'll print out the full userdata provided to the vm and allow us to check for syntax errors or missing keys19:00
anankeunrecognized argument: --system19:01
blackboxswoops too new a feature: cloud-init --version19:01
blackboxswananke: `sudo cloud-init query userdata` does the same without error format annotations19:02
blackboxswbut depends on whether your vm has new enough cloud-init too :)19:02
anankeahh, you are right on the money that the syntax may be the culprit. I've removed the additional items I added to write-files, and it works19:03
blackboxsw+1 yeah something is invalid YAML in that output19:03
blackboxsw+1 yeah something is invalid YAML in that userdata19:03
anankeit's cloud-init v 20.219:03
anankethank you, this gives me enough info to go on. the original error just threw me off track19:04
blackboxswananke: for quick iterations on your cloud-init env w/ 20.2: sudo cloud-init query userdata > ud.yaml; cloud-init devel schema --config-file --annotate ud.yaml;19:06
blackboxswthen you don't have to boot/reboot instances as you keep changing ud.yaml.19:06
blackboxswat some point it'll work :)19:07
blackboxsw+119:07
anankecheers!19:12
blackboxswfalcojr: do you know if you plan to get to merging https://github.com/canonical/pycloudlib/pull/148 today. I think it might give us slight CI speed improvement on UA19:18
ubottuPull 148 in canonical/pycloudlib "Move SSH retry logic to boot wait method (SC-58)" [Open]19:18
falcojryes, sorry, I'll do that now19:19
blackboxswexcellent19:20
blackboxswI realize  logically doesn't make sense for me to ask/press as it took me so long to review :)19:20
falcojrpushed my squashes, once CI finishes I'll merge it19:23
falcojrblackboxsw: done!19:43
blackboxswThanks falcojr 19:44

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