nakilon | so 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 file | 02:05 |
---|---|---|
nakilon | my config had to mount a disk and restart docker -- none of this has happened | 02:07 |
nakilon | config :https://dpaste.org/LDAY/slim | 02:08 |
nakilon | 2021-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-data | 02:12 |
nakilon | the yaml seems to be valid https://dpaste.org/FANA/slim | 02:15 |
nakilon | oh, the /var/lib/cloud/instances/8675720279121330233/cloud-config.txt actually exists, but it's 0 bytes long | 02:36 |
nakilon | I'll look into using 'write-files' | 02:44 |
nakilon | still weird though that it didn't rerun the Config sine I did the 'clean' before machine restart | 02:45 |
nakilon | didn'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 directory | 03:02 |
nakilon | log part: https://dpaste.org/VK1U/slim | 03:04 |
nakilon | oh, and the /var/lib/cloud/scripts/per-boot/ is empty actually | 03:05 |
nakilon | the write_files portion of logs https://dpaste.org/ANs4/slim | 03:06 |
nakilon | oh, 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 'write | 03:13 |
nakilon | _files' key in configuration | 03:13 |
nakilon | so 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 |
nakilon | 2. 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 listed | 03:20 |
nakilon | still does not work though https://dpaste.org/TokQ/slim | 03:36 |
nakilon | oh, do I have to add the permissions: '0744' and shebang? | 03:49 |
nakilon | yes! it works now | 03: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!