/srv/irclogs.ubuntu.com/2016/09/23/#juju-dev.txt

menn0axw: I said in the standup that the blobstore changes to allow it support io.{ReaderAt,Seeker} turned out to be bigger than I thought they would be00:17
menn0axw: I just pushed through with it and it's not too bad00:17
menn0axw: although the requirements for the ReaderAt interface are a little tricky to get right, especially efficiently00:18
menn0axw: I've gone for correctness over performance00:18
menn0axw: parking for now though, will hopefully pick it up later today00:18
veebersthumper: dumb question, if I create a model, deploy a charm and add a unit, if I just destroy the model it'll cleanup that unit right? Or do I need to specifically remoev that unit myself?00:19
* thumper afk for lunch00:22
thumperyes00:22
thumperit will clean up that unit00:22
veebersawesome, thanks th00:22
veebersthumper*00:22
rediraxw: https://github.com/juju/juju/pull/6308 when you have some time00:47
rediranastasiamac: I also applied your recommendation wrt --reset as []string in https://github.com/juju/juju/pull/630800:49
rediranastasiamac: apologies though, as I squashed it in with the other changes.00:50
anastasiamacredir: \o/ u r wonderful! tyvm :D00:50
axwmenn0: ok, thanks. no drama if you don't get to it until later - it's just a nice to have00:51
axwredir: looking00:51
redirnp , I'm on to make dinner, so won't be back until this eve.00:51
menn0axw: it definitely would be a lot better that way, and I am going to get to it00:51
redirHopefully, this is really close with trivials or less:)00:52
anastasiamacthumper: axw: menn0: if u have any ideas/suggestions for "server not reachable" and/or "replicaset" intermittent failures that we are seeing, it'd be great to share them now... i'd love to improve this area as part of the sprint :D01:57
lazyPowerinteresting, is there a known bug currently where you have to model-config enable-os-update && enable-os-refresh-update to false?   I'm seeing this on both gce and aws, investigating further as it pops up while testing.02:11
natefinchlazyPower: yes02:24
natefinchlazyPower: some lxd update is failing02:24
lazyPowernatefinch: ta, i was looking for it and didn't find a bug. i was about to reproduce and file one02:25
natefinchlazyPower: it's like the apt upgrade of lxd is failing or something, I forget the details, but it was not our fault, per se.02:26
lazyPowerright, bit by an SRU or something02:27
natefinchright02:27
lazyPowernot even mad just trying to be helpful :)02:27
natefinch:)02:28
natefinchanastasiamac: you around?02:28
anastasiamacnatefinch: it depends on how difficult ur question is :D02:29
natefinchheh02:30
natefinchhttps://bugs.launchpad.net/juju/+bug/162524302:30
natefinchmup: https://bugs.launchpad.net/juju/+bug/1625243 ?02:30
mupnatefinch: I apologize, but I'm pretty strict about only responding to known commands.02:30
natefinchmup help02:30
anastasiamacnatefinch: yep, i'llb mup and got it :D02:30
natefinchanastasiamac: anyway.... do you know what they're talking about? :)02:31
anastasiamacnatefinch: mostly about format of simplestreams files02:31
natefinchjuju should fix its code to know that https://identity.api.rackspacecloud.com/v2.0 Is a global URL expected to be accessed first before going to any regionalized service.02:31
anastasiamacnatefinch: tech board had fun discussing format this week too :D02:31
natefinchwhat does "accessed first" mean?02:31
anastasiamacnatefinch: if u look at endpoint url, the one we understand have v202:32
anastasiamacwithout region in it02:33
anastasiamacthe data that was supplied had region02:33
anastasiamaccomment 10 :)02:34
natefinchyes02:34
natefinchthe comment that says "we could fix this, but nah"02:34
anastasiamacyep :(02:34
natefinchso, what I don't understand is their suggested fix02:34
anastasiamacso rackpsace provider need to be modified to handle region in endpoint url ..02:34
natefinchI guess I don't understand. It's a URL.  Are we parsing it?  What does it matter if the URL has a region in it?02:35
anastasiamacmy biggest disappointment with htis, if they've fixed data, all our current implementations (including 1.25) would work02:35
anastasiamacsince we ar fixing the provider only release with the fix will work :(02:36
natefinchright02:36
anastasiamacdunno more than that.. u'll need to try it out with both our current (residing in CI) data without region and supplied data with regions.. not fun but this what I would have been doing02:37
anastasiamacto see what's wrong and why it matters...02:37
natefinchthe thing I don't understand is that the URLs they're listing in the bug don't have any data in them02:37
natefinchfor example https://iad.images.api.rackspacecloud.com/v202:37
natefinchand the url that curtis says is correct (https://identity.api.rackspacecloud.com/v2.0) just returns some xml that does not look pertinent to juju at all02:39
natefinchI also don't see a difference between the rackspace data and the rest of the clouds' data here: https://cloud-images.ubuntu.com/releases/streams/v1/index.json02:40
natefinchthey *all* have region in the endpoint url02:41
natefinch     "region": "eu-central-1",02:41
natefinch     "endpoint": "https://ec2.eu-central-1.amazonaws.com"02:41
natefinchIf I shrug any harder I'm gonna pull a muscle02:41
anastasiamacnatefinch: this looks like ec2 endpoint not rackspace.. curtis is the best person to talk about this bug :)02:42
anastasiamacoh no - don't pull muscles \o/02:42
anastasiamactalk to curtis :D02:42
natefinchno no, I know... I was showing an endpoint from another cloud that also had region in the endpoint, which they were saying was bad somehow02:42
natefinchI will talk to curtis when he gets back on.02:43
anastasiamac\o/02:43
anastasiamacm sooo happy that u r being thrown into simplestreams too :)02:43
natefinchrofl02:43
natefinchmisery loves company02:43
anastasiamac:D02:44
=== rmcall_ is now known as rmcall
axwthanks thumper03:52
thumpernp03:52
axwthumper: I replied to your q, but was perhaps a bit terse. we don't care about the lifecycle state of the units, just that none have been added or removed03:52
thumperok03:53
thumperfair enough03:53
thumperI was just wondering03:53
thumperyou are good to land03:53
axwta03:53
menn0axw: https://github.com/juju/juju/pull/6309 pls04:08
menn0axw: reviewing your other PR now04:08
veebersmenn0, thumper: list-disabled-commands now returns "''" instead of "[]" if there are no disabled commands, I imagine this is a bug and not expected?04:19
thumperno04:20
thumperI think I changed that on purpose04:20
veebersthumper: sorry, this is in format yaml/json too04:20
veeberss/too//04:20
thumpernot sure now, sorry04:21
natefinchthat's a bug.  It should only be for tabular04:21
veebersnatefinch: cool, filing now. Thanks :-)04:21
natefinchveebers: did you get that bug filed, 'cause I have the fix ready ;)  thumper?  +8 -2 https://github.com/juju/juju/pull/631004:29
axwmenn0: looking04:30
thumpernatefinch: lgtm04:30
natefinchthumper: thanks04:31
anastasiamacnatefinch: bug 162682404:33
mupBug #1626824: list-disabled-commands  returns "''" instead of "[]" for json/yaml format <ci> <regression> <ui> <juju:Triaged> <https://launchpad.net/bugs/1626824>04:33
axwmenn0: LGTM04:33
menn0axw: thanks. I now it's a backport but it was different enough that I thought it needed a review04:33
veebersnatefinch: yep, https://bugs.launchpad.net/juju/+bug/162682404:36
mupBug #1626824: list-disabled-commands  returns "''" instead of "[]" for json/yaml format <ci> <regression> <ui> <juju:Triaged> <https://launchpad.net/bugs/1626824>04:36
veebersanastasiamac: hah, I'm to slow04:36
anastasiamacveebers: :) nps04:38
menn0axw: just a few minor things for yours. ship it!04:40
axwmenn0: thanks04:40
axwmenn0: you really want me to add docs to each method on Backend and friends? can I just say "go look at the state package"?04:42
menn0axw: just describe the interfaces briefly (referring to state if that makes sense)04:43
axwmenn0: ok04:43
menn0axw: and maybe "<blah> implements <blerg>" for the method implementation (although I'm fairly +0 on that)04:43
menn0implementations04:43
axwmenn0: okey dokey04:44
natefinchveebers: fix landed, will be in next release04:59
thumperI get this periodically05:11
thumperERROR cannot resolve charm URL "cs:xenial/ubuntu": cannot get "/xenial/ubuntu/meta/any?include=id&include=supported-series&include=published": Get https://api.jujucharms.com/charmstore/v5/xenial/ubuntu/meta/any?include=id&include=supported-series&include=published: dial tcp: lookup api.jujucharms.com on 127.0.1.1:53: server misbehaving05:11
thumperI think we should have a retry around the charmstore access05:11
thumperwhy does the ubuntu charm install g++ ?05:14
thumperit is getting build-essential05:14
thumperand python3.5-dev05:15
thumperseems weird05:15
* thumper waits for them all to finish05:16
thumperwell that didn't work05:20
thumperah fuck...05:22
* thumper calls it a day05:40
thumperlater folks05:40
axwanastasiamac: do you have time for a review?05:47
anastasiamacaxw: i wish but not really ;( m only marginally here - ghossting..05:48
axwanastasiamac: np05:48
axwmenn0: are you EOD yet?05:48
menn0axw: not quite05:48
axwmenn0: if you have time, would appreciate a review on https://github.com/juju/juju/pull/6311.05:49
axwdoh, doc string updates snuck in05:49
menn0axw: looking05:49
menn0axw: done05:55
menn0axw: all good05:55
axwmenn0: thanks05:59
=== frankban|afk is now known as frankban
menn0axw: Clean ups of uniter temporary download files: https://github.com/juju/juju/pull/631407:41
axwmenn0: cool, looking07:42
menn0axw: I just added some comments to the change about possible improvements. pls review anyway though.07:45
mupBug #1626878 opened: ERROR juju.worker.dependency engine.go <juju-core:New> <https://launchpad.net/bugs/1626878>07:50
axwmenn0: reviewed07:58
mupBug #1626878 changed: ERROR juju.worker.dependency engine.go <juju-core:New> <https://launchpad.net/bugs/1626878>08:05
mupBug #1626878 opened: ERROR juju.worker.dependency engine.go <juju-core:New> <https://launchpad.net/bugs/1626878>08:08
=== jamespag` is now known as jamespage
babbageclunkhey menn0, I think I found it!09:53
babbageclunkhttps://github.com/juju/juju/blob/master/state/cleanup.go#L15509:54
babbageclunkmenn0: ^09:54
* menn0 is about to watch something :)09:59
menn0babbageclunk: that's awesome though!09:59
menn0I don't see the problem though :-/10:00
babbageclunkmenn0: It deletes settings non-transactionally. If you're unlucky, you get this sequence: cleanup queued, undertaker runs, makes remove settings txn, cleanup runs, txn gets stuck.10:05
babbageclunkmenn0: I think10:05
babbageclunkmenn0: Making a binary now to get Jason to try it.10:06
babbageclunkmenn0: Isn't it a bit late to start watching something!? Kids don't sleep later on weekends.10:07
babbageclunk:)10:07
babbageclunkI guess he went to bed10:08
voidspacefrobware: ping10:16
voidspaceperrito666: ping10:16
perrito666voidspace: pong10:16
perrito666voidspace: be kind I am barely conscious10:17
voidspaceperrito666: babbageclunk says you had an issue with maas2Instance.Status being effectively cached and not updated per call10:17
voidspaceperrito666: heh10:17
voidspaceperrito666: are you fixing that or working around it?10:17
perrito666voidspace: i thought it was that, but it might be something else, I fixed the call to be not cached anyway10:17
voidspaceperrito666: I wonder if it is behind the problem at Telefonica that frobware, macgreagoir and I have been looking at10:18
frobwarevoidspace: pong10:18
voidspaceperrito666: is it landed?10:18
voidspacefrobware: I'm wondering whether an issue that perrito666 found is behind the telefonica issue10:18
voidspacefrobware: it doesn't *entirely* fit with the logs, so I'm still trying to dig into it10:18
perrito666voidspace: it is not landed, can you describe the problem?10:18
voidspaceperrito666: basically a maas2Instance.Status call always returns the same value (the status when the maas2Instance was created)10:19
voidspacefrobware: basically a maas2Instance.Status call always returns the same value (the status when the maas2Instance was created)10:19
voidspaceperrito666: oops, that was meant to go to frobware10:19
voidspaceperrito666: we're seeing delayed provisioning on maas10:19
voidspaceperrito666: making a large delay very slow10:19
voidspaceperrito666: frobware: so if somewhere in the code is polling Status waiting for it to change, then it won't10:20
perrito666well I have both problems, not enough polling and the status being cached anyway10:20
perrito666so I started by fixing the not enough polling10:20
frobwarevoidspace: heh, interesting. in trying to repro locally I think my MAAS setup is truly borked atm10:20
voidspaceperrito666: frobware: I can't find any polling in the code yet, but the code paths are quite convoluted10:20
voidspacefrobware: :-(10:20
voidspaceperrito666: when do you think your fix will land?10:20
frobwareperrito666: happy to be a guinea pig before then10:21
voidspaceperrito666: I wonder if we can get binaries to them to check if this fixes the issue10:21
voidspacefrobware: it's provider/maas/maas2Instance.go:#L6810:21
perrito666voidspace: let me push up my changes10:21
voidspacefrobware: perrito666: it looks like this is called by the provisioner_task in classifyMachine10:22
voidspacefrobware: hard to see if it's polling though10:22
voidspacefrobware: the Status is checked if InstanceId errors, which it does if there is no real maas machine yet (so no instance data)10:23
voidspacefrobware: and we do have "found machine pending provisioning" log lines from that code path10:23
perrito666voidspace: its something cherilj added some time ago10:23
voidspaceperrito666: what, polling?10:23
perrito666polling of the underlying status for useful return iirc10:24
voidspaceright10:24
voidspaceso it *could* be the problem10:24
perrito666voidspace: that is half of my problem solved https://github.com/perrito666/juju/tree/fix_160496510:24
perrito666I am now trying to figure where are we exactly refreshing since my problem is that failed machines never gets marked as so10:24
voidspaceright10:25
voidspaceperrito666: you probably want to delete the TODO as well.10:30
voidspacefrobware: worth trying that branch to see if it fixes the issue10:30
frobwarevoidspace: yep, need to get a working MAAS2 atm10:31
voidspacecool10:31
perrito666voidspace: true, sorry was not thiking on uploading that :p10:32
voidspaceheh10:32
babbageclunkfrobware: You've done this lots - is sending someone a binary to run just zipping up juju and jujud? Anything else to send?11:04
frobwarebabbageclunk: I do11:05
frobwarebabbageclunk: cd ~/go11:05
frobwarebabbageclunk: tar -cvf ~/juju-2-0-rc1-for-brad.tar --transform='s!^!juju-2.0-rc1-for-brad/!' bin/juju*11:05
frobwarebabbageclunk: at least then it has a path in it when you untar11:05
babbageclunkfrobware: Awesome, thanks.11:06
frobwarebabbageclunk: it's also handy to s/bard/for-git-commit-sha1/11:07
frobwarebabbageclunk: and to complete the metacircular evaluator, s/bard/brad/11:07
babbageclunkfrobware: lol. In words, you mean, it's handy to include the git hash so you know what code they're running?11:08
frobwarebabbageclunk: yup.11:08
babbageclunkfrobware: Will do11:08
frobwarebabbageclunk: we should change our build to include this11:09
babbageclunkfrobware: Do I need to tell the recipient to use -build-agent? Will that work without the source?11:31
frobwarebabbageclunk: I haven't mentioned it for binaries I've given away11:32
babbageclunkfrobware: So hopefully it just does the right thing? I'm a bit nervous because I'm building off the beta18 tag and in my testing it kept trying to use the stream version unless I passed --build-version11:33
frobwarebabbageclunk: if you bootstrap with debug does it not show that it's using the juju from your $PATH?11:34
babbageclunkNo, it says http://paste.ubuntu.com/23219686/11:38
babbageclunkfrobware: ^. I might rebase onto tip just to be sure.11:39
frobwarebabbageclunk: doesn't it say all the anyway; I think if you do: $(which jujud) -- and grep for that in the debug output11:41
babbageclunkfrobware: No, that definitely doesn't appear.11:48
frobwarebabbageclunk: hmm. so, with -build-agent?11:48
babbageclunkfrobware: The sha1sums don't match either (although I guess they might not with --build-agent either).11:49
babbageclunkfrobware: Huh, with build-agent they do.11:49
frobwarebabbageclunk: TIL11:50
babbageclunkfrobware: That could just be that go didn't touch the binary because everything was up to date.11:50
babbageclunkfrobware: Ok, a quick scan of the code suggests that it'll use jujud from beside the running juju binary as long as it matches the version. So I think --build-agent is the right thing.11:57
mupBug #1627015 opened: no way to specify additional storage for controller(s) <juju-core:New> <https://launchpad.net/bugs/1627015>13:18
mupBug #1627015 changed: no way to specify additional storage for controller(s) <juju:Triaged> <https://launchpad.net/bugs/1627015>13:24
rick_h_frobware: voidspace natefinch ping for standup14:01
voidspaceomw14:01
voidspacerick_h_: gah, browser hang14:02
mgzhangout just dropped me...14:03
voidspacerick_h_: browser hang again - I can hear everyone but currently can't unmute!14:04
redirmorninf15:41
redirhad one of those mornings where system wouldn't display fonts after resume.15:41
natefinchlol15:41
redirthen wouldn't resolve dns after reboot15:41
redirit was a two reboot morning15:42
natefinchdang15:42
natefinchspeaking of which, my "hangs for 7 minutes after reboot" problem mysteriously went away after 2 months of me never rebooting. :)15:43
alexisbredir, you system is trying to tell you it is friday15:43
redirright. I better update and reboot everything before I leave tomorrow15:43
redirI feel a little lenient toward this machine not always working right. I't has been getting every upgrade since 2013, including betas15:44
redirspeaking of, i it time to upgrade to yakkety yet?15:45
rediralso have this ongoing issue where chromium doesn't display jpegs, on multiple different systems. Works on arch though.15:53
* redir quits whinging and gets to being productive15:53
voidspacefrobware: ping16:44
frobwarevoidspace: pong - otp16:45
voidspacefrobware: ok, answer when you get a chance (you may not know anyway)16:46
voidspacefrobware: I'm trying to deploy a lxd (to the juju controller machine for convenience) and I get this error in the logs:16:46
voidspacemachine-0: 17:39:57 ERROR juju.worker.proxyupdater lxdbr0 has no ipv4 or ipv6 subnet enabled16:46
voidspaceIt looks like your lxdbr0 has not yet been configured. Please configure it via:16:46
voidspacesudo dpkg-reconfigure -p medium lxd16:46
voidspaceand then bootstrap again.16:46
voidspacefrobware: there is no lxdbr0 of course16:46
voidspacefrobware: and so the container is forever stuck in pending16:47
frobwarevoidspace: i'm back17:02
frobwarevoidspace: on MAAS?17:02
frobwarevoidspace: are you using rc1/17:03
=== frankban is now known as frankban|afk
rick_h_natefinch: ping, did you get your info and unblocked on things?17:36
natefinchrick_h_: yeah, I got it.  The descriptions in the bug were evidently only one side of a conversation, more or less :)17:38
rick_h_natefinch: ok cool, thanks17:38
mupBug #1627138 opened: unable to bootstrap on openstack provider <juju-core:New> <https://launchpad.net/bugs/1627138>18:16
mupBug #1627138 changed: unable to bootstrap on openstack provider <juju:New> <https://launchpad.net/bugs/1627138>18:31
mupBug #1627138 opened: unable to bootstrap on openstack provider <juju-core:New> <https://launchpad.net/bugs/1627138>18:40
mupBug #1627138 changed: unable to bootstrap on openstack provider <juju:New> <https://launchpad.net/bugs/1627138>18:46
natefinchgood lord bzr + launchpand is slow.19:42
natefinchanyone online know how to set up credentials for rackspace?  It's asking for domain name, and that isn't described in our docs19:46
natefinchgah, when you bootstrap rackspace, all the error messages talk about Openstack.19:49
natefinchholy hell.  bootstrapCommand.Run is an almost 500 line function.20:22
redironly 500?20:23
natefinch:/20:24
redirsorry natefinch I don't know about bootstrapping rackspace.20:25
natefinchredir: it's ok.... either it doesn't matter or my bug is occurring before that field is checked :)20:25
natefinchI am using delve for the first time ever, and it's amazing.  Running it in Visual Studio Code is almost as good as debugging C# with the real Visual Studio.... and that's saying a lot for me.20:26
redirnatefinch: that is saying something.21:48
redirbut I've not debugged C# or used visual studio21:48
rick_h_natefinch: leave off the domain name? thought that was not needed21:51
rick_h_natefinch: search our bugs for domain name, thought there was one about removing it21:52

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