/srv/irclogs.ubuntu.com/2016/12/02/#juju-dev.txt

mgzaxw: there are a couple of branches up for bug 1625624 that would be good if you have a chance to think about today (I sent an email)00:21
mupBug #1625624: juju 2 doesn't remove openstack security groups <ci> <landscape> <openstack-provider> <sts> <juju:In Progress by gnuoy> <juju 2.0:In Progress by gnuoy> <juju-core:In Progress by gnuoy> <https://launchpad.net/bugs/1625624>00:21
alexisbwallyworld, running behind00:32
axwmgz: yup will do (although I have a mounting list of things to do, so I apologise in advance if I run out of time)00:50
mgzaxw: don't worry about review sepcifics, just want input on api compat issues00:57
axwalexisb: ping when you're ready please01:03
alexisbaxw, will do01:03
alexisbsorry01:03
anastasiamacbabbageclunk: did u get a chance to see this one? https://bugs.launchpad.net/bugs/164650401:07
mupBug #1646504: Suite.TestLogTransferReportsProgress messages are different <ci> <intermittent-failure> <regression> <unit-tests> <juju:Triaged> <https://launchpad.net/bugs/1646504>01:07
alexisbok axw hoping on the HO01:08
babbageclunkanastasiamac: no, hadn't seen that. D'oh! Will fix - thanks!01:09
anastasiamacbabbageclunk: \o/01:09
alexisbredir, you have a minute to meet with me?01:28
rediralexisb: yup01:28
redir1:1?01:28
alexisbyep01:30
alexisbgood night all, I will see the team in person next week!01:56
babbageclunkanastasiamac, menn0, wallyworld: can someone review my intermittent test failure fix please? https://github.com/juju/juju/pull/664702:49
babbageclunkfor bug 164650402:49
wallyworldsure02:49
mupBug #1646504: Suite.TestLogTransferReportsProgress messages are different <ci> <intermittent-failure> <regression> <unit-tests> <juju:Triaged by 2-xtian> <https://launchpad.net/bugs/1646504>02:49
babbageclunkwallyworld: thanks!02:51
wallyworldbabbageclunk: how do we know that the first match is always 0 sent and not 1 or 2?02:52
babbageclunkwallyworld: it logs before starting doing anything02:53
babbageclunkwallyworld: it means the test's a bit toothless now, but I think that's ok02:53
wallyworldbabbageclunk: i guess it shows initially the first message and then subsequent02:54
* babbageclunk nods02:54
wallyworldbabbageclunk: and just to check, we pass in a test clock to the suite02:55
babbageclunkwallyworld: yup, up in the setup02:55
wallyworldbabbageclunk: so in that case,  off hand, why isn't the test deterministic then?02:56
wallyworldwe step the clock, we should see deterministic results?02:56
babbageclunkwallyworld: I *think* it's because of the nondeterminism in the select statement - if the alarm's triggered and the channel has something waiting, then either one might happen02:58
wallyworldmakes sense looking at the code03:00
wallyworld+1 then, ty03:00
babbageclunkwallyworld: thanks. I'm not super happy with it, but I'm not sure of a better way to fix it.03:01
wallyworldagree with that sentiment, but import thing is to get it fixed03:02
wallyworldpragmatism :-)03:02
babbageclunk:)03:02
* babbageclunk steps out for some pre-travel errands.03:04
wallyworldaxw: i keep hitting itermitent failures with this one, got to go to the funeral, could you hit merge for me if it fails again? https://github.com/juju/juju/pull/663703:58
axwwallyworld: ok03:58
=== frankban|afk is now known as frankban
mattywhey folks - anyone around able to explain model migration to me?09:52
mattyw(for now - I just want to know what it is)09:52
voidspacemattyw: the idea is that you can migrate everything to a new *controller*09:52
voidspacemattyw: it doesn't migrate the services or units09:52
voidspacemattyw: but exports the "state of the world" to be imported into a new *controller*09:53
voidspacemattyw: which can then administer the world09:53
voidspacemattyw: make sense?09:53
voidspacemattyw: so it only migrates the "model of the world", not the world itself09:53
mattywvoidspace, makes perfect sense, thanks very much09:53
voidspacecool09:54
jamespageany specific reason why application names can't start with a digit?10:45
voidspacejamespage: I strongly suspect that the answer is "no good reason"10:46
voidspacejamespage: I'd file a bug and start a discussion on the mailing list10:46
jamespagevoidspace, ok ta10:46
voidspacejamespage: if there is no good reason for the restriction it is very easy to change the rule10:47
jamespagevoidspace, I've emailed the juju-dev ML10:49
mgzit's been that way for ever10:50
jamespagevoidspace, I'll skip the bug for now10:50
voidspacejamespage: cool10:50
voidspacejamespage: ok10:50
jamespagemight save some cycles if there is a good reason!10:50
voidspacemgz: "this is the way we have always done it" is often the reason...10:50
voidspaceand the only reason...10:50
voidspacemgz: o/10:50
voidspace'ning10:50
mgzmonin'10:50
mgz+r10:50
mgz>_<10:51
voidspace:-)10:51
voidspaceor +a10:51
voidspacewhichever really, maybe both10:51
mgzehehe10:52
mgzanyway, my assumption is it made parsing/disamiguating machines/services/units10:52
mgz0 is always a machine10:52
mgza0 is always an application10:52
mgza0/0 is always a unit10:53
voidspacemgz: you may well be right11:31
voidspacejamespage: it may be required internally in juju for disambiguating names11:32
voidspacejamespage: which is not necessarily a good reason, but may actually make it very hard to change11:32
jamespagevoidspace, ack11:33
SimonKLBjuju seem to be trying to use the ip-address of a unit by grabbing the first interface when ordered alphabetically, this makes it problematic to run for example `juju ssh [unit]` when you have installed docker which adds the docker0 interface12:00
SimonKLBive only experienced this about a week though, so it might be something added recently12:01
SimonKLB`juju ssh [machine number]` works fine though12:02
voidspaceSimonKLB: *sigh*12:27
voidspaceSimonKLB: file a bug please12:27
SimonKLBvoidspace: did i do something stupid? :)12:27
SimonKLBalright12:27
voidspaceSimonKLB: no, I don't think so12:28
voidspaceSimonKLB: it sounds like juju is doing the wrong thing12:28
voidspaceSimonKLB: but it's actually *hard* for juju to know what the right thing to do is when there are multiple interfaces12:28
voidspaceSimonKLB: it seems obvious as a human when you know what the purpose of all the interfaces are12:28
voidspaceSimonKLB: but juju has to infer all that12:28
mgzah, we don't have a friday early standup12:29
mgzhad forgotten12:29
SimonKLByea, i was debugging it a bit, and it looks like its actually trying different ips, so my initial thought that it was grabbing the first interface by alphabetical order might be wrong12:29
voidspacemgz: I just came to the same realisation12:29
voidspaceSimonKLB: frobware is our expert here12:30
voidspaceSimonKLB: as much as he doesn't want to be the expert here...12:30
SimonKLB:D12:30
SimonKLBis he us?12:30
voidspaceSimonKLB: no, UK12:30
SimonKLBah great12:30
voidspaceSimonKLB: not sure if he's around today or not12:30
frobwarevoidspace, SimonKLB: here....12:31
voidspace:-)12:31
frobware(and gone)12:31
* voidspace coffee12:31
frobware:)12:31
SimonKLBfrobware: nice! any idea whats going on here?12:31
frobwareSimonKLB: context?12:31
SimonKLBfrobware: `juju ssh [unit]` does not grab the correct ip/interface from the looks of it12:31
SimonKLBwhile juju ssh [machine] does12:32
frobwarehmm12:32
voidspaceactually that's weird and interesting12:32
frobwareSimonKLB: I'm guessing [unit] literally grabs first addr. Whereas we made some recent change for $N to try all interfaces:22 and choose the first that works12:32
voidspaceI don't know what juju does when you ask for the ip of a unit12:32
voidspaceI know what it does when you ask for the ip of a machine12:33
SimonKLBsince the unit is kind of linked to a machine, would it not be possible to resolv units the same way?12:33
voidspacesure, I just don't know what it actually does12:34
voidspacesomething different obviously12:34
SimonKLBfrobware: it looks like it's what youre saying, that juju grabs the first addr it can find, because there is no problem ssh:ing into a unit with just the normal set of interfaces12:35
SimonKLBit becomes a problem whem ssh:ing to a unit which have docker installed with the docker0 interface etc12:36
frobwareSimonKLB: what's "normal set of interfaces" here?12:39
SimonKLBfrobware: just eth0 and lo12:39
SimonKLBfrobware: it might also be interesting to note that both using proxy=true and proxy=false is trying the same ip, which i guess means both the public and the private ip is wrong?12:46
frobwareSimonKLB: please could you raise a bug for this12:57
SimonKLBsure12:57
SimonKLBfrobware: did some extra investigation before reporting the bug and noticed that i had an interface on my local computer with the same ip13:11
SimonKLBfrobware: removed that, and now it worked13:11
frobwareoh13:11
frobwareSimonKLB: great! :)13:11
frobwareSimonKLB: because I was beginnging to get a little sidetracked with this.13:12
SimonKLBis the problem some kind of routing story?13:12
SimonKLBits odd that it says that it is trying to ssh to a local ip address when you use `juju ssh [unit]` though?13:12
frobwareSimonKLB: and if you try to get to the unit via the proxy does that work?13:15
SimonKLByup13:15
frobwareSimonKLB: so it's just resolving to something on your immediate network - which makes sense, no?13:26
frobwareSimonKLB: resolving/connecting13:27
SimonKLBfrobware: yea, but shouldnt it ssh to the external ip of the machine, in that case any local ips shouldnt be in the way13:31
frobwareSimonKLB: I would say no. If you were type `ssh <ip-addr>` wouldn't you expect that to connect based on your current routing?13:31
SimonKLBfrobware: ive deployed juju in aws, i dont understand how you reach it not using the external ip?13:33
SimonKLBif its not trying to proxy through the controller13:33
frobwareSimonKLB: but containers are not directly accessible without going through the containers proxy - in the AWS case I would always use juju ssh --proxy.13:33
frobwareSimonKLB: ah, --proxy is not the default.13:34
SimonKLBfrobware: yea, and im not trying to reach the containers13:34
SimonKLBfrobware: im just trying to ssh to the machine where the units is deployed13:34
rick_hfrobware: SimonKLB right, --proxy is not the default because juju 2 introduced multiple users, read-only users, etc so we can't allow everyone to go through the controller machine for proxy to work13:34
frobwareSimonKLB: oh, so just the host? OK - confused as I thought this conversation started off with a ... docker container.13:35
rick_hfrobware: SimonKLB so you have to either use proxy, jump host from the controller, or expose the machine in question with an external IP of some sort13:35
SimonKLBfrobware: yea i think the issue is when docker is installed on the host, it creates extra interfaces, and thats why juju detects the wrong ip address13:36
SimonKLBfrobware: but i dont get why its trying to use that local ip when i ssh from the client13:36
SimonKLBfrobware: im able to reproduce the problem when bringing up the docker interface on my local machine again13:38
SimonKLBfrobware: ill report the bug now when i know how to reproduce it13:38
frobwareSimonKLB: thanks. it helps massively having repro steps - appreciated!13:39
SimonKLBfrobware: does it take a while before juju fetches new unit ips?14:13
SimonKLBi cant seem to reproduce it with a newly started machine14:13
SimonKLBit also still keeps ips in memory from interfaces that ive removed from the target machine14:14
frobwareSimonKLB: can you explain the last sentence more14:15
SimonKLBfrobware: if i check `juju status [unit] --format=yaml` it reads ip-addresses from interfaces that are no longer on the machine14:16
SimonKLBso i guess it takes a while before the state is updated?14:16
frobwareSimonKLB: for a more immediate check bounce the controller - though this seems extreme14:16
SimonKLBhow?14:16
SimonKLBfrobware: can i force refresh the state somehow?14:17
frobwareSimonKLB: the only sure fire way is to restart the jujud process on your controller machine14:50
SimonKLBfrobware: thanks14:50
frobwareSimonKLB: but this seems wrong...14:50
SimonKLBfrobware: agreed, but if it restarted sometimes during my run, the ip addresses might have been updated14:50
SimonKLBfrobware: thats it14:52
SimonKLBi can reproduce it now14:52
frobwareSimonKLB: if it worked, that seems buggy too. :/14:52
SimonKLBfrobware: https://bugs.launchpad.net/juju-core/+bug/164686315:00
mupBug #1646863: Cannot ssh to unit when Docker is setup on both client and unit machine <juju-core:New> <https://launchpad.net/bugs/1646863>15:00
mupBug #1646863 opened: Cannot ssh to unit when Docker is setup on both client and unit machine <juju-core:New> <https://launchpad.net/bugs/1646863>15:05
SimonKLBfrobware: i checked out the code a bit and noticed that LXD/LXC interfaces are filtered out, i guess a quick-fix would be to add Docker interfaces here as well https://github.com/juju/juju/blob/staging/worker/machiner/machiner.go#L14115:06
frobwareSimonKLB: this was the PR for that change - http://reviews.vapour.ws/r/4478/15:12
frobwareSimonKLB: but what if you had libvirt interfaces too? and so on.15:13
SimonKLBmhm15:13
SimonKLBfrobware: are you able to fetch network information from the cloud?15:15
frobwareSimonKLB: in what context?15:15
SimonKLBfrobware: so, if you could query for example the aws api and get the private ip from there instead of relying on the interfaces on the vm15:16
frobwareSimonKLB: right. be data-driven from the provider. Agreed that this would be way better.15:16
SimonKLBfrobware: shouldnt be a very big thing right? since you're using the provider api in other aspects15:17
frobwareSimonKLB: yes - in general, we should not try and guess. That's the worst of all worlds.15:18
SimonKLBfrobware: agreed15:18
SimonKLBfrobware: i dont see any reliable way to determine which interface is the correct one from inside the vm, even if you could filter all of the bridges, one could still have a vm with multiple nics15:19
SimonKLBfrobware: you could filter most of it through `brctl show` however15:22
frobwareSimonKLB: I still have to guess.15:22
mupBug #1646863 changed: Cannot ssh to unit when Docker is setup on both client and unit machine <juju-core:New> <https://launchpad.net/bugs/1646863>15:23
frobwarerick_h: did you want to chat?15:24
rick_hfrobware: oh right sorry15:25
* rick_h goes back15:25
mgzehehe15:25
mgzyou said andy can you hang on then left?15:25
mgzis that like making him stay in detention and write lines on the board?15:25
mupBug #1646863 opened: Cannot ssh to unit when Docker is setup on both client and unit machine <juju-core:New> <https://launchpad.net/bugs/1646863>15:26
mgzanyone around for a quick dep bump review stamp?15:58
mgzthe (more complex) 1.25 and 2.0 branches have landed already15:58
mgzpr #665115:59
mgzmacgreagoir, voidspace: ^around for teeny review?16:02
macgreagoirmgz: Lemme look...16:03
macgreagoirmgz: lgtm16:06
mgzmacgreagoir: ta!16:07
voidspacemgz: sure16:09
voidspacemgz: I'm waiting for something anyway16:09
voidspacemgz: looking16:10
voidspacemgz: oh, macgreagoir beat me to it...16:13
mgzhe was fast :)16:13
macgreagoirDoing my OCR best ;-)16:13
voidspace:-)16:13
=== urulama is now known as urulama|off
=== frankban is now known as frankban|afk
=== redir is now known as redir_travel
* frobware is not sure landing his change as-is would be wise. :(18:25
frobwarewow18:27
perrito666Fronware why?18:34
frobwareperrito666: I split a script in two. two files. one does transformation. the other applies the transformation. If I run the original (all-in-one) it never fails. If I run them disoint, A, then B then there's occasionally a failure.18:40
perrito666Interesting sound like a race put in evidence by the split18:41
frobwareperrito666: I wonder if this is actually a change in the kernel. the scripts in question down/raise network interfaces.18:42
perrito666If you are using systemd i believe you can query for readyness cant you?18:44
frobwareperrito666: this is long after the machine has booted.18:51
voidspacerick_h: email sent19:17
voidspacerick_h: see you on Monday....19:17
=== hml_ is now known as hml
natefinchkatco: can you review my updates to the ping code?  Hopefully this puts it into the realm where it can be landed.  Note that I have a card to write CI tests for these later.19:22
katconatefinch: sure19:22
natefinchhere's the latest commit : https://github.com/juju/juju/pull/6621/commits/42c89729bfc4ca79a4eda03881cc1474e36e507819:22
katconatefinch: reviewed... mostly piddly stuff, but a few important questions i think19:36
natefinchkatco: cool, thanks19:39
natefinchI love this:19:39
natefinch=== RUN   TestPackage19:39
natefinchOK: 29 passed19:39
natefinch--- PASS: TestPackage (0.00s)19:39
katco:D19:40
katcoin-memory baby19:40
natefinchSo good :)19:40
katconatefinch: you're going to have to rebase off of staging or develop19:40
katconatefinch: you have some conflicts19:41
mgznatefinch: not shown, 20s compile time? :P19:42
natefinchkatco: yeah, I was going to squash before I rebased, but I didn't want to squash before you reviewed my newest commit, so you didn't have to look at all the changes all over again (if you didn't want to)19:42
natefinchmgz: lol, well, perhaps19:42
katconatefinch: ah thanks for the consideration19:42
katconatefinch: will probably want another review after rebasing19:42
natefinchmgz: this is actually a pretty isolated package.  Building only takes .724s real time :)19:43
natefinchwell build and test19:43
natefinchbut test is zero, as we know :)19:43
mgznice and speedy :)19:44
natefinchkatco: so about not implemetned ping methods.... those clouds without ping we also just dont' allow you to interactively add cloud, like GCE and AWS20:08
natefinchkatco: so you won't ever see the not implemented error, because they aren't choices we'll let you make.20:09
katconatefinch: yeah i saw your comment. thanks for the explanation20:14
natefinchcool20:14
natefinchinternal compiler error, fun!21:22
natefinchwhy do I assume that at 4:30 the friday before a sprint, not a soul is on here but me21:23
katconatefinch: i'm still here, but not for much longer :)21:26
natefinch:)21:26
natefinchcompiling with go tip (1.8) found a compiler error... fun times21:26
katconice21:26
natefinchPretty sure Dave said that juju has found a bug in Go for every major release of Go.  hate to break the streak21:27
redir_travelIf anyone is going to be going from the airport to the hotel saturday evening the 3rd ~1600ish or so let me know if you want to share a ride.22:28

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