/srv/irclogs.ubuntu.com/2014/01/17/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
smoserharlowja_away, bah to pylint. new version in ubuntu now at 1.X, spews warnings about everything.16:12
smoser:-(16:12
smoserhttp://paste.ubuntu.com/6768706/16:15
=== harlowja_away is now known as harlowja
harlowjasmoser arg, stupid pylint17:52
harlowjalogging-not-lazy17:52
harlowjalol17:52
harlowjajeez, when did pylint get so crzy17:52
smoserharlowja_away, https://code.launchpad.net/~utlemming/cloud-init/vendor_data/+merge/201033 your thoughts there would be appreciated also17:53
harlowjasure boss17:53
harlowja:)17:53
smosersome of those things its seeing are reasonable.17:53
smoserbut some (unused-argument or unused-variable)17:53
harlowjaya17:53
smoserwe named them with _ to specify that!17:53
harlowjanutty17:54
harlowjawhich afaik is convention17:54
harlowjak, scott, seems ok to me18:25
harlowjasmoser harmw ok, tested basic freebsd (basics), seems to be starting fine and finding the distro and all18:34
harlowjai'll submit up the rc.d files that sean made18:35
harlowjahttps://code.launchpad.net/~harlowja/cloud-init/freebsd-rc.d/+merge/20215518:42
harlowjaharmw ^18:42
harmwcompare lines 25,26 with 33 ;)18:43
harlowjaya, sean and his '{'18:44
harlowja:-P18:44
harlowjawill fix this for him, lol18:44
harmw(lines 50,51 in cloudfinal.. 2 blanc lines, instead of just 1)18:45
harmwand more like that as well :p18:46
harlowjahmmm, all fixed, lol18:46
harmwhm, what could/would cloudinit_override() do anyway?18:46
harlowjanot sure, let me ask him why18:47
harmwah great :) annoying stuff to bitch about, those whitelines, I know :p18:47
harlowjaharmw thats just reflecting the same thing in the other sysvinit scripts18:48
harmwits the precmd, though I dont know what sourcing that specific file would accomplish 18:48
harmwah ok18:48
harlowjahttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/sysvinit/redhat/cloud-init#L61 18:49
harlowjai guess just reflecting that functionality18:49
harmwindeed18:50
harmwthough CLOUDINITARGS is specified in one of the files in L62 or L6318:50
harmwand the freebsd script doesn't use anything that could've been specified in a sysconfig file, hence my question :)18:51
harlowjasure sure, understood, maybe for future use then :-P18:52
harmwofc, while that could be an argument to completely drop that part for now as well :p18:53
harlowjaeither or18:53
harlowjaharmw so i think sean will packge up any missing dependencies and get those shoved up to freebsd ports also18:57
harmwcool, I posted the pkg stuff already didn't I18:57
harlowjathink so, but might just be good to make sure we have a good list18:58
harlowjaknown ones i had to install [configobj, jsonpatch, Cheetah, argparse]18:58
harlowja[pyserial, oauth] probably also?18:58
harlowja^ those 2 are datasource usage dependent18:59
harmwpkg install python27 py27-yaml py27-requests py27-prettytable py27-cheetah py27-boto dmidecode e2fsprogs gpart sudo18:59
harmwand jsonpatch, manually18:59
harlowjak19:00
harmwthough those could've brought in some of the ones you just mentioned aswell :)19:00
harlowjanp, will make sure sean has a good list19:01
harmwgreat19:01
smoserharlowja, you have a thought ?19:04
smoseri'm looking to put vendor-data into nocloud19:04
smoserthat would seem pretty easy19:04
smoserbut it uses read_seeded19:04
smoserwhich looks for user-data and meta-data19:05
smoserboth of which are "required"19:05
smoserbut vendor-data would be optional19:05
smoserthats easy peasy for "file://"19:05
smoserbut not for http://19:05
smoseras we have retries built in. (and at the moment it doens't look like we have support in 'read_file_or_url' for returning None on 404)19:06
harlowjau should be able to check the status code of the response right?19:07
harlowjahttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/url_helper.py#L86 ?19:07
harlowjawhich in the case of a file 'response' is always 20019:07
harlowjahow do u want it to work i guess19:09
harlowjais the question :-P19:09
smoserharlowja, http://paste.ubuntu.com/6769790/19:30
smoserwhat do yo uthink of that ?19:30
smosernone_on not the best of variable names, but a list of status_codes that should return None without retry19:30
harlowjahmmm, what about a stop_retry_callback ?19:31
harlowjathen u can pass that callback the last request, and it can stop the retry if it wants19:32
harlowja?19:32
harlowjawhat do u think smoser ?19:34
smoserhm..19:36
smoserso you would just pass the exception19:36
smoserthe UrlError ?19:36
smoserwhat is check_status ?19:36
smoseri think i can acutally just use that.19:37
harlowjaya19:38
harlowjathere u go19:38
harlowjaseems like a good usage19:38
smoserk19:38
smoserok. utlemming i think i'm gonna merge the vendordata stuff now.20:08
smoserand then i'll merge some other thigns that i think halrow had suggested20:09
utlemmingsmoser: ack20:09
smoserand then i'm going to work to make NoCloud take vendordata20:09
smoserutlemming, i think that 'mergedvendoruser' is vestigial 20:10
smoserright?20:10
harlowjalike my third baby arm20:12
harlowjaerrr20:12
harlowjahaha20:12
smoseryeah, i've never really understood why you have 3 arms20:13
smoserwierd20:14
harlowjalol20:28
harlowjanot my fault at summits that the 3rd baby arm hits u in face, lol20:29
harlowja*mind of its own and all20:29
smoserharlowja, you there?21:31
smoseryour added tests/unittests/test_ec2_util.py21:31
smoserhas 2 test_metadata_fetch_key21:31
smoserjeeze harlowja . 21:47
smosernow i have to fiddle wit hthis biuld-depends thingy httpretty21:47
harlowjalol21:49
harlowjasmoser well its a nice http testing library21:49
harlowjait should hopefully already exist21:49
smoseryeah. but lots of fallout21:49
smoserbddeb now busted21:50
smoser(due to version)21:50
harlowjahmmm21:50
smoserand the version you depend on is > what we have in trusty21:50
smoser(but you work on trusty)21:50
smoserso i'm dropping that to 0.7.021:50
harlowjak21:50
harlowjai think thats fine21:50
harlowjai can alter it if we really need21:50
harlowjaand drop it21:50
smoserithink th eeasies tthign right now is to drop it as a 'Requires'21:53
smoserbut i guess i'd like a BuildRequires or somthin and put that in21:53
smoserbut we have to plumb that into the ./packages21:53
harlowjaya, typically test-requires right?21:54
harlowjaand thats only used for testing21:55
smoseris it.21:55
harlowjaso then it doesn't need to be in buildrequires either21:55
smoser? 21:55
harlowjaya, from what i've seen at least21:55
smoserwell in ubunt packaing i'm running the tests  21:55
harlowjakk21:55
smoserso a file 'test-requires' ?21:55
harlowjasureee21:58
harlowjaat least thats how openstack projects do it, maybe there is a different way21:59
smoseryeah. thats fine.22:02
smoseri'm gonna commit something really quick here to just drop tha tfor now22:02
smosercould you try to do a test-requires ?22:02
smosererr.. i'll handle that22:03
smoserok. well, just pushed. './tools/bddeb -us -uc' works again22:11
harlowjai can22:11
harlowjashall i?22:11
smoseri added test-requires22:11
harlowjakk22:11
smoserbut tidoesnt get used anywhere really.22:11
harlowjacan probably add it to the makefile when make test is ran22:11
smoseralright. i have to run.22:12
smoserhave a nice weekend all.22:12
smoserthanks for work.22:12
harlowjabyeeeeeeeee!22:12
smoseri'll do more cloud-init work monday i hope22:12
harlowja*waves 3rd arm22:12
smoserand vendordata support for openstack (through the ec2metadata service)22:12
harlowjaya, i gotta work more on my openstackdatasource22:13
smoserand then when we get that Openstack datasource (that harlowja) was going to add...22:13
smoser:)22:13
smosernight night22:13
smoserlater.22:13
harlowjalata22:13
kwadronautmorning23:20
kwadronautcloud-init query --name instance_id gives me NotImplementedError: Action 'query' is not currently implemented 23:21
kwadronautwhich makes me a sad panda. using the package from debian backports, 0.7.2 Is this expected, anything i can do t ofix it?23:22
harlowjahmmmm, i still think its not fully implemented (unless i forget)23:29
harlowjahttps://code.launchpad.net/~harlowja/cloud-init/query-back-duo23:29
harlowjakwadronaut ^23:29
harlowja'Integrate a slightly cleaner query tool, bring it back to life!'23:29
harlowjalol23:29
kwadronautheh23:30
kwadronautit's i think good to have, especially for beginners trying to debug.23:31
harlowjaagreed23:33
harlowjamost of the data though is at /var/lib/cloud/ though23:33
harlowjahttp://cloudinit.readthedocs.org/en/latest/topics/dir_layout.html 23:33
harlowjabut not so easy as just using that tool23:34
kwadronautyep23:41

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