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

ajd_i've got a VM on an openstack-ish setup which is configured using a ConfigDrive, and for some reason cloud-init isn't always detecting said ConfigDrive - any hints where I should start looking to debug this and understand why it can't seem to find it?02:29
CrummyGummyHi. I am dabbling with cloud-init. I need a script run on startup but it doesn't seem to be running. 10:26
CrummyGummyI ran the schema command and it said that my cloud.cfg file is valid10:27
CrummyGummyI'm not sure how else to debug this. It's just doing nothing. All I need is that script run so I set my datasource_list to None. 10:28
CrummyGummyCan anyone please give me some guidance on how to sort this out?10:29
CrummyGummyI found this answer. It works when running it as the example. No luck with the server actually running it. https://gist.github.com/aw/40623531057636dd858a9bf0f67234e810:57
falcojr1CrummyGummy: can you provide a link to your cloud-config?16:06
enshi folks. i am looking to do some contributions and was directed towards here to see about coming on as a bug squasher.16:22
enscan anyone give me a few pointers on where i should get started?16:22
falcojr1ens: We welcome all contributions! You're interested specifically in cloud-init bugs?16:25
falcojr1if you haven't contributed a PR to the project yet, here's probably a good starting place16:25
falcojr1https://cloudinit.readthedocs.io/en/latest/topics/hacking.html#16:25
falcojr1our bugs are on launchpad here: https://bugs.launchpad.net/cloud-init16:26
ensfalcojr1: thanks. i am indeed. it seems like a good project to sharpen my cloud/python skills. i have a lot of non-cloud + programming experience in other stuff.16:27
ensso i figure if i roll up my sleeves and do some work with this then i'll learn one way or another. and i have a lot of free time.16:28
falcojr1sounds good! Let us know if there's anything unclear in the docs16:30
ensi guess the main thing for me at the moment is probably to actually start using the software in order to get acquainted with it before i can realistically consider contributing any patches and such.16:44
ensi'll be reading up on the docs and have an adventure with it soon, but i was just wondering if you had any particular setup or example you thought might be beneficial to follow for educating myself?16:45
ensmuch appreciated for the help btw16:45
blackboxswens: to shamelessly promote a general community effort that hasn't gotten enough attention (and doesn't require a lot of context to start putting up PRs) here's a pointer to a bucket of schema definitions that'd really help us toward our upcoming goals for better cloud-init user-facing  errors: https://bugs.launchpad.net/cloud-init/+bugs?field.tag=bitesize17:04
blackboxswat some point we want json schema definitions in all of our cloud config modules, trying to grab one of those feature bugs related to schema would be an easy get your toe into the water without broader context. Only knowledge you'd need to build would be around https://json-schema.org/understanding-json-schema/UnderstandingJSONSchema.pdf17:05
blackboxswand mapping that knowledge to allowed configuration options in cloud-init17:05
blackboxswfalcojr1: I'm reviewing the PR adding a deferred write_files module and wondering a couple things https://github.com/canonical/cloud-init/pull/91617:06
ubottuPull 916 in canonical/cloud-init "Add module 'write-deferred-files' executed in stage 'final'" [Open]17:06
blackboxswI'm wondering if we actually want to define that cloud-init would honor both: write_files_deferred: [...] 17:07
blackboxsw- and -17:07
blackboxswwrite_files:17:07
blackboxsw- path: 117:07
blackboxsw  deferred: true|false  # false default17:07
blackboxsw  17:07
blackboxswI can't decide if we want folks to only use the top-level `write_files`:  directive and force per item "defer: true"  or just allow a top-level write_files_deferred and just honor the basic write_files schema, but perform those operations all in cloud-init-final.17:09
blackboxswI'm just generally averse to providing two ways to do the same thing.17:10
blackboxswby that logic, I also don't want a users: subordinate -files directive as that is far too specific where a generic `write_files_deferred` will do and solve other use cases.17:11
blackboxswso I guess my proposal is either of these two  options: 17:12
blackboxsw1. only surface a new write_files: defer:true option, add a cc_write_files_deferred module which reads `write_files:` config and operates on all `deferred: true` items17:13
blackboxswOR17:13
blackboxsw2. add a new `cc_write_files_deferred` module which will have the same schema as cc_write_files.schema with the exception that it only handles a new top-level config directive `write_files_deferred: [....]`17:15
blackboxswI'll make these comments on the PR too for broader communication17:15
ensblackboxsw: thanks for the advice on where to jump in. i'll read up on what the story is.17:42
blackboxswexcellent, welcome to the party17:42
falcojr1blackboxsw: right, #1 is my preference there17:49
blackboxswthanks falcojr1 I just fell on to option too as I felt cc_write_files_deferred honoring a new write_files_deferred: key allowed us to more easily group deferred items without having to add defer: true to each item in a list (if someone is manipulating lots of user-owned files for instance).... But in either case I provided diffs for both solutions to discuss 18:34
blackboxswhttps://github.com/canonical/cloud-init/pull/916#pullrequestreview-72453140418:34
ubottuPull 916 in canonical/cloud-init "Add module 'write-deferred-files' executed in stage 'final'" [Open]18:34
blackboxswok onto that gcloud thing 18:35
falcojr1thanks!18:35

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