[03:34] looks like python2.6 is busted again [03:34] lol [03:37] https://gist.github.com/harlowja/7e1e7106e81f5aa809645d76dd74bddd [03:41] meh, no one really uses that :P [03:41] is that still maintained even for sec bugs? [03:41] python 2.6, its prob not [03:41] :P [03:41] sadly cent6 is still maintained [03:42] and cloud-init 0.7.x still says 2.6 supported (i'll have to support it no matter, ha) [03:43] simple stuff like data = {v: "UNAVAILABLE" for v in fmap.values()} though isn't hard to fix [03:43] just a PITA that its not getting detected earlier [03:44] oddly though even 2.7 seems currently busted @ https://gist.github.com/harlowja/3ea5fd7ad3739704e3298ab35ceefd1c [03:44] thats on rhel7 [08:06] smoser: I figured out the problem, it was in my yaml :| [08:06] Sorry for all the trouble [08:06] I also did change the qemu-kvm boot options and added a `-boot dc` to elimnate the race condition [11:42] ffledgling, well, fwiw, -boot dc wont really fix any race. [11:43] the race happens because cloud-init doesn't attempt to wait for disks that aren't there to become attached (as they may never become attached) [11:43] and by not waiting, linux might not have enumerated them yet. [11:54] smoser: I see [11:54] as i said though, i've never seen it in practice. [11:57] smoser: got it [11:58] I really ended up linking cloud init once I got it working correctly. It was just strange when I started with it [12:03] ffledgling, thanks. [12:03] yaml is indeed easy to mis-type [12:04] one very simple thing you can do is just: [12:04] python -c 'import yaml, sys, pprint; pprint.pprint(yaml.load(open(sys.argv[1])))' [12:04] and if it stack traces, thats bad yaml [12:05] it doesn't do any further checking obviously, and we want to better lint or schema data, but do not at the moment [12:11] smoser: Yeah, I think my problem was I was using a makefile to generate the yaml on the fly and I accidently did the thing where I converted tabs to spaces, which resulted in incorrect indentation. [12:11] I think python on the whole doesn't have great support for YAML [12:14] ? [12:14] it has really good support for yaml [12:14] in terms of identifying and point out syntax errors I mean [12:14] tabs and spaces are by yaml specification not intermixable [12:15] yeah, the loader doesn't give you a ton of good info. [12:15] one thing you *can* do is just use json [12:15] yaml is a strict superset of json [12:15] the builtin json module is pretty bad as well, and very unforgiving iirc (simplejson is better I think?) [12:15] Does cloud init support json? === mgagne_ is now known as mgagne === rtheis_ is now known as rtheis [13:56] Is automatic package installation a new feature (post 0.7.6) ? For whatever reason the packages directive doesn't work for me [13:59] ffledgling: JSON is valid YAML, I believe, so yes. :) [14:32] Ignore my old complaint about installation not working, it was just taking time and running in the background [14:45] Odd_Bloke, yes. YAML is 100% strict superset of JSON [14:45] its basically json with some nice human features like: [14:46] a.) "anchors" which are like references and really nice [14:46] b.) easily mis-typable in non-obvious ways [16:31] magicalChicken, if you're lookin for things... on cloud-init cleanup [16:31] one thing that would be nice.. in nplaces we stack trace and put a failure in the log (at warn level) [16:32] but the strings are all one line and very hard to read [16:32] it'd be nice if put well formatted human readable stack traces somewhere on failure. [16:37] smoser: right yeah that makes sense [16:37] similar to the issue with curtin util.ProcessExecutionError [16:38] I'll figure out how to fix the formatting there for cloud-init, shouldn't be too difficult === rtheis_ is now known as rtheis === JasonF is now known as JayF [20:11] @smoser if u get a chance https://code.launchpad.net/~harlowja/cloud-init/+git/cloud-init/+merge/304001 [20:11] that i think should fix the 2.6 occurence that i think is busted [20:11] or at least one of them, lol [20:13] though i think there are more, lol [20:14] ie https://gist.github.com/harlowja/4ee5f7da70e422d918f3bfa8a5f2bf33