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

anastasiamacaxw: PTAL? https://github.com/juju/juju/pull/719301:46
axwanastasiamac: looking01:48
axwanastasiamac: looks good apart from the panic inducing change made to defer order01:50
anastasiamacaxw: oh k -dunno how i kept that one ;) i'll revert that little tidbit ;)01:52
axwanastasiamac: LGTM01:56
anastasiamac\o/01:56
blahdeblahCan anyone advise on what the minimum instance size for 2.1.2 controller in Azure would be?  I'm using a trial account, so I need to use the smallest possible instances.02:22
menn0blahdeblah: it depends how many models and units you intend on running with the controller02:36
blahdeblahmenn0: one A0 VM per region, for as many regions as the trial account will allow me02:36
blahdeblahSo probably around 10-15 VMs total02:36
blahdeblahThey'll be cs:ubuntu primaries, with telegraf, ntp, and maybe landscape-client subordinates02:37
menn0blahdeblah: I haven't used azure much but looking at their machine types an A-Small or A-Medium should do it02:37
jammenn0: a small interesting 'mongo' thing. It seems aggregation pipeline has a $split operator, but it doesn't work everywhere. I don't know if it works in 3.4 (laptop) and not 3.2, or whether it doesn't work when you disable the V8 engine.04:26
jammenn0: I *almost* managed a query that would pull out TXN ids into a table, but you have to convert strings to OIDs, and there doesn't seem to be any DB level request you can do for it. it has to be done in Javascript or client-side04:28
jammenn0: I also saw that you landed "$gte: 5", in my testing the time for $gte: 5 is the same as $in [5, 6]04:32
jamexact match on '6' is slightly faster, but it seems better to use a forward looking [5, 6] just in case?04:32
menn0jam: the agg pipeline doesn't seem to be very good at using the index04:46
menn0jam: I went with $gte b/c that's at least fast with the index with a normal find(), but $in isn't04:47
menn0jam: I figured it's more likely to be fast with the agg pipeline in some future mongodb version04:47
menn0jam: i'm not too worried anyway... the way things are now, it's not super fast but it's probably fast enough04:48
menn0jam: your $split query sounds interesting... but how much would it actually help?04:49
menn0jam: at some point the code is still going to have to iterate the result of the agg pipeline04:51
menn0jam: i'm not sure that'll be much faster than iterating the docs directly04:51
menn0it might even be slower04:52
jammenn0: well $lookup seemed interesting05:11
jamas a way to do almost all the work server side05:11
jambut the lack-of-object-conversion makes it not possible05:11
jamI was looking for a "look for completed so I could remove them from the queues"05:11
menn0jam: yeah I saw that too05:12
menn0jam: it's also not available in mongodb 2.x so we'd have to be careful with how it was used in mgopurge05:12
blahdeblahHi all, I'm running into https://bugs.launchpad.net/juju/+bug/1656723 at the moment; is there any word on when the fix will be released?  Is there a workaround?06:01
mupBug #1656723: azure: firewall rules are wiped out when a new machine is added <azure-provider> <juju:Fix Committed by axwalk> <https://launchpad.net/bugs/1656723>06:01
blahdeblahaxw: Your name is on that bug - any suggestions?06:18
jamblahdeblah: the fix listed there was merged into 2.2, which is scheduled for stable release at the end of April06:20
blahdeblahjam: Thanks - any workaround in the time being?  It has basically cut me off from the instance I had running.06:21
jamblahdeblah: that you'd have to talk to axw06:21
blahdeblahIt might be faster to just redeploy06:22
=== akhavr1 is now known as akhavr
axwblahdeblah: I think if you unexpose and then re-expose, the rules will be  recreated06:35
blahdeblahaxw: Yes, eventually worked that out.  Thanks. :-)06:35
blahdeblahI'll note that on the bug for future travellers06:35
axwblahdeblah: cool, thanks06:36
=== frankban|afk is now known as frankban
jamaxw: I updated https://github.com/juju/juju/pull/7180 can you give it another look?07:22
axwjam: looking07:36
axwjam: I agree with your assessment, that we shouldn't need to check model life because we're not creating a new thing. can you please drop the checkModelActive too then?07:38
axwbrb07:38
axwmaybe I misunderstood your reply tho07:40
SimonKLBhey guys! im having some trouble using the --switch flag when upgrading an application to a different, locally built, charm09:15
SimonKLBERROR cannot upgrade "X" to "Y"09:16
SimonKLBit looks like this is the cause: https://github.com/juju/juju/blob/staging/cmd/juju/application/upgradecharm.go#L50809:16
SimonKLBam i not understanding the --switch flag correctly? i thought that was the point of it09:16
anastasiamacSimonKLB: u may be running into https://bugs.launchpad.net/bugs/167312209:50
mupBug #1673122: Incorrect series used during upgrade to a local charm and no way to specify it manually <cdo-qa-blocker> <cpe> <talisman> <upgrade-charm> <juju:In Progress by ecjones> <https://launchpad.net/bugs/1673122>09:50
SimonKLBanastasiamac: i dont think so, the error message i get is this one: https://github.com/juju/juju/blob/staging/cmd/juju/application/upgradecharm.go#L50909:51
SimonKLBwhich seem to be spawned when the old and the new charm names differ09:52
anastasiamacSimonKLB: feel free to file a bug, with repro scenario and logs :)09:53
SimonKLBanastasiamac: found one already :) https://bugs.launchpad.net/juju/+bug/166690409:56
mupBug #1666904: upgrade-charm --switch doesn't work with local charms <charm> <charmers> <upgrade-charm> <juju:Triaged> <https://launchpad.net/bugs/1666904>09:56
anastasiamacSimonKLB: \o/ i thought i saw something recently.. no wonder - it only came in a month ago ;)10:13
=== lazyPower is now known as lp|swap
=== freyes__ is now known as freyes
tasdomashi, could somebody take a look at this: https://github.com/juju/juju/pull/6843 ?14:41
=== frankban is now known as frankban|afk
thumpermorning20:54
redirmorning thumper21:03
babbageclunkmorning redir21:22
redirmorning babbageclunk :)21:25
cmarsmorning thumper22:14
cmarsthumper, can we get another look at this old PR: https://github.com/juju/juju/pull/684322:14
thumperapproved22:16
cmarsthumper, thanks!22:16

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