/srv/irclogs.ubuntu.com/2017/11/22/#juju-dev.txt

axwwallyworld: took a look at your PR. mostly looks fine, left some questions about possible simplification01:19
thumperaxw: got a minute?02:16
thumperaxw: trying to debug a prodstack issue02:16
axwthumper: ok02:17
thumperaxw: 1:1 HO ?02:18
axwthumper: brt02:19
wallyworldaxw: thanks for review. i commented on the caas model update worker - i think we can keep it as we will surely be adding upgrade support etc soon. plus it sets model status to "available"03:58
axwwallyworld: seems like a bit of an odd place to be setting the status, but fair enough on keeping it for probable future use03:59
wallyworldaxw: thst's what the IAAS model upgrade worker does - i just cribbed from that03:59
wallyworldi guess it sets to available when everything like upgrades etc has been done04:00
axwwallyworld: I've approved, please see my comment on the authoriser. I'm going for a ride to get some lunch, bbs04:01
wallyworldaxw: tyvm04:01
thumperbabbageclunk: I'm hitting an upgrade-juju problem04:06
thumperbabbageclunk: got 5 minutes to discuss?04:06
babbageclunkthumper: oops, yup?04:14
babbageclunkin 1:1 HO?04:14
thumperyeah04:15
thumperbabbageclunk: yeah04:16
axwpoop, rear wheel is buggered, no ride for me04:28
babbageclunkaxw: bums04:42
babbageclunkflat tyre or something more serious?04:42
axwbabbageclunk: wobbling, rubbing against the brake pads. also the kick stand was getting in the way of the pedals... not sure what happened04:44
babbageclunkaxw: I've had something similar with a broken spoke (although not the kick stand part).04:45
axwbabbageclunk: yeah there's a broken spoke too :) probably has warped on the way home after it broke04:45
admcleod_is there a way to specify options for the lxd profile when deploying a unit?06:05
wallyworldjam: small PR based on yesterday's work - logs are not as noisy https://github.com/juju/juju/pull/811907:20
=== frankban|afk is now known as frankban
jamwallyworld: lgtm08:06
axwwallyworld jam: if either of you have time, https://github.com/juju/juju/pull/8120 fixes https://bugs.launchpad.net/juju/+bug/173325908:14
mupBug #1733259: API server validator should allow other API server connectings during upgrade process <apiserver> <upgrade-juju> <juju:In Progress> <https://launchpad.net/bugs/1733259>08:14
jamaxw: so what is the Pinger for the controller agent now? Just when it is a controller logging in exactly to itself? Does that mean we always have exactly 1 pinger, or do we have 2 (one for RPC one for Logging)08:54
axwjam: if you looked earlier than a few minutes ago, you would've caught a mistake. the old code for starting the pinger was correct, just highly confusing (to me at least)08:55
jamaxw: because of the "is controller" stuff and it only being set when a controller logs in for a different model?08:56
jamI don't think that logic is very clear08:56
axwjam: we should be starting the pinger if it's a non-controller connecting, or if it's a controller connecting to the controller model08:57
jamaxw: arguably the latter isn't 100% true. it should be if the controller is connecting to itself in the controller model (IMO)08:57
jamaxw: Tim's changes to pubsub mean that the controllers connect to each other08:57
jambut we shouldn't treat them as alive/dead based on that08:57
axwjam: sorry, which "latter" are you referring to? controller connecting to controller model is what I said just before...08:58
jamaxw: Tim changed pub-sub so that machine-0 will connect to machine-1 in the controller model, but IMO we still shouldn't start a Pinger for it08:59
jamwe should only start one when machine-0 connects to machine-0 for the controller model08:59
axwjam: right, I see08:59
axwjam: if we were to do that, then older API servers that didn't prefer localhost wouldn't have a pinger at all09:02
axwmaybe no big deal, because they should upgrade pretty quickly09:02
jamaxw: we never have mixed api servers09:02
jamaxw: they wait to upgrade for the other ones to notice09:02
jambecause otherwise they can't talk to the db schema09:03
jamaxw: we might have machine agents older than controllers, but the controllers actually wait for all controllers to ack that they're ready to upgrade before any will upgrade.09:03
axwjam: and they do that through state directly, without involving the API server?09:04
jamaxw: that's actually the cause of the deadlock, because machine 0 & 1 go into "we're ready to upgrade, waiting for 2" and 2 ends up in a reboot loop09:04
* axw is trying to find the code09:04
jamaxw: yeah, they record in the database ready-to-upgrade-to, IIRC09:04
axwjam: I think I'd like to move the pinger for controller agents outside of the apiserver, but will do after 2.3. I'll have it run only if the tag matches the local machine09:08
axwjam: by which I mean presence pingers. we currently don't run connection pingers for user connections, or for connections from controller-to-controller-model; that doesn't seem right, does it?09:11
jamaxw: we stopped doing connection pingers for users because of long lived connections that were dying (maybe that was gui issues?, or maybe just transferring data issues).09:12
jamaxw: personaly, I'd rather have the connection-keep-alive-pinger *be* the presence trigger09:13
jamrather than 2 separate things09:13
* axw nods09:13
axwjam: pushed a small change to stop running pingers for other controllers09:16
wallyworldjam: just back from dinner, ty for review09:48
axwjam: I don't understand your comment on https://github.com/juju/juju/pull/8116. why would $gt fail with a time.Time?11:12
jamaxw: the record in the database is a ISODate11:12
jamand ISODate is never $gt: 011:12
jamwe need to compare to a {$gt: time.Time{}}11:12
axwjam: but it can be $lt something else?11:12
jamaxw: Time struct vs integer11:13
axwjam: my point is we already compare with integers using $lt, why is $gt different?11:13
jamaxw: it doesn't11:13
jamaxw: there is an iportant "if p.unitTime == Nanoseconds" earlier11:13
jamaxw: so for the statusesC collection, it uses UnixNano and compares with 011:14
jamaxw: for actions, it is a "GoTime" and compares against a time.Now().Sub(somtehing)11:14
axwjam: aha, my bad11:14
axwthanks11:14
* axw disappears again11:15
jamaxw: I worked with eric on debugging why some tests were failing, and just did a quick bootstrap and then was playing with db queries11:15
mupBug #1733847 opened: same ip got assigned to two different container  <juju-core:New> <https://launchpad.net/bugs/1733847>12:32
=== rogpeppe1 is now known as rogpeppe
=== frankban is now known as frankban|afk
=== niedbalski is now known as ikslabdein
=== ikslabdein is now known as gyosaboy
=== gyosaboy is now known as niedbalski
babbageclunkthumper: so I should be ripping out all of the observer stuff? Is it ever used for anything other than audit logging?21:44
babbageclunkIt's kind of vague21:45
thumperno21:45
thumperlets talk21:45
thumperbut otp just now21:45
babbageclunkah, metrics21:50
babbageclunkthumper: ok, ping when you're ready21:51
thumperready22:13
thumperbabbageclunk: now?22:14
thumperbabbageclunk: 1:122:14
mupBug #1733968 opened: virtual IP addresses should not be registered <sts> <juju:New> <juju-core:New> <https://launchpad.net/bugs/1733968>22:15
thumperbabbageclunk...22:21
thumperbueller22:21
thumperbueller22:21
thumperbueller22:21
babbageclunkgah sorry, looking at the bottom of the monitor, didn't notice the bubbles at the top22:21

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