[00:05] niemeyer: did you get a new one ? [00:05] with the new keyboard ? [00:05] No, still the old one.. but the keys fail every once in a while [00:05] niemeyer: this may be of use, http://www.sadtrombone.com/ [00:06] After spanking them hard enough, they seem to get back in shape [00:06] +1, good advice [00:07] thumper: i have a problem [00:07] thumper: https://bugs.launchpad.net/juju-core/+bug/1298115 [00:07] <_mup_> Bug #1298115: utils/ssh: test failures [00:07] uses a map to collect up the options when forming the command [00:07] so the results are [00:07] 1. always correct [00:08] 2. random [00:08] this is, IMO a bug in the test [00:08] I can do [00:08] 1. change to test to look for the specific arguments, rather than assert the string is exactly the same [00:08] 2. change the code to not use a map and enforce ordering [00:09] 2. is more work, and feels wrong as thre is no requirement for the order of arguments to be stable [00:09] 1. will probable make the test a bit messier [00:16] thumper: I am now (re 3 hours ago) [00:21] thumper: you still want me to take a look at bug 1297899 , I will add it to my task list for first thing in the morning. [00:21] <_mup_> Bug #1297899: Libvirt machines deployed with MAAS and Precise is only able to successfully boot once [00:23] wwitzel3: that would be really helpful [00:23] as I don't have vmaas set up [00:23] it could be any one of the moving parts [00:24] davecheney: I'd suggest check with axw when he starts shortly [00:24] davecheney: as he was the author of said test [00:24] sent an email to juju-dev@ -- if anyone can spare some cpu shares it would be most welcome :) [00:24] thumper: yep, np [00:24] whenever convenient [00:24] thumper: right [00:24] * davecheney goes to do something else [00:25] bodie_: yeah, just saw it [00:25] bodie_: we have a team meeting tonight, I'll whack it on the agenda there too :-) [00:27] thanks! hope it's not too verbose, I did my best to chop out the fat [00:27] I'm used to an environment where nothing longer than 5 bullet points gets read [00:27] (where no bullet points have line wrap) [00:28] heh [00:50] bodie_: what is an Action ? [00:56] sinzui: how many cpu's does the landing bot have ? [01:01] davecheney, an Action is a charm-defined um, action, such as snapshot for a MySQL service [01:10] wallyworld: re SupportedArchitectures [01:10] If you can never upload the tools for a different arch, then FindInstanceTools will never be able to find them, right? [01:10] axw: sec, otp [01:10] add-machine ssh:... still relies on FindInstanceTools [01:10] ok [02:02] * thumper is back again [02:09] I'm not sure, I was thinking of it as an API endpoint to run the Command on the client [02:11] I don't understand how hooks are put together yet, I was focused on breaking down the command line syntax just to hopefully add a command we could test out [02:33] wallyworld: raised #1298159, let me know if you've got too much on and I can take it [02:33] <_mup_> Bug #1298159: manual: SupportedArchitecture restricts add-machine to same arch as bootstrap-host === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [03:04] wallyworld: I'm just gonna do it, it's more important than the azure stuff [03:04] (unless you're already doing it) [03:04] axw: ah sorry, i replied and didn't hit enter cause i'm on another call, that woud be great [03:04] sorry about that [03:05] wallyworld: no worries [03:26] axw: thanks for taking a look at the ssh failures [03:26] davecheney: nps === vladk|offline is now known as vladk [07:30] morning all === vladk is now known as vladk|offline [08:00] arosales: hiya, I sent an email about the joyent provider. we're having our weekly meeting in a few hours where we can discuss. let me know if you want input (or you could even tag along on the meeting if you needed to) [08:01] wallyworld: hello [08:01] hi [08:02] I would love to attend the meeting but probably won't be awake enough to attend. [08:02] I'll take a look at your mail. [08:02] ok. meeting starts in 2 hours [08:02] raise any concerns and i'l pass them on [08:05] wallyworld: you work on picking up the joyent provider work is very appreciated [08:05] odd you ran into a quota issue [08:05] np, sorry i haven't had a lot of time this week to start earlier, i've been swamped [08:06] good to hear bootstrap worked though [08:06] arosales: i didn't look closely - it may have been a rate limit exceeded issue [08:06] wallyworld: no worries, I appreciate you picking up this extra task with your already full workload [08:06] wallyworld: you using my account or curtis? [08:06] yours [08:07] ok, I'll see if there are any account settings, but I didn't see any . . . [08:07] np. i've been called to dinner, bbiab [08:08] wallyworld: do you have 2 instances currently running in joyent? [08:15] wallyworld: I'll leave those two running (they do look like juju instances), but if you could destroy so they are not racking up $$$ before you leave that would be great. === vladk|offline is now known as vladk [08:17] vladk, hey [08:17] dimitern: good morning [08:17] vladk, morning [08:18] vladk, how is that card ("Update ec2/openstack/etc provisioners to fail requests with StartInstanceParams.Network set.") going ? [08:18] vladk, would you like to do some pairing on it? [08:19] dimitern: I didn't have much time for it [08:19] Mostly I worked on installing MAAS over VirtualBox [08:19] vladk, did you manage ok? [08:20] I stuck with 'juju bootstrap' for maas, can't understand what ssh key I shoud configure on cluster controller [08:20] vladk, I installed maas on precise with libvirt/kvm [08:20] arosales: i'll destroy [08:20] wallyworld: thanks I didn't want to disrupt any debugging [08:20] I am working on daemon, that converts Wake-On-Lan packets to virtualbox start command [08:20] vladk, so inside the maas web ui there's a preferences page where you can generate an api key and import your ssh keys [08:21] vladk, doesn't vbox support WoL already? [08:21] vladk, that's why I decided to use libvirt - maas has support for controlling kvm vms with virsh directly [08:22] and works quite well [08:22] now i'm installing a new maas on trusty, in order to get vlan support (v1.5 r1961 or later) [08:22] vbox doesn't support WoL, but I write a daemon on Go, that listen vboxnet0 interface and starts VirtualBox images. This daemon is running on VirtualBox host [08:22] vladk, nice! :) [08:23] I know about virsh, but it works only on Linux host, but I am still on MacOS [08:23] vladk, you should get ubuntu ;) [08:25] I have installed ubuntu on macbook, and it surprisingly installed without problems, but I need time to be accustomed to new shortcuts and software. [08:25] yeah, ubuntu works very well on mac books [08:28] About trusty, I failed to install maas on it, I got a lot of error on celeryd, that it could not connect to rabbitmq, so I switched to saucy. [08:29] yeah, but we need maas on trusty which supports vlans [08:29] other versions are too old [08:32] dimitern: we may use saucy for cluster controller and trusty for nodes [08:33] vladk, we need a trusty region controller, the nodes do not matter - the RC is where the web ui and the maas api is (hence vlans support) [08:34] dimitern, vladk: there is a PPA here: https://launchpad.net/~maas-maintainers/+archive/dailybuilds/+packages which has the updated versions of maas (I believe), but I do believe it only has a new-enough MaaS for the vlan work if you use trusty. [08:34] if you don't want quite the bleeding edge there is daily-qa-ok as well [08:34] dimitern: if I select 'Create a new MAAS on this server' during installation, what do I get on that host? region-controller or cluster-controller or both? [08:35] dimitern: actually, https://launchpad.net/~maas-maintainers/+archive/daily-qa-ok [08:35] jam, yeah i talked with bigjools and rvba about that [08:35] bigjools: thanks, I just saw that while poking around [08:35] jam: yeah it would be better for you at the moment [08:36] vladk, you get both [08:36] vladk, to install only one or the other you'll need to install manually maas-region-controller or maas-cluster-controller (maas package includes both) [08:37] jam, well, i'm half-way there with the installation anyway [08:38] vladk, dimitern: you always need both, I would install both of them on the main machine. [08:38] The cluster-controller is about scale-out [08:38] so region is the overarching one, and clusters are groups of machines [08:38] but you'd only have 2 cluster-controllers if you had, say, >1000 machines. [08:42] dimitern, jam: do I need a separate machine for juju? or I can install juju on maas host? [08:42] you need a separate VM for the Juju state server (machine-0) [08:43] MaaS doesn't let you put workloads on the MaaS host. [08:45] jam: Should 'juju state server' be inside or outside of MAAS cluster? [09:04] vladk, when you run juju bootstrap in a maas environment, juju asks maas for a new node (one of the Ready ones), where juju will install the state server [09:05] vladk, so strictly speaking the juju state server is inside the maas cluster (as in on the same network), but not on the cluster machine itself (on one of the enlisted nodes) [09:23] morning all [09:23] voidspace, hiya [09:25] dimitern: o/ [09:36] hello [09:38] wwitzel3: morning [10:00] roll up, roll up, meeting limit approaching fast! [10:00] fwereade, dimitern: ^ [10:01] rogpeppe, cheers [10:01] voidspace: meeting? [10:02] jam, voidspace: meeting time [10:02] waigani: meeting [10:02] thumper: grrr, it keeps trying to log me in with my OTHER google account [10:04] thumper: I looked at bug 1297899 this morning, I can replicate it with 1.17.2, but not with trunk. So I was going to try it with latest stable release to see if the fix can just be recommend the user upgrade. [10:04] <_mup_> Bug #1297899: Libvirt machines deployed with MAAS and Precise is only able to successfully boot once [10:12] can't connect juju-core-team call: This video call is full [10:13] vladk: yeah, we hit 15 today [10:13] have to get in early :) [10:20] vladk: https://docs.google.com/a/canonical.com/document/d/1eeHzbtyt_4dlKQMof-vRfplMWMrClBx32k6BFI-77MI/edit# is the doc we use each week to bring up stuff to talk as the whole team [10:22] I tried to install MAAS from the latest Trusty daily build and stuck again with MAAS web-UI: [10:22] I have a lot of messages in /var/log/maas/celery-region.log: [10:22] ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@10.0.1.198:5672//maas_workers: [Errno 104] Connection reset by peer. [10:22] Does anyone know how to overcome it? [10:23] vladk: you can go to #maas and speak with rvba or allenap there [10:23] they are usually quite helpful [10:23] they lurk here too, but topic wise it makes more sense to ask there. [10:25] vladk: Looks like the rabbitmq server is down/not working. Can you have a look at the logs? [10:29] rvba: rabbitmq is running, but probably not properly initialized, I don't see any vhosts and users on it [10:29] vladk: That's not right, you should see a maas user at least. That's all created when the package gets installed. [10:30] rvba: I see maas user in Linux (although without /home/maas directory), but I don't see maas user in rabbitmqctl [10:33] rvba: the first mention of maas in rabbit@core.log is: "AMQPLAIN login refused: user 'maas_longpoll' - invalid credentials" [10:33] hum… [10:34] Same problem, the 'maas_longpoll' hasn't been created. [10:35] found in /var/log/installer/syslog: in-target: Creating user "maas_longpoll" ... [10:35] in-target: Error: unable to connect to node rabbit@core: nodedown [10:36] Interesting, looks like rabbitmq was down when the MAAS package was being installed. [10:36] alexisb: ^ [10:36] alexisb: err, sorry [10:36] allenap: ^ [10:37] Ah, that would explain it. [10:37] Could it be a race during installation? Rabbit’s not started by the time MAAS tries to create the user? [10:39] rvba, alexisb, allenap: part of /var/log/installation/syslog: http://pastebin.ubuntu.com/7162005/ [10:47] vladk: Is policy-rc.d something you’ve installed? [10:50] allenap: I do the installation of MAAS on VirtualBox. Nothing special. I have a description here: https://docs.google.com/a/canonical.com/document/d/1oK80_jjPAD2BCwhNcFv9v_szkG1CE2AHy05BMjQfIeY/edit?usp=sharing [10:51] allenap: I don't have any problems with Saucy, but with Trusty this is persistent issue [10:57] axw: perhaps we could have a chat after this meeting about HA stuff, if you have a little time? [10:57] vladk: Doing an install on canonistack now… you've installed 1.5+bzr2153+2177+253~ppa0~ubuntu14.04.1 correct? [10:57] rogpeppe: bad time, sorry - need to get dinner on and so on [10:57] rogpeppe: maybe later on [10:57] vladk: Essentially policy-rc.d seems to be blocking the correct operation of maas-region-controller’s postinst. [10:58] axw: sure [10:58] axw: let us know when might be a good time [10:58] I will come back a bit later if I can [10:58] vladk: Unfortunately, the postinst explicitly ignores failure when trying to restart rabbitmq-server. [10:58] rogpeppe: coffee and stuff - but my branch is nearly ready for review [10:59] voidspace: lovely stuff [10:59] rvba: I take the latest trusty-server iso image from ubuntu site, my full installation/syslog: http://pastebin.ubuntu.com/7162080/ [10:59] rogpeppe: one more test (for the auto creating of the document - which as you suspected did fix the issue) [10:59] voidspace: grand [10:59] allenap: ^ [10:59] rogpeppe: so I'll write the test and then wang the branch up for review [10:59] natefinch: I'm about half way through the review of your EnsureMongoServer patch [10:59] voidspace: i'll grab some breakfast, then join the standup hangout [10:59] rogpeppe: cool, see you there in a few minutes [11:00] vladk: okay, you're installing the trusty package from the main archive. [11:00] jam1: good, we're still cleamimg it up a bit, but generally should be reviewable. there's still a few failing tests. [11:05] vladk: this part doesn't look good. We're not 100% sure but we think it's what's causing the failure http://paste.ubuntu.com/7162104/ [11:08] so... do I reboot for a proper shell, or keep working audio... I should really work out what the sound issue under ubuntu is [11:09] rvba, allenap: so the question should be redirected to ubuntu installer team? [11:10] vladk: the server team can probably help you with that indeed. Let me just finish my test first (I'm installing the same package on a canonistack instance). [11:11] bbl [11:16] vladk: it's taking forever… canonistack is so slow these days. [11:18] wallyworld: have you pushed your joyent branch up to launchpad? [11:18] mgz: not yet, give me a minute [11:19] ta [11:19] wwitzel3: do you have instructions for local maas? [11:19] natefinch: ish .. yes [11:20] natefinch: I can walk you through and shore up the docunentation for it while we do it, that will help [11:20] natefinch: I've done it so many times now it doesn't take very long [11:20] vladk: Possibly. The policy-rc.d stuff seems to be preventing maas-region-controller from installing properly, but because it’s explicit ignoring failures when restarting rabbit, and because it’s shell which invites poor error handling, it proceeds regardless, and it’s only discovered later. We could say that maas-region-controller conflicts with [11:20] whatever’s providing policy-rc.d, or we could work with policy-rc.d to enable whatever maas has to do. [11:21] vladk: I’m not familiar with policy-rc.d so I can’t say which is the best option. [11:21] wwitzel3: yeah, cool. can you put them in a google doc? easiest way to share and edit stuff. [11:21] vladk: I’ll talk to roaksoax when he’s available; he knows a lot more about how maas is packaged than I do. [11:22] mgz: lp:~wallyworld/juju-core/joyent-provider-instance wip, tests don't pass, won't compile without changes pushed also to github/joyent/gocommon and github/joyent/gosign [11:22] natefinch: yep, what I most have documented is specific to VirtualBox but I switch recently to libvirt so I could take advantage of the virsh power stuff [11:22] natefinch: which is what I don't have documented [11:23] wwitzel3: is libvert better? I've never used it [11:23] wallyworld: thanks, the gojoyent library split was one of the things I was concerned about with the landing [11:24] mgz: so i'll have to write tests for the libs and do git hub pull requests. even though tests don't pass, the code did bootstrap a real instance [11:24] natefinch: well MAAS has native support for it as a power type, so that makes it better, less hand waving to get a VM to boot at the right time. [11:26] natefinch, vladk, wwitzel3, here's my step by step notes for installing maas on libvirt locally: http://paste.ubuntu.com/7162174/ [11:28] dimitern: step 0 needs some work ;) [11:29] natefinch, yeah :) so you need https://help.ubuntu.com/community/KVM/Installation [11:32] dimitern, natefinch: yeah, those instructions for libvirt are exactly what I did [11:33] wwitzel3, dimitern: nice [11:33] dimitern, natefinch: only step I did you don't mention is I added an internal domain "my.maas" and added the maas controller to my list of nameservers in resolvconf [11:34] dimitern: you trick is to not install MAAS directly from installer [11:34] gotta go help w/ kids, I'll be back in an hour or so [11:34] dimitern: oh and I added an upstream dns server [11:35] dimitern: oh, I can just downloaded a trusty ISO and installed maas, I didn't do the install/apt-get/upgrade steps [11:36] dimitern: so slightly different starting steps, but it all works the same :) [11:38] wallyworld: short-term workaround for your github pull issue [11:39] wallyworld: you can always just update dependencies.tsv to point to github branches in your own namespace [11:39] mgz: that's not a bad idea [11:39] that lets you land the branch, now, without blocking [11:39] mgz: i need to get a bunch of tests passing though and write new onces [11:40] I suggest this, as the alternative is I land the older branch... which depends on lp:gojoyent, which then gets pulled out again when you land the further changes [11:40] which would be somewhat annoying for everyone [11:40] mgz: since i'm now storing the joyent private key in env config [11:40] wwitzel3, yeah, I couldn't find trusty iso offhand [11:40] mgz: if we re going ti github, may as well link to those versions of the libs [11:41] (and generates conflicts, most likely) [11:43] rogpeppe: you don't appear to be in either hangout (neither juju-core nor juju-core-team) [11:44] voidspace: weird, i'm sitting in *a* hangout :-) [11:44] hah [11:44] good old google+ [11:44] what's the name (from the url)? [11:44] I can try again [11:44] voidspace: https://plus.google.com/hangouts/_/calendar/Y2Fub25pY2FsLmNvbV9pYTY3ZTFhN2hqbTFlNnMzcjJsaWQ5bmhzNEBncm91cC5jYWxlbmRhci5nb29nbGUuY29t.mf0d8r5pfb44m16v9b2n5i29ig?authuser=1 [11:51] rogpeppe: the orb, banco de gaia [11:52] rogpeppe: look for "little fluffy clouds" [11:53] rogpeppe: Adventures Beyond the Ultraworld [11:54] rogpeppe: Flaming Lips, Yoshimi Battles the Pink Robots [11:54] are we saying real things? [11:54] rogpeppe: Jonathan Coulton [11:54] rogpeppe: look for the mandelbrot song [11:54] rogpeppe: garfunkel and oates - pregnant women are smug === marcoceppi is now known as marco_traveling [11:56] rogpeppe: The Streets "Original Pirate Material" [12:17] voidspace: TestOpenCreatesStateServersDoc [12:34] https://codereview.appspot.com/81440043 [12:34] simple review for someone [12:34] rogpeppe: ^ [12:38] voidspace: LGTM, but perhaps dimitern or fwereade or jam1 might want to take a look [12:39] rogpeppe: I've pushed the additional comment you suggested [12:39] voidspace: ta [12:40] rogpeppe: don't think I can do a hangout tonight, but I will be around IRC for a while [12:40] voidspace: what is Key in this context (other than the contents of Keyfile) ? [12:40] (if that's useful...) [12:40] axw: that's fine [12:40] Private Key for the Certificate? [12:40] voidspace, why not use environ global key to set the stateserverinfo ? [12:40] Maybe PrivateKey is a clearer spelling? [12:40] jam1: it is the same Key as stateServerKey from configInternal [12:40] jam1: sgtm [12:40] voidspace, once we have multiple environments it will become a problem [12:41] dimitern: there are other docs in the same collection [12:41] rogpeppe, what other docs? [12:41] jam1: do we have more than one key in the context of state serving? [12:41] dimitern: stateserverinfo and apihostports [12:41] voidspace: rogpeppe: Since this *is* exposed in the API, and we don't want to change APIs when they are public, can we just expose KeyFile, or possible call in MongoKey ? [12:41] Rather than a comment about wanting it in the future? [12:42] rogpeppe, so shouldn't the state server info be linked to the environment? [12:42] jam1: sure, that's reasonable [12:42] I guess it isn't in API just yet [12:42] rogpeppe: jam1: do we have that information easily available at the point we want to use it/ [12:42] dimitern: every single other collection has a problem if we're going to store multiple environments [12:42] rogpeppe: jam1: it wasn't accessible on the config structs passed round when bootstrapping happens [12:42] dimitern: using environGlobalKey doesn't help [12:42] morning all [12:42] Given lines like this: + err := st.stateServers.Find(bson.D{{"_id", stateServingInfoKey}}).One(&info) [12:42] bodie_: hiya [12:43] we probably want to be careful what we call a "Key"d [12:43] jam1: the API will come very soon [12:43] since stateServingInfoKey is a index entry? [12:43] aka, nothing like the public/private key strings [12:43] jam1: rogpeppe: I'm happy to change Key to PrivateKey [12:43] yeah, PrivateKey sgtm [12:44] dimitern: we *could* potentially have a separate collection for every singleton document, but that seems like it's unnecessary work [12:44] rogpeppe, just sayin'.. [12:45] dimitern: currently every document in every collection is implicitly linked to the environment [12:46] rogpeppe, except for these which are linked to an environment [12:46] rogpeppe: given that it is just the value "e" [12:46] rogpeppe, annotations, constraints, settings [12:46] dimitern: ^^ [12:46] ./state/environ.go:16:const environGlobalKey = "e" [12:46] jam1, I know, but it can be different in the future [12:46] jam1, e#uuid [12:47] dimitern: well, we'd certainly have to restructure things and make it attributes of a State object, rather than global consts/vars [12:48] jam1, +1 on that [12:48] rogpeppe: voidspace: So I happen to not like our current pattern of creating yet-another-collection whenever we have 1 doc worth of stuff to write, but it is the pattern so far. [12:49] jam1: bikeshedding on name for "KeyFile" - rogpeppe is suggesting "SharedSecret" [12:49] fwereade: re proxy-ssh, what do you mean by "can we instead just refuse it and error out" in the local provider code? [12:49] voidspace: I'd probably still want to put Mongo in there [12:49] to distinguish what we're sharing the secret about [12:49] or at least, DBSharedSecret [12:50] jam1: well, all this info is for running mongo [12:50] jam1: i guess we could put Mongo in front of every field [12:50] rogpeppe: technically APIPort isn't [12:50] jam1: good point. [12:50] DBSharedSecret sounds good [12:50] mongo should be an implementation detail [12:50] voidspace: I think rog has a point that most of it is about the DB already [12:51] ok, so back to SharedSecret [12:51] Cert happens to be used both ways, right? [12:51] jam1: i think just SharedSecret should be ok [12:51] it is the Mongo TLS Cert and the API TLS Cert [12:51] jam1: it doesn't actually matter that much how it's used [12:51] jam1: yes [12:51] jam1: the Mongo KeyFile is just a shared password, really [12:52] natefinch: yeah, hence my SharedSecret suggestion [12:52] naming things is the *perfect* topic for bike shedding :-) [12:52] voidspace: https://codereview.appspot.com/81440043/ [12:52] reviewd [12:52] rogpeppe: yeah that seems fine if we want to avoid referencing mongo [12:52] voidspace: naming is one of the 3 unsolved problems, right? [12:52] cool, I'm just running tests before pushing the name change [12:52] jam1: hah right [12:52] the 2 hard problems in computer science [12:52] cache invalidation? [12:52] cache invalidation, off by one errors and naming things [12:53] 4 things\: naming, cache invalidation and off by one errors [12:53] There are 10 types of people in the world [12:53] cmars, are bug 1290824 and bug 1290828 fix committed? [12:53] Those who understand binary, those who don't and those who were expecting a joke about trinary [12:53] <_mup_> Bug #1290824: juju should ask the charm store to decide the default series for a charm [12:53] <_mup_> Bug #1290828: charm-store should be able to map "foo" into "cs:precise/foo" [12:53] I love nerd jokes [12:54] btw, appreciate seeing good responses to my email. thanks all [12:54] My favourite nerd joke, not computer related [12:54] Heisenberg is driving along the freeway and happens to be speeding [12:54] heheh [12:54] A traffic cop spots him and flags him down [12:54] The cop walks up to the car and gets Heisenberg to wind down the windo [12:54] *window [12:54] "Do you know how fast you were going?" the cop asks [12:55] "No" replies Heisenberg, "but I know exactly where I am" [12:56] I like the one about one Newton per square meter [12:56] that's funny [12:56] and my delivery is terrible, but I suspected the audience would already know the content... [12:56] possibly not, it was new to me a few days ago [12:56] why use a copy when a reference will do? [12:57] :) [12:57] I like the "infitinte mathmeticians walk into a bar. The first one asks for half a pint, the second for a quarter, the third for an eighth and so on" [12:57] The barman pours a pint and tells them to sort it out amongst themselves... [12:58] And on that note, coffee... [12:59] lol [13:02] a pint of coffee [13:03] davecheney, I don't know about the landing bot. CI's unit tests are run with 2cpu machines except for arm64 which has 4 [13:04] axw, that's in Prepare, right? I'd just like to check that nobody sets a bad value without being warned -- I'd be fine with overwriting it if we output that we;re doing so [13:05] fwereade: ok [13:05] fwereade: I would normally, I just didn't in this case because there's no reason for a user setting it in the first place [13:05] but I can do that [13:06] fwereade: is there a better way to do this? feels slightly awkward putting it in the config [13:06] fwereade: especially if it means going to the API for config ... [13:06] axw, I felt awkward about that too [13:06] just didn't want to do the dreaded env.Type() == "local" [13:06] axw, but it *is* I think config, it can reasonably vary for different environments even against the same provider at times [13:07] axw, +100 to avoiding that, yeah [13:07] what is the difference between _test.go and _whitebox_test.go ? [13:08] perrito666, the _whitebox_ ones are in-package [13:08] perrito666, ie `package foo` not `package foo_test` [13:09] perrito666, they don't get compiled into proper builds because their names end in _test.go [13:09] perrito666, but they get all sorts ofinadvisable access to packageinternals [13:09] perrito666: _whitebox isn't a Go thing, it's just a visual indicator for us. _test.go is the magic that makes them only compiled during go test [13:10] natefinch, perrito666: I suspect there may be a couple named _internal_test.go [13:10] fwereade, perrito666 : I've only seen _whitebox in a few places... it's something I'd rather avoid, since it seems to just add visual noise. I don't think it really matters that much if tests are internal or not [13:11] fwereade: I much prefer internal tests anyway, because you can make the tests a lot more focused, so when something breaks, it's more obvious where the breaks are, rather than having to trace through reams and reams of code [13:12] natefinch, well, it's inevitably testing the implementation not the interface, to some degree at least, and is therefore a bit nasty and makes things harder to change [13:12] natefinch, so I'd prefer tests in general to be in a different package to the code [13:13] natefinch, but if they have to be, I also rather agree it's not *that* big a deal if a few internal tests really help [13:14] natefinch, I'm not sure the _whitebox_ bit is that justifiable but it's quite nice to have them flagged a bit more obviously [13:14] the eye tends to slide right over foo vs foo_test [13:15] whitebox tests just lead you down a path of pain and heartache, that said, in a pinch, it sure is nice having access to all those internals ;) [13:15] fwereade: I'm the opposite. testing the implementation is the only thing you're ever testing. and tests with smaller scope are easier to fix when implementations change. rather than monstrous system tests that blow up with weird errors. [13:16] natefinch, the answer there is smaller packages imo [13:16] natefinch: well you don't need system level tests to properly exercise a specific unit with a blackbox test, if you do, then the code is too tighly coupled [13:17] natefinch, and you *are* indeed always testing the implementation, butneglecting to test it via its interface discards one of the real benefits of testing -- that your code, through having to satisfy two clients, ends up better factored [13:17] packages inevitably depend on one another in annoying ways. Go is great at unit tests because of interfaces... ub- [13:18] natefinch, it's definitely hard to take a pre-existing monster package and break it into two... often you actually need to break it into 6 or 7 [13:18] natefinch, in order to actually untangle the dependencies [13:20] natefinch, fwereade, with respect to refactoring, I find whitebox tests are almost counter productive to those efforts [13:20] fwereade: but if your monster package breaks things down into small sub-functions that work over interfaces, it's very easy to write tests for the sub-functions to make sure they're doing the right thing. You also want an overall test.... but when something changes, you'll get two failures - the huge blackbox test, and a tiny whitebox test that says "expected empty id, got nil id" [13:20] natefinch, but that way you have a whole bunch of little implementations, which by necessity are exported and thus have the potential for some semblance of useful encapsulation [13:20] wwitzel3, strongly agree [13:21] dimitern: is there anything you need review for atm? I also have some of the vlan setup info if you're interested [13:22] hmmm [13:22] testazureprovider failed [13:23] http://paste.ubuntu.com/7162678/ [13:23] natefinch, and if you're doing nice interfaces in-package, you may as well expose them [13:23] is this a known issue? [13:23] natefinch: also, hangout? :) [13:23] wwitzel3: sure [13:24] bodie_, https://bugs.launchpad.net/juju-core/+bug/1223901 [13:24] <_mup_> Bug #1223901: provider/azure: tests are racy [13:24] ah [13:26] looks like maybe more gwacl stuff [13:26] mgz, I've just managed to create a maas node with a vlan and another network [13:27] mgz, now I know how we need to set them up I think [13:27] bodie_, most likely, that stuff was developed under some degree of time pressure [13:27] dimitern: ace. putting the details from maas in /etc/network/interfaces, or via the commandline calls? [13:28] mgz, tried both [13:28] dimitern: the one fun part will be how we integrate this with containers [13:28] mgz, so we need the "vlan" package for the vconfig command and also to modprobe 8021q before doing it [13:28] mgz, yeah.. well I'll try some containers + bridging [13:30] bodie_ fwereade : that's nothing new, it's an intermittent failure [13:30] the tricky bit being, currently we just let the container come up on the maas dhcp and ask for an address itself [13:30] ther'es a bug for it somewhere [13:30] axw: yeah, fwereade linked the bug [13:30] oops [13:30] so he did [13:31] this will be fixed when I land my changes [13:31] axw: you are a secret star [13:31] mgz: not really, I just made the code that pretends to be parallel serial :) [13:32] there's this concurrency control in there that doesn't work in practice because the azure API doesn't like it [13:32] FAIL: replicaset_test.go:150: MongoSuite.TestAddRemoveSet [13:32] known flakey test? [13:32] axw, yay [13:32] I'll look to see if there's a bug for it already [13:33] voidspace: is it failing to find a server? [13:33] if so, yeah [13:33] axw: yeah "no reachable servers" === vladk is now known as vladk|offline [13:41] fwereade: I can't check if the user has explicitly set proxy-ssh=true without changing the default [13:41] currently defaults to true for all providers === mgz is now known as _mgz [14:12] hey, could anyone try to bootstrap amazon with trunk? [14:15] perrito666: trying now... what problem are you seeing? [14:16] perrito666: can you pastebin your bootstrap log with --debug passed? [14:20] mgz: re-running [14:21] natefinch: I was getting an error: error: flag provided but not defined: --instance-id [14:21] rogpeppe: I just used string(existingByteArray) and []bytes(existingString) [14:22] voidspace: sgtm [14:22] rogpeppe: I'm concerned that this will use runes rather than encoded bytes [14:22] voidspace: nope [14:22] rogpeppe: but assuming ascii only they're the same anyway, right? [14:22] voidspace: it doesn't do any rune-related convesions === vladk|offline is now known as vladk [14:22] voidspace: but they're ascii only anyway, yeah [14:22] perrito666: that was happening to rogpeppe the other day. Make sure you clean out your $GOPATH/pkg directory, and make sure trunk is up to daye [14:22] []byte(string) will return an array of runes (code points) won't it? [14:22] voidspace: no [14:22] voidspace: []rune(string) will [14:23] ok, so utf-8 encoded bytes then? [14:23] voidspace: []byte(string(x)) is a noop if x is []byte [14:23] perrito666: also run godep dependencies.tsv from launchpad.net/juju-core and make sure it doesn't say anything is out of date [14:23] voidspace: yeah, by convention [14:23] perrito666: it just bootstrapped fine for me [14:23] rogpeppe: right. If you get bytes out of a string there has to be *some* encoding used [14:24] perrito666: i've seen that recently. i think it probably means you're not using the --upload-tools argument to juju bootstrap [14:24] perrito666: sorry, that should be godeps not godep [14:24] natefinch: thank you, something must be dirty on my env [14:24] voidspace: "\xff\xfe\xfd\x00" is a perfectly valid string (even though it's not valid utf8) [14:24] rogpeppe: thank you too :) [14:24] who from core can be at the cross team and represent our status on HA? [14:25] mramm: i can do that [14:25] rogpeppe: is it a valid Unicode string [14:25] voidspace: nope [14:25] rogpeppe: the word "valid" means something [14:25] likewise who from core can be at the cross team meeting and represent our status on VLAN support? [14:25] rogpeppe: so the type string in Go must mean something then [14:25] voidspace: well, a go string is just a bundle of bytes [14:25] rogpeppe: is a Go string just a sequence of code points? [14:25] right, but what do the bytes mean (i.e. what encoding) [14:25] voidspace: not code points, bytes [14:25] dimitern: can you be there to talk about vlan? [14:25] rogpeppe: ok, but what do the bytes represent [14:26] perrito666: oh yeah, don't forget --upload-tools when you bootstrap using development code [14:26] rogpeppe: that's what an encoding is [14:26] voidspace: whatever you want them to :-) [14:26] rogpeppe: a mapping of bytes to meaning [14:26] voidspace: UTF8 [14:26] natefinch: thank you [14:26] voidspace: you can impose an encoding if you want to [14:26] voidspace: (and by convention, that encoding is utf8) [14:26] ok [14:27] voidspace: and some primitives in the language assume that [14:27] so the string type is really just an immutable bytes type [14:27] voidspace: yup [14:27] yuck [14:27] dimitern, xteam meeting? [14:27] :) [14:27] voidspace: it's actually quite clean [14:27] mramm, that is ^^ [14:27] that's the Python 2 string type [14:27] mramm: when is it? [14:27] mramm, i can do it [14:27] in 3 min [14:27] mramm: link? [14:27] just added you to the invite [14:27] voidspace: you can get codepoints using the unicode package [14:27] and as soon as you do anything non-trivial with text it puts the bugs in obscure places [14:27] on the phones [14:28] natefinch: yep, that's pretty much the Python 2 way as well [14:28] too many people for a hangout now days [14:28] Unicode as bolted on optional extra [14:28] *sigh* :-) [14:28] voidspace: if you go the other way, then your core language is as enormous as unicode itself [14:28] voidspace: the only time it's a problem is if you expect the length of a string to be the number of characters [14:28] voidspace: which is a case of "don't do that" [14:28] or you need to care about the encoding of the bytes [14:28] and the bytes came into the app at a different point [14:29] or you need to combine strings from different sources [14:29] voidspace: also, don't do that. Just use UTF8 everywhere [14:29] voidspace: conventions work pretty well. you convert at the boundaries of the system [14:29] ^^ [14:29] exactly [14:29] rogpeppe: I've worked with Unicode a reasonable amount [14:29] even written articles on it :-) [14:30] remembering to convert at the boundaries works, right up until it doesn't [14:30] same with "assume everything is UTF8" [14:30] voidspace: there are some pretty good packages for working with unicode in go [14:30] mramm, sorry, I don't know how to join [14:30] sure, I believe you [14:30] mramm, there's no g+ link [14:30] dimitern: right it is a conference call [14:30] mramm: i haven't seen an invite yet [14:30] rogpeppe: I've worked with languages that are Unicode by default for text (and *force* you to do the conversion at the boundaries) and those that don't [14:31] rogpeppe: and you have to think a bit more with the former, but it avoids a lot of pain [14:31] mramm, I've never heard of these - how to join? [14:31] right, lunch [14:31] mramm: which normalisation form do you decide on? [14:31] dimitern: you can ring an actual phone number [14:31] ooh, retro [14:31] there are details on the wiki [14:31] lol [14:31] just pasted them over to dimitern [14:35] rogpeppe: NFC or NFD of course [14:35] unicode isn't perfect, but it's better than the alternative [14:35] NFC is such a great answer [14:36] you can't tell if they don't know, or have made the best choice [14:38] apparently the correct answer is "neither or both" [14:38] http://scripts.sil.org/cms/scripts/page.php?item_id=NFC_vs_NFD [14:40] "The problem is that the question is not reasonable, and points to a misunderstanding of Unicode." [14:41] voidspace: http://godoc.org/code.google.com/p/go.text/unicode/norm [14:43] rogpeppe: mojibake [14:44] voidspace: usually better than random crashes [14:53] sinzui: are you aware of anyone reportinga bug that lxc containers on maas don't work with trusty? [14:54] mgz, is this what you are thinking about https://bugs.launchpad.net/juju-core/+bug/1271923 [14:54] <_mup_> Bug #1271923: using lxc containers with maas provider always default to series of host service unit [14:55] sinzui: aha! no, but that *would* mask the bug [14:55] ...maybe [14:56] mgz, that is the only lxc/maas bug [14:56] I'll poke a little further, thanks! [14:59] I didn't get a chance to ask before I had to drop off the cross-team call, but on the point of retrying provisioning in the face of transient errors [14:59] (https://bugs.launchpad.net/juju-core/+bug/1227450) [14:59] <_mup_> Bug #1227450: juju does not retry provisioning against transient provider errors [15:00] could you not query the provider for the api limit and only hit it below that rate? [15:00] openstack seems to have this option: http://docs.openstack.org/api/openstack-compute/2/content/Rate_Limits-d1e862.html [15:00] ev: the goose code does... sort of do that already [15:01] ooh, magic rune [15:01] grepping through tip and reading up [15:01] thanks mgz [15:01] also, any chance on getting movement on cleaning up security groups and floating ips in a coming release? [15:01] the issue is we only retry 3 times, and without much backoff, [15:01] we have to tidy up after each deployment as we quickly run out of them on HP Cloud [15:02] ah right [15:02] and juju-core, when startinga bunch of things in parallel isn't polite about it, [15:02] yeah [15:02] so, it's likely that goose gets hammered with more things than even its retry code can help with [15:02] what's landed in trunk should unblock you guys on borked environments, because you can just run the deployer script, [15:03] then do `juju retry-provisioning` if things have gone wrong, rather than tearing the lot down and going from the start [15:03] and we'll gradually improve on not getting into that state in the first place [15:05] is there any way of knowing that it failed because of API limits specifically, short of grepping the output of juju status for "API limit" ? [15:05] just trying to think of what we put in our juju-deployer wrapper for this [15:05] nothing like a load of 5.9.... #thanksgoogletalkplugin [15:06] yes, and making juju-core understand the 503 would also mean the provisioner could automatically try again a bit later [15:06] wwitzel3: i'm looking at your problem now, BTW [15:07] ev: as a workaround for you guys, it would be reasonable to just look for status: error in the yaml and call the retry command [15:08] pinged Actions thread back [15:08] thanks for all the talky talky :) [15:15] so that call was quite specific to juju development. Do we have any kind of call set up for people developing solutions on top of juju? Just a place for sharing best practices, that sort of thing. [15:19] ev: no, but that would probably make sense. the current call is far too large really, for just a people-giving-feedback-to-juju-core, and covers a bunch more sutff [15:19] mramm may have opinions. it's still good for us to hear about what you guys are struggling with on juju day to day though :) [15:20] opinions on how to structure a separate call? [15:20] yeah. [15:20] I think it'd make sense to have a juju-core representative on the call [15:20] so you guys can gauge whats plaguing your consumers [15:21] mgz, this is what we need to enable a vlan in a maas node: http://paste.ubuntu.com/7163250/ [15:22] but I was thinking people from ~canonical-ci-engineering, ~canonical-ci, ~canonical-losas, ~oem-solutions-releng, etc [15:22] dimitern: so, that's doing a bunch of things twice. the do-it-now commands could be omitted, as we're probably doing ifdown/ifup anyway [15:23] mgz, we want them to appear after reboot as well, right? [15:23] mgz, and we want them immediately as well [15:23] mramm: what do you think? === Ursinha is now known as Ursinha-afk [15:24] right, so we just do the adding to /etc/network/interfaces (.d ideally), and not the vconfig, for instance [15:24] and just take that interface down and put it back up again to pick up the new config [15:24] as we currently do for the bridge config [15:25] ...one fun part: we do bridge config in cloud-init - which is earlier than we can make an api call to maas to get the vlan details [15:26] so, we either do the network setup in two steps, or fiddle with when the existing bridge setup happens [15:26] mgz, vconfig is needed to create the vlan [15:27] dimitern: right at that moment, yeah, but setting it up in /etc/network is equivalent [15:27] mgz, well, I suppose we can generate the right commands in cloud-init, incl. the data we get from maas (the provisioner can prepare that) [15:28] right, that's one option, if the provisioner can get the right networks out of maas early enough to pass the details it [15:28] *in [15:28] I'm not sure we can [15:29] because we ask maas to do the provisioning for us, which is picking the machine *and* giving it the boot details [15:29] mgz, why not? we can ask "give me the networks for this machine" after we do acquireNode [15:29] we don't know what machine we got before we need to give it the cloud-config stuff [15:29] iirc [15:29] i'll have to look into that some more [15:30] dimitern: actually, maybe it works, we might have an interval where we have the machine identified, before we finish off StartInstance [15:32] mgz, it my experiments with maas-cli you do know what instance you'll be starting after you acquire it with a set of networks [15:32] dimitern: maybe that's the best option then, doing bridge and vlan seperately scares me a bit [15:33] mgz, lxc+bridging+vlans, now that's scary :) === Ursinha-afk is now known as Ursinha [15:46] ev: mgz: I am supportive of a second call, or a restructuring of the cross-team call [15:47] I think we should setup a one-off-call to go over the current ideas [15:47] and then from there we can figure out what makes sense as a standing thing [15:48] jcastro: do you think you can help get that setup? [15:53] yeah [15:54] ev, we have a charmers call weekly where we talk about juju consumption rather than core stuff, you're more than welcome, we have a bunch of new people so we're always swapping tips [16:03] ev, I can also have our dudes spin up your team if you'd like [16:03] give you a condensed best practice dump [16:16] natefinch: just merged some changes from rogpeppe and pushed them up [16:31] wwitzel3: sweet === vladk is now known as vladk|offline [16:49] rogpeppe: state/api/machiner.go ? (place for the StateServingInfo api) [16:49] ah, that's the client side [16:49] voidspace: state/api/agent i think [16:49] rogpeppe: cool, thanks [16:51] perrito666, We don't use --upload-tools in testing, there is alos talk of removing the feature. [16:52] sinzui: well to be honest I did not have to use it a couple of revisions back [16:52] perrito666, If --upload-tools is required, then should this be documented with backup and restore...you cannot backup and restore unless you use upload-tool (a developer hack) [16:53] sinzui: regardles, using an older rev the thing runs well even without upload-tools [16:53] perrito666, then maybe that is part of the bug. We expect enterprise users to use streams, and if not a a public cloud, their own stream defined in the tools-metadata-url [16:54] perrito666, okay, I think we do have a regression then, Streams are not being honoured it seems [16:55] alexisb: looks like I just missed you and natefinch, sorry I didn't make it in time [16:56] no worries [16:57] natefinch can follow up with you [16:57] jam1: you only missed us by seconds :) I'm back in the hangout if you want to talk that way. [16:57] perrito666, I suspect that if you called juju sync-tools ENV, then ran the test, it might pass also [17:01] sinzui: queued to the test run marathon I am having [17:03] it is very unfortunate that I got to fix the two bugs that where impeding my test to run and none of those was the one breaking your side :( [17:04] jcastro: yes please. Does it have people from the teams I mentioned? [17:04] does it have juju-core people for "this is burning us badly"? [17:05] it could, can you jet me a mail? I can set this up but I am currently putting out 2 fires === vladk|offline is now known as vladk [17:17] sinzui: -r2488 works out of the box here (with the tools-metadata-url: you suggested) [17:28] rogpeppe: AuthEnvironManager did you say? === vladk is now known as vladk|offline [17:29] voidspace: yeah [17:29] rogpeppe: cool [17:29] thanks [17:36] perrito666, I am releasing r2498 as 1.17.7. Since CI is setup largely as end users might use it. I cannot say the feature works. [17:37] sinzui: off course, I was not trying to imply that, I was just thinking out loud [17:39] perrito666, Maybe I can get abentley to try the script. He knows the test infrastructure and he might see a problem with the test [17:40] sinzui: please do, I am pretty sure now that there is something I need to set up in my env to replicate your failure, yet I cant get exactly what it is [17:40] perrito666, you didn't need to call sync-tools? [17:40] sinzui: nope [17:41] I just bzr revert -r2488; go install ./...; juju destroy-environment amazon; ./backup_restore_juju.py $GOPATH/bin/ amazon [17:42] sinzui: previously I had deleted all binaries and pkgs [17:42] and that (ok, there was a cd to your test repo in the middle of that) but you get the point [17:43] perrito666, and $GOPATH/bin is in the from of the $PATH? [17:43] sinzui: yes, I exported PATH explicitly before running [17:44] That all sounds correct. [17:44] * sinzui ponders tainted control-buckets [17:47] I have what looks pretty much as a fresh starting user, that is why I am a bit puzzled on why is it not failing just like jenkins === marco_traveling is now known as marcoceppi [18:01] wwitzel3: sorry, long call with John & Alexis, and now I need to drop my car off at the garage. Back in not too long I hope. [18:10] wwitzel3: i bet you're getting test failures in testOpenAPIState [18:14] voidspace: am enjoying the lips [18:22] rogpeppe: yeah, they're good [18:25] yay, cmd/jujud test pass [18:25] tests [18:25] rogpeppe: you there? [18:26] voidspace: yup [18:26] rogpeppe: can you hear me? [18:26] voidspace: i'm in the hangout and there are two instances of you, but they're unresponsive [18:26] voidspace: nope [18:27] ah, maybe the hangout has crashed [18:27] voidspace: i was chucked out briefly a while ago. might be something to do with that [18:27] I'll leave and reenter [18:33] g'bye all [18:33] EOD [18:34] g'night [18:52] wwitzel3, rogpeppe back now === vladk|offline is now known as vladk [18:58] ok EOD for me, shout me via mail if you need me [18:58] natefinch: ok [19:03] natefinch, wwitzel3: i'm ducking out of the call for a little bit. ping me if you need me. [19:04] rogpeppe: ok, no prob [19:04] rogpeppe: oh right, sorry :) [19:25] sinzui: hey, CI actually "worked"I just saw a merge proposal fixing that ssh issue, you always see the same public address error bc the error is very poorly handled [19:26] fwereade: you're not around atm by any chance? [19:28] perrito666, damn it. you are right. I has worked once: http://ec2-54-84-137-170.compute-1.amazonaws.com:8080/job/functional-backup-restore-devel/ [19:28] sinzui: https://codereview.appspot.com/81180043/patch/1/10002 [19:29] sinzui: the link you just send me is not the one you wanted to sen me? [19:30] perrito666, From the history of jobs r2497 passed on its 3rd try r2798 never passed [19:30] ah yes [19:30] r2499 is testing now [19:30] sinzui: the thing is [19:31] there is a portion of the code that does a lot of things yet when it fails it is always hidden by the same error [19:31] which is the one we are seeing since the beginning of thi bug [19:32] I suspected as much. Obviously we have a public address, but juju uses that general error to say it could not connect [19:32] I wonder if the test is more reliable with hp? [19:33] sinzui: the current error is with ssh, there was an ad hoc implementation of ssh and I switched to use the default one, but apparently the default one was broken short after [19:34] 2497 is the rev that fixes it too [19:36] perrito666, I changed the test to use Hp next time. If the current run fails, the next 3 tries will be in another cloud [19:37] damn, and try 2 did fail === Ursinha is now known as Ursinha-afk [19:44] a review of this branch would be appreciated. https://codereview.appspot.com/81570043/ [19:45] sinzui: makes no sense, 2497, which introduced changes worked, then it doesn't but the code is not even near that [19:47] bbl === Ursinha-afk is now known as Ursinha [19:55] does anyone else see a test failure in trunk, in agent/mongo [19:55] ? [19:56] natefinch, do you have a few minutes to review an inc to trunk's version? https://codereview.appspot.com/81580043 [19:56] rogpeppe: nope, not for me here [19:56] wwitzel3: looks like a test isolation issue [19:57] sinzui: I hope I'm never too busy to review a 2 character change :) LGTM [19:57] rogpeppe: it passes for me running the whole suite as well as just in agent/mongo [19:58] rogpeppe: is there a specific test you want me to try? [19:58] wwitzel3: if it passes for you, that's fine. i'm just proposing a fix [20:02] wwitzel3, natefinch: i'd appreciate a review of this trivial fix: https://codereview.appspot.com/81290045 [20:03] rogpeppe: looking [20:04] rogpeppe: we already do this in our branch actually [20:05] wwitzel3: right, but this breaks trunk, so should go in soon [20:06] rogpeppe: http://bazaar.launchpad.net/~wwitzel3/juju-core/030-MA-HA/view/head:/agent/mongo/mongo_test.go#L34 [20:06] rogpeppe: ok, sure [20:06] wwitzel3: i prefer your version [20:06] wwitzel3: i'll go with that [20:07] rogpeppe: k [20:10] wwitzel3: PTAL https://codereview.appspot.com/81290045 [20:12] rogpeppe: LGTM [20:13] rogpeppe, I sort of am, but am not at my highest functioning [20:14] fwereade: i've refactored the agent config in the least invasive way i can think of that still gives us some reasonable behaviour in jujud [20:14] fwereade: i'd very much appreciate your opinion when you think you can muster a look [20:14] fwereade: https://codereview.appspot.com/81570043/ [20:14] fwereade: it's on the critical path for HA [20:21] natefinch, wwitzel3: i'd appreciate a review of this branch at some point - it's what i've done today: https://codereview.appspot.com/81570043 [20:23] rogpeppe: yeah, I've added it to my list, I will give it a thorough look [20:24] wwitzel3: thanks a lot [20:25] rogpeppe: me too [20:35] EOD for me === vladk is now known as vladk|offline [20:43] me too [20:43] long past it [20:43] g'night all [20:44] night rog === vladk|offline is now known as vladk === vladk is now known as vladk|offline [21:21] rogpeppe, that's very nice, nearly an LGTM straight off [21:21] this is not to say others should not also look at it [21:43] is there a way to ping the env to see if a charm url has been loaded programatically [21:43] basically the deployer needs to check to see if a local charm has been uploaded already [21:47] hatch: hmm [21:47] I'm at a total loss after banging on it for a couple hours so open to anything at this point :) [21:47] charms only get up loaded if they are deployed [21:48] those two actions are not seperate [21:48] ahh but they are now with the ability to upload local charms via the GUI [21:48] maybe upgrade-charm has somethign useful [21:48] hatch: ok, i'm probably out of date [21:48] and I bet you can keep uploading the sme charm rev over and over [21:48] it auto increments the revno [21:49] but that isn't what you want [21:49] the depliyed has to create charms in the storage at exact renos [21:49] well not really - the user is dragging and dropping charms into the env in the gui, then deploying a bundle [21:49] so the deployer needs to deploy those 'local' charms [21:50] hatch: i dunno if I can help [21:50] maybe I just skip the check and deploy [21:50] i'm just guessing at this point [21:50] it's entirely possible what I'm looking for doesn't exist [21:52] thanks for the help davecheney I'll skip the check for now and just attempt deployment [21:57] hatch: sounds like a good first step [21:59] sinzui: congrats on 1.17.7 [22:00] will that be the point at which 1.18.0 is branched ? [22:00] i saw there was a 1.17.8 milestone [22:00] Thanks. Maybe. If interesting and stable fixes land over the next few days, I will use it [22:01] There is a store compatibility and maas lxc issue that were raise a few hours ago [22:01] davecheney, I think 1.18.0 will trunk + a few more revs [22:01] sinzui: ok [22:03] hatch, there's a CharmInfo method on Client? [22:05] hatch, it looks a bit odd, though, it returns something from api not params -- not a big deal from your perspective though, right? === hatch__ is now known as hatch [22:15] sinzui: hey, still here? [22:16] perrito666, I am [22:17] does jenkins just merge rev after rev and run the same test? (I am trying to find out what was broken when) [22:17] no [22:19] perrito666, it tests the entire release. tarball, package, publication of tools, installation, then tests they work in each cloud then tests arch/series/function nuances [22:19] https://docs.google.com/a/canonical.com/document/d/1ZQIJL2YNAYpDHDO4g3kwcq8tHTR8ax6L15xhAXELngc/edit [22:19] sinzui: thanks, ill read [22:48] hey guys, how do I make juju not required --upload-tools ? [22:48] perrito666: if you are building juju from source, this is required [22:48] as the versino of your local build will not match that of any published tools [22:57] perrito666, 1. make your own stream data, 2, push it to a public site [22:57] * sinzui looks for fragment [22:58] perrito666, look at the generate_streams() function in http://bazaar.launchpad.net/~juju-qa/juju-core/ci-cd-scripts2/view/head:/assemble-public-tools.bash [22:59] The summary is create the dir structure, copy your test tools into releases, then run metadata [23:00] perrito666, oh, but you need to make your tool by taring the jujud with the right name. [23:00] perrito666, That step is in the archive_tools function...in the most complicated way It could be written [23:01] perrito666, just cd the the bin dir and tar it with the series and arch of your test machine [23:01] sinzui: thank you [23:01] :) I am so taking a beer from whoever broke that fix :p [23:02] perrito666, You can put the whole tree from tools/ in a bucket in a cloud, or on a website. I push a tree here a few weeks ago for an example: http://people.canonical.com/~curtis/juju-dist/tools/ [23:03] perrito666, BTW, these steps are not common knowledge. I need to find time to make a script for a developer or devops to publish a few select tools for testing or private cloud use [23:05] sinzui: well if all that will give me a copy of what i being tested, then here I go [23:22] hatch there is no useful charm api, and local charms can't be checked to see if they are already uploaded [23:22] since the env arbitrarily rewrites the revision [23:24] slow ppc is slow [23:24] trying to get a cleaner test run so I know where to focus today [23:24] hatch: oh poop [23:25] hazmat: even [23:25] lol [23:25] :) [23:25] :-) [23:25] hazmat: hatch that does sound like something that should be addressed [23:25] hatch, sent email re that issue [23:25] hazmat: good man [23:25] davecheney, yes.. list charms, delete charm [23:25] where delete only works if unused [23:25] davecheney is this re the question I asked before? [23:25] hazmat: i was going to ask, but i'll ask a differnt way [23:25] hazmat: charms are put into 'storage' [23:25] right [23:25] davecheney, please do.. i sent email privately [23:25] sorry my client dc'd for whatever reason [23:25] like tools [23:26] may I be cc'd on said email? [23:26] hatch, check your inbox [23:26] hazmat: doesn't storage provide apis to list charms [23:26] davecheney, don't really need to clean storage :-).. its polite.. but simply wipe the ref in db [23:26] albeit not very conventienlyt [23:26] davecheney, doesn't matter [23:26] davecheney, its in state [23:26] * hatch hits refresh a lot [23:26] davecheney, we have storage link in state.. [23:26] nothing [23:26] :) [23:26] hazmat: ah yes, we store that metadata in state [23:27] davecheney, yeah.. else we'd never find a charm [23:27] hazmat: in that case, there needs to be something added to the API server [23:27] * hazmat nods [23:27] hatch: whelp, there is you answer [23:27] davecheney, yes.. list charms, delete charm [23:27] davecheney lol *sadface* [23:28] ohh hazmat u sent to personal email :) [23:28] doh.. [23:28] sorry missed that [23:28] unintended.. was first completion i saw [23:28] no problem, thanks for commenting - I have hacked on the deployer to 'skip' all checks but it appears that there is no way via the CLI to deploy a charm that's already uploaded as well [23:29] I was going to confirm this tomorrow but this may be a blocker regardless [23:29] hatch, no.. juju cli does not support deploying local charms that don't exist [23:29] yeah darn, the api does because we deploy via path in the gui through the rpc call [23:29] hatch, and those checks are important to deployer, it wants to verify config/relations before arbitrarily modifying an env [23:29] right [23:30] this was supposed to be a quick fix - turns out it's quite an architectural change to how the deployer and possibly the cli's deploy command operates [23:30] hatch, correct.. deployer still has pyjuju support [23:31] not in my fork...tehe [23:31] :P [23:31] but yeah ok thanks for clearing this up [23:31] and supports old version of juju-core [23:31] hatch, ^ which don't support charms via api [23:31] hatch, there is no stable version of juju with local charms via api afaik [23:31] any suggestions for a go-capable cscope replacement? :) I'd like something that can find call sites, not just definitions; ctags is only providing definitions... [23:32] yeah - I hacked all of that stuff apart to make it get to the cli in the guiserver but then I think it totally falls apart [23:33] hatch, once 1.18 / 1.20 whatever its called gets into trusty.. i'll drop pyjuju support in deployer and move to api only usage there as well [23:33] hazmat sounds good - so should I file this bug on the deployer project for that time? [23:45] SHIT [23:45] -juju.log WARNING [23:45] isn't know to all packages [23:45] damnit