/srv/irclogs.ubuntu.com/2017/03/02/#juju-dev.txt

babbageclunkwallyworld: The subnets I add when the provider doesn't support spaces should have a space of "", right?00:25
wallyworldyup00:26
wallyworld"" is considered the default space00:26
babbageclunkwallyworld: at the moment the AddSubnets api method doesn't accept "", I'll change it to now.00:27
wallyworldah, ok00:27
babbageclunkwallyworld: The AddSubnets method is shared between the Subnets and DiscoverSpaces facades - do you think I should allow space="" in both places?00:30
wallyworldbabbageclunk: yeah because "" is universally the default space00:31
* wallyworld says without looking at code00:31
babbageclunkwallyworld: yay, that's easier!00:31
wallyworldthumper: i fixed the race https://github.com/juju/juju/pull/705600:49
thumperwallyworld: awesome00:49
wallyworldrace was one line, drive bys a few more :-)00:49
thumperwallyworld: lgtm00:50
wallyworldty00:50
thumperI wish we had someone around that understood the 1.25 networking model and the changes for 2.000:55
* thumper sighs00:55
thumperblahdeblah: hey...00:56
thumperblahdeblah: didn't you say that you had some 1.25 environments and 2.0 models with similar capabilities?00:56
thumperblahdeblah: are they maas or openstack?00:56
blahdeblahthumper: yes; openstack - all in canonistacks00:57
thumperwell... that is a start at least00:57
blahdeblahthumper: they're not identical, but similar00:57
thumperblahdeblah: what's the chance you can get me a mongo dump of both?00:57
thumpersure.00:57
blahdeblahthumper: Did you get my email about that yesterday?00:57
thumperprobably...00:58
* thumper looks00:58
thumperblahdeblah: well that sucks00:59
blahdeblahsorry :-)00:59
thumperblahdeblah: how conversant are you with the mongo shell?01:02
blahdeblahthumper: I can share my screen with you via hangout and monkey-type whatever you tell me like an absolute pro! :-P01:02
thumper:)01:03
thumperblahdeblah: what we could do is add the index on the fly to test01:04
thumperand if that works, which it should, get it in to 2.1.101:04
babbageclunkthumper: while you're in there maybe check how many rows there are in the collection?01:06
blahdeblahthumper: sure - just need to step away for a minute, but we can work on it after that01:06
thumperbabbageclunk: yeah01:06
thumperblahdeblah: sure, ping when back01:06
blahdeblahwill do01:06
babbageclunkthumper: There's a comment in MachineAgent.startModelWorkers saying "we should try to find the right values for these numbers".01:09
thumperhaha01:09
* thumper goes to make coffee01:30
blahdeblahthumper: I'm back - can look at this index when you're ready01:35
thumperblahdeblah: ok, just eating a muffin01:52
blahdeblahthumper: you want to try hangouts for this again?01:53
thumperblahdeblah: yeah01:58
thumperblahdeblah: just on another call, with you shortly01:59
blahdeblahthumper: I'm gonna have to run for lunch appointment in 10 mins, and I'm guessing you'll be EOD-ish by the time I get back.  Can you pastebin or email what you want me to do?02:19
thumperblahdeblah: yeah... can do02:22
* babbageclunk goes for a run02:28
blahdeblahthumper: still around03:33
blahdeblah?03:33
blahdeblahthumper: just want to confirm that I'm doing this indexing stuff on 2.1.003:40
blahdeblah(not 1.25.10)03:40
thumperblahdeblah: yeah 2.103:53
blahdeblahthumper: Just created a ticket to track and added your email; the index thing worked perfectly and I'm moving on to getting the dumps03:54
thumperblahdeblah: which index, first or second?03:54
blahdeblahfirst03:54
blahdeblahhttps://pastebin.canonical.com/181228/03:54
thumperblahdeblah: sweet03:56
thumperI'm a little surprised that the first one worked, but kinda happy03:56
thumperbabbageclunk: ^^ index without _id worked03:56
thumperblahdeblah: that is very helpful, would still like a mongo dump of 1.25 if you can :)03:59
blahdeblahOn its way03:59
thumperblahdeblah: awesome, thanks03:59
thumperNow I'm on the hunt for some maas 1.25 environments to get a dump from03:59
thumperand some maas 2.1 models to do equivalent queries against04:00
blahdeblahbradm: ^04:00
babbageclunkthumper: oh, nice!04:08
babbageclunkthumper: well, I guess I should have had more faith in mongo04:10
thumperbabbageclunk: https://github.com/juju/juju/pull/705804:10
thumperbabbageclunk: not sure why you should have more faith, I didn't04:10
thumperwell, I had ~25% faith04:10
thumperdoes that count?04:10
babbageclunkthumper: lgtm'd04:13
thumperbabbageclunk: https://github.com/juju/juju/pull/7059 another04:19
thumperbabbageclunk: indices are ensured whenever state gets opened04:20
babbageclunkthumper: This is the one I thought the other one was going to be - you got me with a classic bait-and-switch!04:24
babbageclunkthumper: lgtmd04:24
anastasiamacaxw: added revert to the same PR. still +1? happy to merge?04:27
axwanastasiamac: yes, thanks04:28
anastasiamacaxw: awesome! shiping..04:28
axwjam: will be 5-10 mins late, I'll ping you. I'd like to chat about storage spec revision today04:56
jamk04:56
axwjam: I'm in05:07
jamaxw: do we have a bug about "not able to open /dev/loop" spamming the log files with the lxd provider?08:24
jam(it might be fixed in 2.2, I'm just seeing it testing out 2.1)08:25
=== frankban|afk is now known as frankban
axwjam: not that I know of08:25
axwjam: I don't think it's fixed in 2.208:25
jambug #166929708:30
mupBug #1669297: diskmanager log spam about /dev/loop <lxd> <lxd-provider> <storage> <juju:Triaged> <https://launchpad.net/bugs/1669297>08:30
jam(just filed)08:30
axwwallyworld: did you see my response?08:47
jamaxw: did we break "juju upgrade-juju" with development tools in 2.1.1/12:00
jam?12:00
jamI swear it always worked for me to just keep running that command12:00
jamnow I'm getting "newer version found"12:00
jam2.1.1.112:00
jambut it should be creating 2.1.1.212:00
jamah.. just a bad error12:00
jamrunning 'upgrade-juju' in not-the-controller-model gives a bad error12:01
perrito666jam: --build-agent ?12:01
jamperrito666: no, I just needed to "-m controller"12:01
perrito666yes12:01
jambuild-agent told me that "you can only do that in the controller model" which pointed me in the right direction12:01
perrito666its a bit dumb though that if you --build-agent it fails to upgrade because not on the controller instead of upgrading the controller... I used --build-agent I know what I want12:02
wallyworldaxw: yeah, saw it but had to go to soccer. i realise the tests are faulty because the before hook reuses the app object instead of getting a new one, so will fix12:04
jamperrito666: math.rand is returning deterministic results... was that intentional?12:06
jamI've bootstrapped 2x, and both got "10.0.18.0" for lxdbr012:06
perrito666jam: I would definitely not expect that, the docs dont mention it12:07
jamperrito666: its standard for C libs12:09
jam'rand' is deterministic so you have to call srand first12:09
jamperrito666: crypto/rand is properly always random but probably doesn't have Perm12:09
jamusually its srand(time())12:09
jamperrito666: care to poke at that?12:10
jammaybe we could open a bug on 2.1.1 so that we know its being fixed12:10
perrito666jam: at all, Ill fix it, so much for a high level languaje12:10
jamhttps://golang.org/pkg/math/rand/12:10
jamsays: use a default shared Source that produces a deterministic sequence of values each time a program is run.12:11
jamperrito666: ^^12:11
jam'use the Seed function'12:11
perrito666jam: yup, I read the doc for Perm only, my bad12:12
jamusing Seed seems fine for our use case12:13
perrito666yup, Seed with timenano should fix it12:13
* perrito666 writes a lib that sends an email to a bunch of D&D nerds to throw dice and reply with an int slice12:13
perrito666jam: did you merge this with 2.2 or 2.1?12:20
jamperrito666: heh12:21
jamperrito666: its in 2.112:21
perrito666jam: you did some nassty things there12:22
perrito666jam: look https://github.com/juju/juju/compare/2.1...perrito666:use_random_seed_for_lxd_ips?expand=112:22
jamsomething doesn't look right with that12:24
jamdid I target the wrong version?12:24
perrito666jam: well for once the test diff is not there12:25
perrito666:p12:25
perrito666so it is even weirder12:25
jamhttps://github.com/juju/juju/pull/705412:25
jamperrito666: did you "git update remote" first?12:26
jamsorry git remote update12:26
perrito666jam: mmm I git fetched12:26
perrito666but the reset might not have taken12:26
* perrito666 goes again12:26
* perrito666 pulls -r12:27
perrito666jam: btw, put a linter in your editor ffs :p12:30
perrito666jam: there you go, I had messed my own repo https://github.com/juju/juju/pull/706112:53
axwwallyworld: LGTM, thanks12:54
jamlgtm12:54
SimonKLBperrito666: I see you're working on the container networking, does this have anything to do with bundles being forced to specify spaces?13:02
SimonKLBrecently I've started to see: juju.provisioner failed to prepare container "20/lxd/1" network config: unable to find host bridge for space(s) "" for container "20/lxd/1"13:03
jamhttp://github.com/juju/juju/pull/706213:06
perrito666SimonKLB: I am not sure13:08
perrito666jam: plese do some cleanup on that pr, your commit tree is a mess, do some squashing13:08
jamI'm morally opposed to push --force, but I'll squash it a bit before $$merge$$13:09
wallyworldaxw: ty for review13:12
SimonKLBjam: perhaps you could shed some light on it? im trying to run my bundle on the lxd provider, but spaces dont seem to be supported there yet? are the warnings nothing to worry about?13:34
jamSimonKLB: as a quick question, are these running trusty?13:35
jamI believe I have a fix in flight that should improve that case with 2.1.1 so you won't get a warning13:35
SimonKLBjam: nope they are all xenial13:36
perrito666jam: ship it13:37
jamperrito666: so 'git log upstream/2.1...HEAD' shows the extra commits but "git rebase -i upstream/2.1" won't show me anything since the last time I merged 2.113:37
jamperrito666: I tried --no-fork point which seemed hinted by the readme13:38
jambut haven't found anything that will actually let me squash the 2 merges into a single one13:38
perrito666jam: git rebase -i <thecommitbefore the last one you want to squash>13:39
niedbalskisinzui, ping13:40
sinzuihi niedbalski13:40
niedbalskisinzui, hey curtis :) , I am having issues while trying to set the apt-mirror config option in the model, I don't see this sed replacement (https://github.com/juju/juju/blob/eb98521dc187927bebe390e0172136033f80487e/cloudconfig/cloudinit/cloudinit_ubuntu.go#L157) appended on the cloud-init userdata. (https://pastebin.canonical.com/181281/) , are you aware on a similar issue?13:42
sinzuiniedbalski: This is new to me. I recall there are are a few issues related to security updates only come from ubuntu.com13:44
jamperrito666: I was able to cleanup one or 2 of the commits, but the others were actual conflict resolution/bringing in changes from 2.1 that I actually need.13:46
niedbalskisinzui, yes, the security updates are part of the issues I am tracking, do you know any lp bug related to it?13:47
perrito666jam: ok, I forgive you :p13:47
sinzuiniedbalski: Bug 1606487 bug 159988613:48
mupBug #1606487: apt-mirror does not override security.ubuntu.com for controller <juju:Triaged> <https://launchpad.net/bugs/1606487>13:48
mupBug #1599886: apt-mirror does not override security.ubuntu.com for containers on trusty <cpec> <juju:Incomplete> <juju-core:Won't Fix> <juju-core 1.25:Won't Fix> <cloud-init (Ubuntu):Fix Released> <cloud-init (Ubuntu Trusty):Confirmed> <cloud-init (Ubuntu Xenial):Fix Released> <cloud-init (Ubuntu13:48
mupYakkety):Fix Released> <https://launchpad.net/bugs/1599886>13:48
perrito666jam: I am usually only dense when I see things like "went to lunch" "changing computers" or "typo"13:48
perrito666jam: ideally each commit you send should compile13:51
niedbalskisinzui, thanks13:54
SimonKLBdo I have to do anything special when deploying a bundle with lxd containers when running on an lxd provider?14:05
SimonKLBim getting: juju.provisioner cannot start instance for machine "0/lxd/0": Failed to change ownership of: /var/lib/lxd/containers/juju-51d4de-0-lxd-0/rootfs14:05
SimonKLBseem to be a problem with nested lxd?14:06
=== mskalka_ is now known as mskalka
SimonKLBfixed it by adding 'security.privileged: "true"' in the juju-default lxd profile14:20
=== frankban is now known as frankban|afk
thumperwell.... shit.20:52
perrito666thumper: that triggers an automated response by me to go and check the mail20:54
thumperperrito666: no... no email about this yet20:54
thumperI'm just wrapping my brain around 1.25 -> 2.x issues20:54
thumperand I think what I need to do is to effectively have both codebases vendored (effectively) into my upgrade app20:55
thumperrather than dealing with external repos20:55
thumperdue to needing both versions20:55
thumperI need to be able to use 1.25 state20:55
thumperand 2.0 api20:55
thumperand both client disk formats20:55
perrito666heh, well fuck is a strong understatement20:55
thumperso...20:56
thumperhmm20:56
thumperfun...20:56
thumperoh good20:56
thumpermenn0: got a minute20:56
thumperI need to discuss something / get a sanity check20:56
perrito666can I deploy a kvm container in an lxd provider?20:57
thumperperrito666: no20:57
thumperat least I don't think so20:57
thumperwe used to explicitly stop any container in lxc containers20:57
thumperI assume that lxd also stops kvm20:57
menn0thumper: hi, yep, 1:1?21:03
thumpermenn0: ack21:04
babbageclunkwallyworld: ping?21:57
wallyworldyo21:58
babbageclunkwallyworld: I got a bit confused yesterday when I redid the tests for the discover spaces worker and realised it never sends the CIDRs of the subnets to the API?21:59
wallyworldcorrect, there's a backend cache which does it21:59
wallyworldwhen the first api call is made21:59
babbageclunkwallyworld: seems weird21:59
wallyworldit does21:59
wallyworlddid you want a quick HO?21:59
babbageclunkwallyworld: sure! I mean, I don't think I need one - the tests are working now, just threw me for a bit.22:01
wallyworldbabbageclunk: let's chat quickly just make make sure we are on the same page22:02
babbageclunkwallyworld: sounds good22:02
wallyworldbabbageclunk: in 1:122:03
axwthumper: can you please merge https://github.com/juju/description/pull/2?23:32
axwseems I do not have rights23:32
thumperaxw: yep23:44
thumperaxw: done23:44
axwthumper: cheers23:44

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