[00:24] * babbageclunk goes for a run === thumper is now known as thumper-dogwalk [01:15] wallyworld: see priv msg [01:22] anastasiamac menn0: on the topic of not being entirely confused: https://en.wiktionary.org/wiki/mersi [01:24] axw: cool :) [01:24] axw: we should start a club \o/ [01:35] menn0: ping [01:35] babbageclunk: pong [01:36] menn0: So the other thing that I forgot to ask about because you threw that bijou spannerette into the works was about the version numbers on the log messsages. [01:38] menn0: on https://github.com/juju/juju/pull/6588 thumper-dogwalk was wondering whether we should maintain them from the source system. [01:39] menn0: link to relevant comments https://github.com/juju/juju/pull/6588#discussion_r88825956 [01:44] babbageclunk: sorry, got distracted [01:44] babbageclunk: I didn't know that the version number was being sent [01:44] * menn0 looks at the code [01:49] menn0: Well, it's sent as a url parameter when the logsender connects to the logsink api handler. [01:49] babbageclunk: yep I see that [01:51] babbageclunk: given that the current code requires it, I guess continue passing the version from the source controller [01:51] babbageclunk: it's terrible that each log record in the DB stores the version [01:51] babbageclunk: but I don't think you should try to fix that now [01:51] babbageclunk: all the logs in the DB should be in the same format [01:52] menn0: ok, but not changing debug-log to get the version from the source DB and emit it? [01:55] menn0: I'm good with not doing that, just want to check. [01:59] babbageclunk: sorry... can we HO, I'm not understanding [02:00] menn0: sure https://hangouts.google.com/hangouts/_/canonical.com/menno === thumper-dogwalk is now known as thumper [02:03] menn0, babbageclunk: I'd like to know the rationale behind the sending of the juju version [02:03] I just don't see the point [02:03] and especially storing extra data we don't need in the lgos [02:03] logs [02:08] thumper: I just chatted to babbageclunk. we all agree that storing version on each log record is dumb. [02:09] thumper: babbageclunk is filing a bug about that [02:09] * thumper agrees [02:09] thumper: that's what I meant by *all* :p [02:09] :) [02:10] thumper: the version isn't going to be sent per record when the logs are transferred during migration [02:10] thumper: but to avoid having to change too much now it's still going to be sent at connection time (it might end up being useful too) [02:10] sure [02:55] * thumper needs coffee badly [03:02] I cant believe someone would write a REST API "wrapper" and just give it methods for Get, Delete, Post, etc. [03:03] thumper: totally unrelated... any idea the easiest way to ping a maas to make sure the endpoint is correct? [03:06] natefinch: yeah [03:06] natefinch: there is an unauthenticated endpoint I think you can hit [03:06] which will tell you version info [03:06] * thumper looks [03:07] that's what I was thinking of... the gomaasapi package documentation is somewhat less than helpful [03:08] given an endpoint [03:08] do a GET endpoint/version [03:08] see if that works [03:09] * thumper thinks... [03:10] nope [03:10] endpoint/api/2.0/version [03:13] thumper: I was going to use gomaasapi's NewUnauthenticatedClient.... a little search in our codebase shows client.GetSubObject("version/").CallGet("", nil) might work? [03:13] if you have go [03:13] then it is very easy [03:13] yeah.... this is an addition to the maas provider [03:14] a way to precheck a url when doing interactive add-cloud to make sure you don't typo the endpoint [03:14] gomaasapi.NewController(gomaasapi.ControllerArgs{ [03:14] BaseURL: maasServer, [03:14] APIKey: apiKey, [03:14] }) [03:14] if it errors, it isn't there [03:14] this is pre-controller [03:14] before bootstrap [03:15] this isn't a juju controller [03:15] but a gomaasapi controller [03:15] oh, I see [03:15] it is just a nice endpoint to hit [03:15] it wraps all the maas objects [03:15] part of the controller creation [03:16] is to check that the endpoint supports the 2.0 api [03:16] if it isn't up, or doesn't support it [03:16] what's apikey? [03:16] it will error out [03:16] the oauth key [03:16] that they need to provide for authentication / authorization [03:19] the problem with that is that add-credential is separate from add-cloud, so I won't have the apikey yet. [03:20] the version check should work though, assuming it can be done unauthenticated [03:23] yeah, not 100% sure, but worth checking [03:23] the new controller might barf if not given a valid key [03:24] natefinch: this is icky [03:24] natefinch: but specify an empty apikey with "::" [03:24] the code does a split on ":" and checks for 3 elements [03:26] ha [03:50] thumper: ping? [03:55] babbageclunk: hey [03:56] thumper: So I was gearing up to use ConnectStream to talk to the migration target when I realised that it sticks a model uuid on the front of the path [03:57] thumper: plus there's no way to add the model uuid header to the request. [03:57] yeah... there is [03:57] * thumper thinks [03:58] It looks like the machine nonce has some specific handling. [03:58] babbageclunk: it may need a little refactoring with a hammer [03:58] Yeah, that's what I figured. [03:59] thumper: I was thinking a ConnectControllerStream, which would also take some headers to add to the request. [03:59] babbageclunk: sounds reasonable [04:00] thumper: And then an adapter that takes some headers and exposes a ConnectStream method that calls ConnectControllerStream internally... [04:00] * thumper nods [04:00] So I can pass it to something that takes a StreamConnector. [04:00] Make sense? [04:00] babbageclunk: you probably want to do something similar to what I did for the binary transfer [04:00] but yes [04:01] it matches what you are saying [04:01] ok great! [04:01] thanks [04:02] oh, actually, I don't think I need the adapter - I thought I needed to call something that expected a StreamConnector, but that's on the reading side. [04:03] menn0: https://github.com/juju/juju/pull/6592 [04:17] tfw you haven't run your vmaas in forever and now can't remember what the login info is [04:18] axw: there's no rush because farking bot is broken, if you get a chance at somepoint, here's a boilerplate PR to set up the remote relations worker https://github.com/juju/juju/pull/6593 [04:23] wallyworld: okey dokey, will look after lunch. just about ready to send my PRs so will have a break [04:23] sure, np, ty [04:24] can't land till bot is fixed anyway [04:24] i need to go get food as well [06:43] babbageclunk: updated PR as discussed, so far has been running without failures for 45+mins (over 1700 runs) [06:43] babbageclunk: https://github.com/juju/juju/pull/6574 [06:43] babbageclunk: before it used to fail within then first 400 depending on my mood :) [06:44] babbageclunk: is it what u had in mind? :D [15:23] katco: https://www.facebook.com/mfoord/posts/10153916822535880 [15:23] voidspace: tal [15:23] voidspace: are the diamonds ethically mined? [15:24] katco: that is a good question to which I do not know the answer. [15:24] katco: I will ask [15:24] katco: rick_h: https://www.etsy.com/uk/shop/MirielDesign?ref=l2-shopheader-name [15:25] voidspace: I'm reading several slightly confusing sets of instructions on stackoverflow involving git rev-list [15:25] mgz: a manual bisect is probably less hassle... [15:26] katco: I have emailed Josephine and asked her - I will be astonished if they are not, but worth asking. [15:31] mgz: thoughts on implementing a Ping(endpoint) method for the openstack provider? [15:38] natefinch: my first thought is the method just needs to call authClient() [15:39] mgz: ideally it needs to be without auth. This is during add-cloud, so we don't have creds yet [15:40] well, until Authenticate is called I don't think it actually talks, lets just see if there's a keystone command we can do without auth [15:41] well, listing certainly can be, lets see if goose exposes rather [15:42] there's FetchAuthOptions [15:43] is that sensibly exposed... [15:48] natefinch: looks like you can create an authenticcatingClient, then rather than calling Authenticate, call IdentityAuthOptions [15:48] which will return not-nil, nil if the endpoint is valid keystone [15:49] mgz: interesting, ok [15:49] that doesn't give you region info [15:49] what's the best way to confirm which agent was used to bootstrap with? I can look at the logs -- anything more programmatic than that? I want to confirm I used a specific location that isn't streams.c.c [15:50] mgz: I just need to check if there's actually an openstack at that endpoint [15:50] balloons: bootstrap output is the best way [15:50] mgz: can I check region endpoints the same way? [15:50] mgz, redirect and grep the debug log? [15:51] natefinch: I think you might need valid creds to get service/region pairs [15:51] mgz: I mean, can I call IdentityAuthOptions with the url of the region endpoint? [15:51] balloons: yes, I don't think I can come up with a better options [15:52] natefinch: no, IdentityAuthOptions only looks at what the keystone service itself is advertising as endpoints [15:52] to get a list of services, you need a url under that, which I think will generally require creds [15:57] ahh, three line error message from goose, fantastic [16:00] mgz: seems to work :) [16:01] mgz: interestingly enough, that should let us just avoid asking what kind of auth the cloud uses [16:07] natefinch: ah yes, that is also upside [16:09] mgz: somewhat tricky to add, though, given that this is in the middle of some very generic code. [16:12] I'll skip it for now and make a todo for later. [16:18] katco: Josephine of Miriel is confident that her diamonds are ethically sourced and has pointed me to the two places she sources them from [16:19] voidspace: awesome! [16:19] katco: I'm glad you asked actually, it should have occurred to me [16:19] voidspace: i don't know much, but i do know that is a bloody business :( [16:19] katco: yup :-( [16:20] time to collect daughter [16:20] I think most places these days use ethically sourced diamonds, but it's definitely always good to ask. [16:20] (at least in first world nations) [17:17] natefinch: do you know how my card is different from https://github.com/juju/juju/blob/develop/cmd/juju/cloud/add.go#L162 ? [17:20] rick_h: ping [17:20] katco: otp pong [17:20] rick_h: it can wait [17:33] mgz, ping [18:14] * voidspace is currently deploying about 60 machines with juju 2.3.0 [18:17] voidspace: wooo! you'll soon reach deployment master levels [18:17] :-) [18:18] * alexisb changes locations [19:28] Bug #1592188 changed: No 'enable-ha' for manual provider [19:28] Bug #1357760 opened: ensure-availability (aka HA) should work with manual provider [19:28] Bug #1493058 opened: ensure-availability fails on GCE [19:31] Bug #1357760 changed: ensure-availability (aka HA) should work with manual provider [19:31] Bug #1493058 changed: ensure-availability fails on GCE [19:31] Bug #1592188 opened: No 'enable-ha' for manual provider [19:34] Bug #1592188 changed: No 'enable-ha' for manual provider [19:34] Bug #1357760 opened: ensure-availability (aka HA) should work with manual provider [19:34] Bug #1493058 opened: ensure-availability fails on GCE [19:45] gah, this way of testing things breaks GoImpl [20:15] oh my goodness everyone! I cleaned my keyboard yesterday evening and it is soooooo good! [20:16] babbageclunk: I am not sure if that is cool or gross :p [20:16] I am confused [20:16] perrito666: it was very gross. But now it is supercool. [20:16] babbageclunk: laptop kb? [20:16] perrito666: no, proper keyboard [20:17] perrito666: tempted to bring it to the sprint to show you, but obviously that's madness. [20:17] perrito666: just imagine a really gross dirty keyboard, and juxtapose that in your mind with a really hyper clean one. [20:19] babbageclunk: lol, well my kb is not the image of cleanness [20:19] i am too lazy to remove all keys though [20:19] perrito666: one touches them all day with one's gross hands. [20:20] perrito666: I thought I was too lazy too, but it turned out to be a) easier than I expected and 2) way more satisfying. [20:21] perrito666: so now I'm a swivel-eyed kb-cleaning loon [20:23] perrito666: on a more work-related note - is there any easy way to get go to build all the tests under juju/juju? [20:24] perrito666: I keep moving stuff as part of refactoring and then find I haven't updated the tests that refer to it. [20:25] go test -run=XXX [20:25] iirc [20:25] that will build all but not run any [20:27] Ah, ok - I'll try that the next time I move something. Thanks! [20:27] perrito666: ^ [20:27] babbageclunk, perrito666 my keyboard is covered in peanut butter and jelly from this morning [20:27] babbageclunk: I am not 100% sure of the syntax but its near that [20:27] alexisb: why? lost apetite after spreading it and are saving it for later? [20:28] jay's discovery of reading letters has made my keyboard a constant victim [20:28] lol [20:28] alexisb: ha ha [20:28] mine is covered by the continuous reminder that I am going bald [20:30] lol [20:30] I am thiking on buying the vi cheatsheet variant of the keys for my kb [20:31] so that might be a chance for a cleanup [21:41] perrito666, I can meet early for our 1x1 if you would like [21:42] alexisb: sure, going [21:55] natefinch: ping [21:55] mgz: ping [21:55] katco: heya [21:55] mgz: hey was natefinch talking with you about methods on providers? [21:55] yeah [21:56] mgz: hop in ?core for a sec? [21:56] surething [22:07] wallyworld, ping [22:07] yo [22:08] wallyworld, can you jump into our 1x1 HO really fast [22:08] i can [23:21] thank mgz and menn0 for the reviews [23:24] axw: no worries, I'm still around for a bit if you need to bug me [23:26] mgz: nah all pretty clear. the switching thingy is ugly I know. we need to defer auth until the methods are called, because Open is not meant to make any API calls [23:26] mgz: might be able to tidy it up a bit by making additional calls at the callsites though [23:42] axw: I have an lp:1587644-affected environment in Canonistack right now and am about to try the "block traffic to 17070" trick to see if the controller recovers. Anything you want me to gather from the controller first? [23:43] blahdeblah: just the current CPU/mem, but I guess you have that from monitoring already? [23:43] Should do; let me double-check [23:44] axw: that auth thing wasn't a show stopper... just wondering if it could have been tidier [23:46] menn0: yup [23:47] alexisb: pool guy chose a great time to arrive, gonna be late sorry [23:49] axw: Load doesn't seem outrageous: https://libertysys.com.au/imagebin/rdIGeIze.png - smoking gun is really memory & network traffic: https://libertysys.com.au/imagebin/IZFYoL51.png https://libertysys.com.au/imagebin/2rJpeCDe.png