[09:08] <mhroncok> hi, I've seen Python 3 patches were merged, that's great, thanks
[09:11] <mhroncok> smoser: is there a time estimate for new release containing Python 3 support?
[13:19] <fish_> hi
[13:21] <fish_> I probably just need a nudge in the right direction but how does passing the actual arguments to cloud-init work technically? on AWS it reads the config from the UserData stuff, but where does cloud-init pulls that from on the local system?
[13:23] <fish_> is it fetching it from http://169.254.169.254/latest/meta-data/? or reading it somehow from the local instance?
[13:28] <Odd_Bloke> fish_: It uses EC2's metadata server.
[13:31] <fish_> Odd_Bloke: ok.. well then my next question would be how to mock that up for testing my cloud-init configs without spinning up a new instance every time
[13:35] <Odd_Bloke> fish_: I _think_ if you put stuff in /var/lib/cloud/seed/ec2 then it will be picked up; not sure on the details of what would need to go there.
[13:35] <Odd_Bloke> fish_: The docs helpfully have "TBD" in that section. :p
[13:36] <fish_> Odd_Bloke: ah thanks. at least that's good enough to digg through the code :)
[13:36] <Odd_Bloke> fish_: Try /var/lib/cloud/seed/ec2/user-data and /var/lib/cloud/seed/ec2/meta-data, maybe.
[13:36] <Odd_Bloke> fish_: Line 54 of DataSourceEc2.py is the place to look.
[18:16] <Odd_Bloke> harlowja_: I've added support for CloudStack password servers to cloud-init: https://code.launchpad.net/~daniel-thewatkins/cloud-init/cloudstack-passwords/+merge/250028
[18:16] <Odd_Bloke> harlowja_: bzr blame suggests you might be a good person to tag for a review. :)
[18:16] <harlowja_> uh oh, cloud-stack
[18:16] <harlowja_> :)
[18:17] <harlowja_> is there anyway u can add some tests for that
[18:17] <harlowja_> i'll add some other comments to
[18:18] <Odd_Bloke> harlowja_: Thanks! I'm about to finish my day here, so will pick them up tomorrow morning (UTC). :)
[18:19] <harlowja_> :)
[18:19] <harlowja_> kk
[18:33] <Odd_Bloke> harlowja_: The CloudStack password server is terrible; it doesn't return any HTTP headers.
[18:33] <harlowja_> :-/
[18:33] <harlowja_> sad
[18:33] <Odd_Bloke> harlowja_: It literally returns those strings.
[18:33] <harlowja_> but those are my passwords!!
[18:33] <harlowja_> haha
[18:33] <Odd_Bloke> harlowja_: Which is also why url_helper can't be used; HTTP libraries break if they don't get HTTP headers.
[18:34]  * harlowja_ pretty sure u can tell it to send some headers in
[18:34] <harlowja_> http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/url_helper.py#L179 (headers or headers_cb there)
[18:34] <harlowja_> unless u are thinking of some other headers or somethign
[18:35] <Odd_Bloke> harlowja_: Sorry; I meant that the password server doesn't return a status line or headers.
[18:35] <harlowja_> thats a weird server, lol
[18:35] <harlowja_> seems like someone forgot to read the http spec when making that, lol
[18:35] <Odd_Bloke> harlowja_: Which means that HTTP libraries fall over when parsing the response.
[18:35] <harlowja_> :-/
[18:35] <harlowja_> weird stuff
[18:36] <Odd_Bloke> Yeah, it's been a fun few days. :p
[18:36] <harlowja_> so its like a sorta-half-baked http/not-http server, lol
[18:36] <Odd_Bloke> So we use HTTPConnection to make the request, but then go in and read straight off of the socket it created.
[18:36] <harlowja_> can u at least chop out the 'http_client.HTTPConnection' and make a little mini client that has information about this?
[18:36] <harlowja_> like a PasswordServerClient
[18:36] <harlowja_> and add docs saying this thing is weirdo, lol
[18:37] <Odd_Bloke> Good thinking.
[18:37] <harlowja_> why even use a 'http_client.HTTPConnection' ?
[18:37] <harlowja_> vs just a raw sockt
[18:37] <harlowja_> seems like its so custom that its not even http, lol
[18:38] <Odd_Bloke> harlowja_: I did try, but it did complain when the HTTP request wasn't sensible.
[18:38] <harlowja_> weird http server, lol
[18:38] <Odd_Bloke> (Hypocritically, I might add :p)
[18:38] <harlowja_> then u should reply back your http response isn't sensible iether, lol
[18:39] <Odd_Bloke> I should probably open up a bug in CloudStack.
[18:39] <harlowja_> def :-/
[18:39] <Odd_Bloke> Subject: Are you nuts?
[18:39] <harlowja_> or, don't make your own http servers (which it seems like someone did)
[18:39] <harlowja_> i'm pretty sure java has something they should of just used, lol
[18:39] <harlowja_> like one of the hundreds of http servers/libraries that probably works
[18:39] <Odd_Bloke> I'm cloning the source to see if I can find out. :p
[18:40] <harlowja_> anyway, a 'PasswordServerClient' server client mini-class would be cool, and docs saying why this is so weird would be cool :)
[18:41] <harlowja_> and links i guess to any bug or whatever u uncover
[18:47] <Odd_Bloke> Will do.
[18:47]  * Odd_Bloke --> pub