/srv/irclogs.ubuntu.com/2018/05/08/#juju.txt

babbageclunkwpk: Uh, I don't think you'll be needing your data after a gamma ray burst. https://www.youtube.com/watch?v=RLykC1VN7NY00:02
veebersanastasiamac, babbageclunk are there any other clouds that need special treatment on 'add-cloud', specifically details stored on the controller?00:58
anastasiamacveebers: when u say 'other clouds', which ones u've catered for?..00:59
veeberscurrently add-k8s updates the controller with details, and is listed in 'juju clouds', but if you bootstrap another controller that controller does not have those details (yet 'juju clouds' lists the add-k8s added cloud)00:59
veebersanastasiamac: I'm looking at the add-k8s command and it seems to do some 'special' things01:00
anastasiamacveebers: it is the only special one that i know of... :)01:00
babbageclunkveebers: not that I know of.01:00
veebersack, I had assumed so :-)01:00
veebersanastasiamac, babbageclunk: A controller should be able to have different models in different clouds right? Or are there restrictions? I've bootstrapped in lxd and add-cloud a new lxd cloud (just with a different name) but add-model chokes on it, it's not a clouds supported by that controller01:47
veebersah, it doesn't like any other cloud other than the localhost (and k8s if added)01:48
babbageclunkveebers: no, generally a controller is one cloud only (although I guess caas relaxes that slightly).01:48
veebersbabbageclunk: ack ok that makes sense.01:49
veebersbabbageclunk: so, add-k8s adds details to the (currently selected) controller which means that if you bootstrap a different controller you'll need to add-k8s again, but that would fail as it's locally stored too. That seems odd, right?01:49
veebersI was wondering if perhaps the controller needs some sort of JIT cloud up details update (like when you add a model for that cloud) or perhaps this is expected behaviour that needs fleshed out a bit01:50
babbageclunkveebers: yeah, that seems odd.02:00
babbageclunk(sorry for slow response.)02:01
babbageclunkI'm not sure about the last point02:01
veebersbabbageclunk: no worries I know you're busy :-) I'll update the bug and email to try get clarity on it02:02
anastasiamacveebers: i think that will fail because at the moment u can only locally add a controller once.. in this case, it's still the same controller02:04
veebersanastasiamac: I don't understand that, adding a controller?02:05
anastasiamacveebers: the fix is no simple... bthe same happens with controller registration, for e.g. u cannot run 'juju register' on the same client more than once02:05
anastasiamacveebers: to rephrase (without typos...): at this stage, any given client can only b 'aware' of any given controller once02:07
veebersanastasiamac: I think that's  a slightly different issue to what I'm looking at. add-k8s updates the controller with cloud details (stored in the db), but it only does that with the active controller, any others (and any newly boostrapped ones) will not contain that detail.02:13
veebersanastasiamac: which means that if you "bootstrap test1, add-k8s blah, bootstrap test2, add-model -c test2 blah" it'll fail because test2 controller doesn't have the k8s details, except "juju clouds" will list it among available clouds02:14
veebers*but* maybe that's somewhat expected? that a k8s cloud is added to a controller and not a juju config? (if that is the case it needs more work to clarify and harden that)02:14
anastasiamacveebers: oh yes, of course :) my understanding is that 'add-k8s' is equivalent to enabling a controller to be k8-compatible... u need to be explicit... so only controllers that u have explicitly 'switched on to b k8 compatible' will have the ability02:16
anastasiamacveebers: bu tbh, dunno if in ur scenario u can assume that test2 has the ability...02:16
anastasiamacmaybe if u boootstrap both first, then add-k8s they may both be k8-compatible... but that makes no sense either...02:17
veebersanastasiamac: ack, that's not completely outrageous, but there is some cleanup work needed around that area02:17
anastasiamacveebers: i think if we could specify what controller we r making k8 compatible explictly, that might clear up the mud ;D02:18
veebersanastasiamac: it almost feels like it should be a 2 stage process, add the k8s-cloud and enable a controller02:18
anastasiamacveebers: yes ^^02:18
anastasiamacveebers: altho, does it make sense to enable 2 controllers to use the same k8s? dunno...02:18
veebersanastasiamac: but even then you couldn't have 2 controllers looking at the same k8s cluster. Perhaps that's expected though02:18
veebersanastasiamac: hah, jinx, asking the same question at the same time02:19
anastasiamacveebers: :) there must b a delay btw our thinking but we r on the same page, which is a +02:19
anastasiamac:D02:19
anastasiamac:D :D02:19
veebers^_^02:19
veebersanastasiamac: huh, I lied (well, only just now tried). add-k8s won't fail if you run it for a different controller (new controller is updated)02:28
anastasiamacveebers: \o/ someone must have travelled the same road we r  :D02:29
veebersanastasiamac: so I have a single character change I might put up for PR, or should I wait and put it in a different (unrelated) PR to make it "worthwhile"?03:53
veebersI think a single char PR woudl be fine03:53
babbageclunkbetter than fine!03:53
veebers"It's better than bad, it's good!"03:54
babbageclunkAll kids love log!03:54
anastasiamacveebers: :) we do prefer isolated changes :D but single char PRs are kind of like a treat :003:55
babbageclunkkelvinliu_: I think your PR looks great - I don't have any more to add over what anastasiamac said. Having a warning so we don't just silently ignore what the user's tried to set is good too.04:05
babbageclunkgah, I think I'm going crazy here - does anyone have a moment to talk something through?04:06
anastasiamacbabbageclunk: i do04:06
babbageclunkanastasiamac: awesome - in standup?04:07
anastasiamack04:07
veebersCan I get a +1 please? https://github.com/juju/juju/pull/867604:13
kelvinliu_thx babbageclunk .04:19
babbageclunkanastasiamac: thanks you're a genius!04:23
kelvinliu_anastasiamac, babbageclunk updated the PR, appreciate if you could take a look. thx https://github.com/juju/juju/pull/867504:23
babbageclunkveebers: looking, then I'll look at yours kelvinliu_04:23
anastasiamacveebers: i've commented too... are you sure?...04:24
veebersanastasiamac: ah shit, I changed the wrong command 0_004:25
anastasiamacveebers: \o/04:25
veebershahaha, how can one of the simplest PRs be wrong04:26
anastasiamac:)04:26
veebersanastasiamac: thanks for the catch, I've push -forced so no one will ever know it took 2 commits to get that right >_>04:27
kelvinliu_while testing my PR, I found bug on caas, https://bugs.launchpad.net/juju/+bug/176980604:27
mupBug #1769806: infinitely scale up k8s managed units after upgraded controller <juju:New for kelvin.liu> <https://launchpad.net/bugs/1769806>04:27
veeberskelvinliu_: in that bug the first command is "kubectl get all -n testcaas" and the 2nd "kubectl get all -n testcaas1" is that extra '1' on purpose?04:29
anastasiamacveebers: nws, checking now :)04:30
veebersanastasiamac: ah great, your comment on the PR is visible for all to see now, I can't get away with it :-)04:30
anastasiamacveebers: ah babbageclunk beat me to it :)04:31
anastasiamacveebers: but the important thing is the content, surely :D04:31
anastasiamacveebers: FWIW, it was not an easy to pick up, thank you for seeing it with ur eagle eye (and fixing it!!)04:32
veebersanastasiamac: surely pride first, then correctness ;-)04:32
kelvinliu_veebers, good finding! updating04:34
babbageclunkkelvinliu_: approved, a couple of minor wording tweaks.04:37
anastasiamachaha, veebers, that might explain how proud ppl can be wrong :)04:37
anastasiamac(not that it applies to this case, of course!!) :-)04:37
veebers^_^04:37
kelvinliu_babbageclunk much better msg. updated, thx04:41
anastasiamacbabbageclunk: PTAL when u get a chance -   https://github.com/juju/juju/pull/867705:01
anastasiamac(the actual interesting bits with call back)05:02
babbageclunkanastasiamac: ok, looking05:02
anastasiamac\o/05:03
veeberskelvinliu_: you may be intersted in my comments on bugs https://bugs.launchpad.net/juju/+bug/1768847 and https://bugs.launchpad.net/juju/+bug/176884505:13
mupBug #1768847: add-k8s requires a model <add-k8s> <caas> <k8s> <juju:Triaged by veebers> <https://launchpad.net/bugs/1768847>05:13
mupBug #1768845: add-k8s incorrectly reports "cloud already exists" <add-cloud> <add-k8s> <caas> <k8s> <remove-cloud> <juju:Triaged by veebers> <https://launchpad.net/bugs/1768845>05:13
manadartjam: I have a holiday here today, but I opened https://github.com/juju/juju/pull/8678 for 2.3.05:35
manadartWill likely drop by for today's stand-up too.05:35
jamhi manadart, enjoy your day off05:39
jamthanks05:39
jammorning all05:39
babbageclunkmorning jam, welcome back!05:41
jamhi babbageclunk05:41
jamthanks05:41
jambabbageclunk: how's it going in Juju land?05:41
babbageclunkjam: goooood? I'm still bashing my head on raft clustering.05:42
jambabbageclunk: would it help to talk through it? I've done at least some of it for Mongo, so I might have enough context to help05:43
babbageclunkjam: yeah, that would be really great, but I can't tonight - need to rush off soon. Can we do tomorrow?05:44
babbageclunkjam: yay, I just saw my cluster recovery thing actually work!05:46
jambabbageclunk: nice ! Give me a ping tomorrow. I'm happy to chat if I have time. I'm not sure if ian and tim are back around for meeting at 4UTC, and then I have to take my dog to the vet at 6UTC, but if we can find a time, I'm happy to chat.05:46
babbageclunkjam: ok, awesome, thanks!05:47
jambabbageclunk: if you have code you want me to look at, you could push it up as WIP, or something.05:48
babbageclunkjam: yeah, I'm going to push it up now - I'll send you a link.05:48
babbageclunkneeds some tidying to remove the huge amount of debug logging I just added.05:49
babbageclunkjam: ran out of time, I'll create a WIP PR when I get back later this evening06:44
magicaltroutmulti monitor support in 18.04 is absolutely abysmal :)09:03
babbageclunkhey jam, here's the WIP PR: https://github.com/juju/juju/pull/868010:43
* babbageclunk goes to sleep10:44
jamexternalreality_: for bug #1761706 I know we landed your patch for develop, did you also backport it to 2.3 ?13:49
mupBug #1761706: Bootstrap on Openstack fails if there is an IPv6 subnet <juju:Fix Committed by ecjones> <juju 2.3:Triaged by ecjones> <https://launchpad.net/bugs/1761706>13:49
jamand/or *can* you backport it?13:50
externalreality_jam, checking13:51
externalreality_jam, looks like it was already backported: https://github.com/juju/juju/pull/863013:53
jamexternalreality_: thanks, we just didn't update the bug13:55
externalreality_jam, my fault. I just saw that, and updated to fix-committed.13:55
jamthanks13:56
=== freyes__ is now known as freyes
admcleod_i see 2.3.8 is candidate in the snap store, when would that go to stable?14:26
rick_h_admcleod_: not sure. We just put out .7 and the .8 will be tracking the 2.3 trunk as it moves forward14:28
rick_h_admcleod_: something in there you're waiting on?14:28
admcleod_yep bug..14:29
admcleod_176317 and ...14:29
admcleod_176557114:29
admcleod_that doesnt look right does it14:29
rick_h_no, not quite14:30
admcleod_1764317 and 176557114:30
rick_h_admcleod_: ah, there's one more bionic bug that needs to land for that. I'm not sure what timeline it'll be.14:30
rick_h_admcleod_: once that's done we can make sure to work to time a release witht he bionic fixes in place14:30
admcleod_rick_h_: yeah - would be great to start that before next tuesday14:48
rick_h_admcleod_: k, ty for the feedback there. What's next Tues?14:48
admcleod_rick_h_: openstack charm freeze14:51
rick_h_admcleod_: ah ok14:51
admcleod_rick_h_: how would i know if those backports on the bugs, to 2.3.8, are in the snap candidate? any way for me to find out?14:52
rick_h_admcleod_: looking14:53
admcleod_thanks!14:53
rick_h_admcleod_: so the snap info shows the git sha on the end there and that matches up to the latest commit in the 2.3 tree here: https://github.com/juju/juju/commits/2.314:54
admcleod_ah!14:54
rick_h_admcleod_: I see the lxd init one there, looking for the second one14:54
rick_h_admcleod_: looks like those two bugs are the last two commits just landed in the last 6hrs so they're fresh14:55
rick_h_admcleod_: you're just bleeeeeeding edge heh14:56
admcleod_awesome14:56
admcleod_thanks rick14:56
rick_h_np14:56
TheAbsentOneHi all, I once again (sorry for that) ask for some help when writing a charm and an interface layer. It seems I still fail to grasp everything. I start prototyping the main aspects on this page: https://github.com/Ciberth/Logboek-Thesis/blob/master/prototyping.md Could someone take a quick look to see if this is the right way and if my reasoning is correct? Once i get home I'll try building everything and putting repo's online, 15:35
bdxTheAbsentOne: you are getting warmer for sure15:59
bdxTheAbsentOne: have you followed the charm authors docs and built the vanilla charm?16:00
TheAbsentOneyeah more or less on a smaller project bdx gotta run now though Im back in an hour16:01
bdxTheAbsentOne: https://jujucharms.com/docs/stable/developer-getting-started16:01
bdxshould solve all your problems if you understand whats going on ^16:02
TheAbsentOnebdx: I'm just having troubles with writing the interface layer properly I think,16:02
bdxtotally16:02
bdxcan you go through ^ example a few times please?16:02
bdxI think it may serve you well16:02
bdxTheAbsentOne: this too https://jujucharms.com/docs/stable/developer-layer-example16:03
TheAbsentOneSure I'll reread it first, then create the repo's and go from there. I'll get back to you,16:03
TheAbsentOnethough I think I know these docs by heart by now xD16:03
bdxTheAbsentOne: you shouldnt need to create any interfaces16:04
bdxthey already exist16:04
bdxsee how its done in the vanilla charm example^16:04
TheAbsentOneoh but I do sir, I really need the ability to have a generic-database inside a requires/provides from the metafile for my use cases bdx (back in an hour or so)16:06
rick_h_what's up bdx?16:16
bdxrick_h: what's going on???16:20
bdxI'm breaking the qtrly budget getting these blades ordered for the openstack, writing company docs like a mad man, snapping and charming everything in sight16:21
bdxyou know16:21
bdxthe usual16:21
bdx:)16:21
bdxrick_h: you back in the states?16:21
bdxthinking about just making these public https://imgur.com/a/lgEkHKn16:22
bdxtalking to the guys doing ceph at GARR about a little collab on some intro -> advanced juju ceph and openstack operations documentation, hoping to fold in my hoard ^16:24
bdxcurrently working on an xpak subordinate for the elastic stuff16:26
rick_h_bdx: sorry, made some tea :)16:27
rick_h_bdx: yea, back home and working on TZ adjustments16:27
rick_h_bdx: nice on public-fying fun stuff16:27
rick_h_reminds me, i need to figure out what I'm doing for the show tomorrow.16:36
rick_h_cory_fu: you going to be around? want to show off that aws stuff?16:37
sfeolerick_h_, hey, just fyi , juju2.4-beta2 daily appears to have working bionic lxd containers: https://pastebin.ubuntu.com/p/mqbZR4BsNz/17:18
sfeole:)17:19
rick_h_sfeole: yea, that's got the same two fixes in there17:19
sfeolerick_h_, just fyi, i'm using it today, figured i would let you know17:19
sfeole:)17:19
admcleod_rick_h_: just confirmation17:19
rick_h_sfeole: nice to see, awesome!17:19
rick_h_externalreality_: manadart ^17:20
rick_h_admcleod_: sfeole so the one thing known out is an issue with bonds and bionic (in case you tinker with that)17:21
sfeolerick_h_, i don't actively but will keep that in mind17:21
bdxfew random questions17:46
bdxin 2.4, will juju opt to install lxd from a snap, or will it continue to install lxd from apt?17:47
bdxalso, will it be possible to use custom storage pools with juju deployed lxd instances in 2.4?17:48
bdx`juju deploy ubuntu --to lxd:0` - I want the lxd to use storage backed X17:49
bdxbackend*17:49
bdxpossibly these things will be taken into consideration as lxd 3.0 sinks in over the next amount of time17:50
rick_h_bdx: so, not sure on install from snap. We'll have to look and see. The one thing that makes me nervous is the story behind the firewall off the top of my head, but it's something that's got to be done/figured out at some point17:58
rick_h_bdx: as far as custom storage, there's a roadmap item for the next cycle to improve lxd 3 support including constraints/instance types, remote clusters, and some profile customization methods17:58
rick_h_bdx: I'll note that as part of the conversation there17:59
bdxrick_h_: awesome, thx18:51
thumpermoring team20:22
thumperor morning20:22
TheAbsentOnehi, goodnight x)20:27
veebersMorning all o/20:35
veebershey thumper how's things?20:35
TheAbsentOnebdx: still here by any chance?20:40
TheAbsentOneWhen I try to build a charm that uses a local interface, I get the error that build doesn't find the interface, but when I echo $JUJU_REPOSITORY everything is exported correctly, did I miss something?20:40
bdxTheAbsentOne: did you also export LAYER_PATH and INTERFACE_PATH20:43
bdx?20:43
TheAbsentOneyep both echo fine bdx20:47
bdxTheAbsentOne: is your interface under $INTERFACE_PATH?20:48
bdxTheAbsentOne: can you paste the output of `ls -la $INTERFACE_PATH | pastebinit`20:49
TheAbsentOnehttps://www.dropbox.com/s/arwlx108kjgys51/tempinterfacerror.png?dl=0 bdx20:50
TheAbsentOnebdx: paste.ubuntu.com/p/S6Y4gP8wwN20:51
TheAbsentOneow sorry: https://paste.ubuntu.com/p/S6Y4gP8wwN/ *20:52
TheAbsentOneIt's not like you need to build or anything an interface right?20:53
bdxTheAbsentOne: `mv $INTERFACE_PATH/generic-database-layer $INTERFACE_PATH/generic-database`20:55
bdxTheAbsentOne: then try building your layer20:56
babbageclunkhey thumper, welcome back!20:57
TheAbsentOnebdx: oh god ofcourse, I'm retarded, thanks so much20:57
bdxnp20:57
TheAbsentOneso stupid >.<20:57
thumperveebers: things are generally good20:58
thumperalthough jet lag has hit me particularly hard this time20:58
bdxTheAbsentOne: its a common mistake, no worries - I think there is an initiative to infer the interface from the name in the interface.yaml file instead of the name of the directory20:59
bdxnot sure what ever happened to it20:59
bdxlet me see if I can find it20:59
TheAbsentOnethat would be interesting, to be honest I thought that was the case first bdx21:00
bdxTheAbsentOne: totally, I feel it should be too21:01
veebersthumper: "generally good", very ominous :-) hopefully the lag wears off shortly21:01
wpkthumper: bists du ein berliner?21:01
TheAbsentOnebdx: like in my case I have a repo called "generic-database" which is my charm and not my interface but this might become confusing when using the interface "generic-database"21:01
bdxtotally21:02
bdxTheAbsentOne: I've found prefixing the layer, interface, bundle, snap repo name with what they are, see how I do them here https://github.com/omnivector-solutions21:04
TheAbsentOnebdx: I have another remark/question. The output of the build now states: "build: layer.yaml includes generic-database-layer which isn't used in metadata.yaml" where does he get's this from?21:05
TheAbsentOnebdx: yeah I might have to rename them idd, good tip21:06
bdxahh, look at any of the layers ^^ and look at the metadata.yaml and see how it defines the interface under either the requires or provides stanzas21:06
TheAbsentOnethe metadata defines it as "interface:generic-database"21:06
TheAbsentOnethat "generic-database-layer" is never used or typed only in folder name21:07
bdxTheAbsentOne: link to the repo?21:07
TheAbsentOnehttps://github.com/Ciberth/generic-database-layer is the interface, https://github.com/Ciberth/consumer-app uses it at requires side, https://github.com/Ciberth/generic-database uses it at provides side21:09
TheAbsentOneI find it weird that the build procedure even finds that21:09
TheAbsentOnebdx: maybe it does take the name from the interface.yaml; I made a mistake there!21:12
bdxok21:12
bdxthats what I thought21:12
TheAbsentOneyep that was it! Maybe I should call it a day and sleep haha xD thanks again though bdx21:13
bdxnp21:14
babbageclunkveebers: hey, did you work out what was happening with the problem you were seeing with CMR and percona-cluster?22:34
veebersbabbageclunk: not yet still working on it, annoying as the test I run to uncover it takes *ages*22:37
babbageclunkveebers: sucks22:37
babbageclunkI mean, the slow test meaning it's hard to investigate22:37
veebersbabbageclunk: I'm trying to narrow down the commit range to narrow down where to look for the issue (I'm not familiar enough with the codebase to make a fully educated guess based on symptoms)22:37
veebershah ^_^22:38
babbageclunkWhat's the time range/commit range?22:38
babbageclunkI can have a look at a list of commits to see if there's anything poignant to suggest good starting places.22:39
veebersbabbageclunk: hah so far between the macaroon version bump (works) and the catacomb tomb v1 ->v2 change. Somewhere there :-) Narrowing it down now22:39
veebersbabbageclunk: am I correct in thinking that ControllerCommandBase commands are commands that take "-c <controller>" args and act on a controller (as opposed to a hosted model)23:13
babbageclunkveebers: yup23:13
veeberssweet, cheers23:14
vinobabbageclunk: just a quick note - I didnt fix in the way we discussed on Monday(adding one more upgrade step for 2.4). I can explain u what happens around that code part.23:58
babbageclunkvino: ok, let me have a read through the PR and we can talk about it23:59

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