/srv/irclogs.ubuntu.com/2017/03/15/#cloud-init.txt

=== shardy_afk is now known as shardy
=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
jsheerenhi all, is there a way to detect if a cloud init has failed, besides polling the log?14:34
rharperjsheeren: yeah, /var/lib/cloud/data/{result,status}.json14:35
smoserjsheeren, and those are in /run/cloud-init/ also. i think thats probably preferred place as /var/lib/ could be stale14:36
jsheerenaha! thanks!14:37
jsheerenis there a config option somewhere where i can run a program when cloudinit fails?  or is it best to write some sort of daemon who polls the /var/lib/cloud/data/{result,status}.jso files?14:42
rharperI don't think there's any sort of run this on failure in cloud-init directly;14:43
rharperI suggest looking at using an inotify watch on those files to get a trigger when they're written14:44
jsheerenrharper: ok, thanks, i'm going to look into that14:45
smoserresult will be written only once, and atomicly14:47
smoserbut only if cloud-init-final ran14:48
smoserstatus is written with each stage.14:48
=== rangerpbzzzz is now known as rangerpb
smoserrharper, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/319943 woudl apprecate a review. it wont fix the root cause of bug 1671927 but it will fix something.16:24
rharpersmoser: commented16:30
powersjmagicalChicken: if I start working on the KVM code without some of your new branches, how much hurt will that be?16:35
magicalChickenpowersj: the signature for some of the platform methods changed16:50
magicalChickenit would probably be best to just base it off the new integration-testing branch16:50
powersjmagicalChicken: this one right? https://code.launchpad.net/~wesley-wiedenmeier/cloud-init/+git/cloud-init/+ref/integration-testing16:51
magicalChickenpowersj: also the image config format changed and the config handling changed, which would be an issue16:51
magicalChickenpowersj: yeah16:51
magicalChickenif you want to start off of that, it should work out ok, i wont rebase again16:52
powersjso in terms of branches of yours we want to land there are 3? integration-testing, integration-testing-distor-features, and integration-testing-invocation-cleanup?16:52
magicalChickenintegration-testing and integration-testing-invocation-cleanup are the two ready right now16:52
magicalChickenalthough i still need to rebase invocation-cleanup16:53
magicalChickenthe distro-features one i'm still debugging some test failures on centos16:53
powersjok16:53
powersjoh what about integration-testing-pylxd?16:53
magicalChickenoh, that one isn't needed, the pylxd fix is in the main integration-testing16:53
powersjok16:54
magicalChickeni should probably delete that one16:54
powersjok, so for now we need smoser to look at integration-testing16:54
magicalChickenyeah, that's the main thing right now16:55
smoser /o\16:56
powersjis that the reverse of being excited? hands over ears?16:57
magicalChickenlol16:57
smoseris your commit message still all correct ?16:57
smoser   - when using 2.2 the test suite cannot complete large16:58
smoser     runs without hitting the pylxd too many open files16:58
smoser     issue, so 2.2 should only be used for development16:58
magicalChickensmoser: no, thanks for catching that, i hadn't updated the commit message at the top yet16:58
smosermagicalChicken, but you think that the commit series is sane as they are ?16:59
smoserie, i'm ok to do a pull of mlutiple commits in a series here.16:59
magicalChickenyes, i think so16:59
magicalChickeni've gone through and rewritteen all the commit messages to make sense from outside the integration-testing dev branch16:59
magicalChickenand the commits in that series are all pretty well separated from each other17:00
powersjmagicalChicken: why multiple tox entries? Do we really need the old one?17:00
magicalChickenpowersj: i can pull it out17:01
smoseryeah, i'd drop that.17:01
powersj+117:01
magicalChickensure, one minute17:01
smoserand i'd drop support for 2.1 as it seems generally broken17:01
smoserright?17:01
magicalChickensmoser: yeah, it doesn't return command exit code which is pretty bad17:02
smoserif execute('/bin/false') blissfully goes on17:02
smoserdo you have an reason for 'ignore_errors' rather than explicit values like subp ?17:02
magicalChickensmoser: i could do something more along the lines of subp17:03
smoserignore_errors == subp(['/bin/false'], rcs=range(0, 256))17:03
magicalChickenyeah, that gives us some more control when we need to ignore errors17:03
smoserie, if i want to just ignore anything, thats pretty easy to do with an explicit list of rcs17:04
smoserand  less surprises when somethign returned 14 and we only really expected 0 or 117:04
magicalChickencurrently the ignore errors is pretty much only used for the actual collect scripts. and i want to remove that eventually, but i haven't gone through all the collect scripts to see what the impact would be17:04
smoserdont worry about re-writing the commit message at the moment.17:04
magicalChickenok17:05
magicalChickeni was going to rebase to pull out the tox env, do you want me to just add a new commit for it instead?17:05
magicalChickensmoser: i pushed commits to remove the tox env and switch to rcs=(0,1) for execute(), should be ready to go now18:08
powersjmagicalChicken: thanks!18:08
smoserok. i'll oook a bit mroe18:09
magicalChickenaah, it looks like i may have messed up a bit in the rcs 1, i'm going to amend that real quick18:09
magicalChickenshould be good to go now, i messed up the change in collect and didn't catch it until one of the tests failed a collect script18:10
smoserrharper, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+ref/feature/net-render-priority19:32
smoserthat is the branch i have.19:32
rharpersmoser: cool19:32
smoserbut from cloudinit.net import render_factory19:32
smoserrender_factory.select_renderer()19:33
rharpersmoser: and in my branch, I'll insert the netplan stuff19:43
smoserok. i have to run for a while, probaly check back in later tonight.19:45
rharperok19:45
rharperI should have an update pushed with unittests19:45
Odd_Blokesmoser: Can I change the default username from {vendor,user}-data?  I still want my renamed user to get the default SSH keys etc.21:26
Odd_BlokeAha, using "user:" rather than "users:" works.21:31
=== rangerpb is now known as rangerpbzzzz
dtphello again.  i'm having a problem similar to https://bugs.launchpad.net/cloud-init/+bug/1645597, but i'm on Openstack and ConfigDrive; should i log a new bug or just add on to this one?21:56
rharpersmoser: ok, pushed v2 netconfig branch again, reasonable unittests for v2 rendering and other places;23:54

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