=== dendrobates is now known as dendro-afk === Hussain is now known as Guest32644 === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates [17:23] smoser: Is cloud-init start-local supposed to fail on EC2? [17:24] you want it to exit success [17:24] Hmm... [17:24] i thoguth there was bug on that. [17:24] I'm looking at the new comment on bug 861943. [17:24] Launchpad bug 861943 in cloud-init "Add systemd support" [Medium,Fix committed] https://launchpad.net/bugs/861943 [17:25] I suspect I'm doing something wrong, but I'm not sure what. [17:26] gholms, it does exit false if it fonds nothing. [17:26] it probably shoudl exit success. [17:27] Sounds like that should be a separate bug, then. [17:27] cloud-init start should later find the EC2 source and make everything work, right? [17:48] gholms, no. [17:49] cloud-init-local should start earlier and find nothing [17:49] cloud-init should then come and find a metadata service from the network [17:49] cloud-init would be bettter named cloud-init-net [17:52] I was under the impression that start-local was just supposed to clean up the cache after previous runs. Why is it looking for a data source? [17:54] * gholms goes through the code again [17:59] gholms, because there are local data sources [18:00] (DataSourceNoCloud) [18:00] and i just added one for openstack "ConfigDrive" yesterday. [18:02] Sure, but can't those be done during start, not start-local? [18:03] gholms, well they run earlier. [18:03] they don't depend on network. [18:04] so they can influence more of boot. [18:04] the configdrive one can write /etc/network/interfaces [18:04] Ah, that's why. [18:04] So should start-local *and* start exit successfully if there is no data source, or just start-local? [18:05] i really can't htink of a good reason to not make them exit 0 on non-failure but no datasource found. [18:05] initially, i'm sure i considered it failure if there was no data source [18:05] i'm opne to input here. [18:06] start-local certainly shouldn't fail due to that. [18:06] I could go either way with start. [18:08] Both use the same code path at that point, right? It would probably be easier to just change them both. [18:18] yeah, the exit is the same place. [18:22] worksforme [18:25] i just pushed that change. [18:25] Thanks [18:32] So... as long as you're here... :) [18:32] util.runparts runs ``run-parts --regex .* foo''. [18:33] Can we kill off the "--regex .*"? [18:33] Fedora's run-parts script is somewhat braindead. [18:35] I suppose I should just file a bug. [19:52] hello. Is there a way/program to run a partition in a virtual machine, please? [20:10] gholms, sorry... regarding regex.. [20:10] i tihnk i needed that for some reason. [20:10] and there is a bug. [20:12] by default, run-parts skips some files. man page says [20:13] ames must consist entirely of ASCII upper- and lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens. [20:13] which would seem sufficient, but i sweare i did this for a reason === dendrobates is now known as dendro-afk [20:17] gholms, yeah.. if i search through logs i find [20:17] http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/99 === dendro-afk is now known as dendrobates === dendrobates is now known as dendro-afk === dendro-afk is now known as dendrobates [22:02] Ouch. [22:13] smoser: Would a condition of some kind make sense or would you rather I carry a patch? [22:14] if you can think of a way to do some condition, i'll take that patch for sure. [22:16] I guess one test could simply be seeing if the file starts with #!/bin/bash. [22:17] The Debian one is a compiled executable. [22:17] yuck, thogh. [22:17] Yup [22:17] my othe rscary thought was to just implement run-parts in python [22:18] but i'm almost certain i'll do it incorrectly in some sense [22:18] at least at first. [22:18] "for file in sorted(os.listdir(dirp)): subprocess.check_call([file])" ? [22:19] Since the goal is to run *everything* and all [22:19] But yeah, there are bound to be corner cases.