/srv/irclogs.ubuntu.com/2021/07/31/#cloud-init.txt

nakilonso I see the user-data.txt being downloaded after cloud-init clean and reboot; but it does not seem it was ran; can't really find anything relevant in /var/log/cloud-init.log; the only mentions of user-data is "writing to ... instances/(a lot of digits)/user' and there is no such file now, probably a temp file02:05
nakilonmy config had to mount a disk and restart docker -- none of this has happened02:07
nakilonconfig :https://dpaste.org/LDAY/slim02:08
nakilon2021-07-31 01:58:15,732 - __init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: 'b'bootcmd:'...' .... 2021-07-31 01:58:15,736 - handlers.py[DEBUG]: finish: init-network/consume-user-data: SUCCESS: reading and applying user-data02:12
nakilonthe yaml seems to be valid https://dpaste.org/FANA/slim02:15
nakilonoh, the /var/lib/cloud/instances/8675720279121330233/cloud-config.txt  actually exists, but it's 0 bytes long02:36
nakilonI'll look into using 'write-files'02:44
nakilonstill weird though that it didn't rerun the Config sine I did the 'clean' before machine restart02:45
nakilondidn't help; the /var/lib/cloud/instance/user-data.txt has been updated with https://dpaste.org/Ncbq/slim ; the sdb is visible in lsblk, but the disk didn't mount and docker is still using his default directory03:02
nakilonlog part: https://dpaste.org/VK1U/slim03:04
nakilonoh, and the /var/lib/cloud/scripts/per-boot/ is empty actually03:05
nakilonthe write_files portion of logs https://dpaste.org/ANs4/slim03:06
nakilonoh, the yaml had an error -- need a '-' before 'path:' to put it in an array; but it still didn't help: instance restarted, user-data.txt updated, the log still says  no/empty 'write03:13
nakilon_files' key in configuration03:13
nakilonso 1. the command "cloud-init devel schema --system --annotate" from here https://cloudinit.readthedocs.io/en/latest/topics/faq.html#how-can-i-debug-my-user-data  throws "error: unrecognized arguments: --system"03:19
nakilon2. sudo cloud-init devel schema --config-file /var/lib/cloud/instance/user-data.txt  says: "needs to begin with "#cloud-config"" -- finally a clue! didn't expect this, I thought it's just a comment that is commonly put in docs when the example file is listed03:20
nakilonstill does not work though https://dpaste.org/TokQ/slim03:36
nakilonoh, do I have to add the permissions: '0744' and shebang?03:49
nakilonyes! it works now03:54
=== felfert is now known as felfert_
=== felfert_ is now known as felfert

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