/srv/irclogs.ubuntu.com/2018/04/13/#juju-dev.txt

anastasiamacwallyworld: thumper: if u get a chance, PTAL https://github.com/juju/juju/pull/8586 - that's worker/manifold for cred watching00:07
wallyworldanastasiamac: yeah, just finished meetings, starting my reviews now00:08
anastasiamacwallyworld: \o/00:08
anastasiamacbabbageclunk: i haven't :D00:09
anastasiamacbabbageclunk: but i wonder if rick_h_ has :D00:09
rick_h_What has Rick done now?00:12
rick_h_I bootstrapped from a Mac today hml00:13
anastasiamacrick_h_: \o/ i think hml eod'ed but it's good to know :) thnx !!00:24
rick_h_anastasiamac: is that what you wanted to know? It wasn't babbageclunk  but seemed only question00:25
anastasiamacrick_h_: yes, i think so :)00:25
wallyworldanastasiamac: review done, a few little things to look at00:39
anastasiamacta00:55
thumperbabbageclunk, wallyworld: small(er) branch https://github.com/juju/juju/pull/8591 ??01:47
* thumper walks up to physio01:52
babbageclunkthumper: looking01:54
vinowe follow gnu style flag parsing correct  for all the juju commands02:24
vinosome options doesnt work that way like model.02:24
vino--model="default" or -m="default"02:25
vinoboth should work02:25
vinoi do see the first one works fine but not the second02:27
vinosorry -m "default"02:28
vinomy fault i didnt notice the '=' there02:28
vinohas anyone has idea abt the --output option ?02:29
vinoit is supposed to write the output to file02:29
babbageclunkvino: on which command?02:30
vinojuju run02:32
vinothis output option doesnt write to any file that i specify. not sure if i am missing something02:32
babbageclunkI've never tried it, tbh02:32
vinommm... i will raise this a bug.02:33
babbageclunkyeah, I think you're right - doesn't work for me either02:34
thumperwhat's this?02:35
vinojuju run command02:35
thumper--model default, --model=default and -m default should all work02:35
vinoyes yes. i missed the'=' by mistake02:36
vinoi identified it myself02:36
vinobut we are talking abt the outout option02:36
vinooutput*02:36
thumperjuju run --machine 0,1,2 juju-presence-report -o ~/sandbox/foo.yaml02:37
thumperjuju run --machine 0,1,2 juju-presence-report --output ~/sandbox/foo2.yaml02:37
thumperboth work for me02:37
thumperwhat is your command line?02:38
babbageclunkthumper: it looks like if you only specify one target (or specify --all and only have one machine, frex) it writes to stdout rather than writing through c.out02:39
thumperah...02:39
thumperyeah...02:39
* thumper nods02:39
thumperI remember writing that02:39
thumperthat should be fixed I guess02:40
vinoyes.02:40
thumpervino: lucky you, you have found yourself another bug to fix :)02:40
thumpervino: that one should be quite simple02:41
vinoyup.02:41
thumperbabbageclunk: did you want to talk about presence?03:00
babbageclunkOh no - sorry, got distracted and went back to my own stuff.03:00
babbageclunkthumper: I read through it, looked good - I'm approving it now03:01
veeberswallyworld: if we can get a +1 on this we can finally get it landed :-) https://github.com/juju/juju/pull/849803:01
thumperbabbageclunk: sweet, I've just fixed the manifold tests, where I hadn't added the names03:01
babbageclunkoh yeah, those ones always get me too.03:01
thumperI'm not going back to the threading the presence code through the apiserver03:02
thumperfun for the friday afternoon03:02
babbageclunkoh man, it's annoying when you accidentally upgrade a controller to a version of jujud that runs but fails to start the API server03:42
wallyworldthumper: i replied to your comment about the worker loop, see what you thunk03:56
thumperwallyworld: how is it less LOC?04:05
wallyworldno worker attributes to have to declare and assign to etc04:05
thumperwallyworld: quick HO?04:06
wallyworldthe initial model cred is just a var in the loop04:06
wallyworldsure04:06
wallyworldveebers: i can't see the comment on the legacy index? do you agree we need it still?04:46
veeberswallyworld: ah what, seems I was attempting to comment on the PR as a review, not in response to your question.04:48
veeberswallyworld: have commented properly now04:48
veebersbut to save you a webpage reload: legacy macaroons will exist in a collection setup by a previous version of juju, so wouldn't those indices remain? Im pretty sure they aren't removed by this change, and there is no need for it to exist from this point onwards as we're just using new Juju.04:49
wallyworldveebers: i wasn't sure about the MongoIndices() behaviour - whether we wiped the existing indices and applied just the ones specified04:51
wallyworldmake check an upgraded system?04:51
wallyworldto be sure?04:51
wallyworldi'd hate for the index to get wiped04:51
veeberswallyworld: I'm 99.9% certain it reamins, as I tested things expiring yesterday. That being said it wasn't a specific test for that, I'll re-do now to move to 100% certainty04:52
wallyworldveebers: maybe just a visual inspection of the indices04:53
wallyworldthen land that sucker04:53
wallyworldthen have a beer or six04:53
veeberswallyworld: hah yep Ill spinup a current and upgrade to this branch ver checking the indices as I go04:53
wallyworldgreat ty04:54
veebersReading mgo.session suggests that what I saw was expected, only creates new ones and doesn't remove them. Also doesn't update an existing index of the same name. Will do the check though, won't take long05:00
veebersluckily we used expire-at previously and v2 uses expires, so there is no upgrade step required there ^_^05:01
veeberswallyworld: FYI before and after upgrade: https://paste.ubuntu.com/p/Yx5kzHnfr7/05:15
wallyworldlooking05:16
wallyworldveebers: great!05:16
* veebers $$merge$$s05:16
wallyworldbabbageclunk: first thing monday, can you look at this one? i need to land it before we ship 2.4 beta1 https://github.com/juju/juju/pull/859205:26
babbageclunkwallyworld: ok, will do05:27
wallyworldty05:27
wallyworldit contains a data model change05:27
wallyworlddon't want to have to worry about upgrades05:27
* wallyworld afk to go buy coffee05:27
babbageclunkoh bugger, just realised I landed that raft branch without squashing it05:28
veebershttps://github.com/juju/juju/pull/8498 -> Merge \o/05:35
veebersoh bums, same here babbageclunk :-\05:35
* babbageclunk commiserates05:54
babbageclunkhmm, wallyworld - if I want to make apiserver depend on raft, it can't start because the peergrouper (which raft depends on for apiserver addresses) depends on the upgrader which depends on the api-caller.06:09
wallyworldjoy06:10
wallyworldi'm not sure how to solve that off hand06:11
babbageclunkNeither. For this I technically don't need to... But to make the leadership API use it I will.06:12
babbageclunkOk, what about a new worker that both raft and API depend on that has methods to set and get the raft. If raft hasn't been set yet, get returns an error. Then the raft worker sets it when it finishes starting up.06:15
babbageclunkFeels a bit baroque, but I think that would work?06:15
babbageclunkwallyworld: ^06:15
* wallyworld ponders06:16
wallyworldthat could work i think06:17
wallyworldworth spiking on in the absence of a better idea06:17
babbageclunkThe key thing is that although it kind of depends on it, the API server won't need the raft until someone actually calls an API that uses it?06:17
babbageclunkyeah, I think so06:18
babbageclunkwallyworld: is the reason the upgrade steps need to be idempotent because the different controllers could each try to run them?06:20
wallyworldthey are run every time aby upgrade is done06:21
wallyworldor they may half run and then the agent restarts etc06:21
babbageclunkok - but it looks like there's also no ifPrimaryController around them either. (This is good for me - otherwise asking for leadership would be needed straight away.)06:22
wallyworldwith your thought, i think only the master controller runs them06:22
wallyworldoh06:22
wallyworldmaybe not then06:22
babbageclunkoops - need to go feed the animals! Will check back later to see if you have any other brainwaves!06:23
wallyworldcoffee migh thelp06:26
vinothe --output option works with --format specified.06:45
vinoso its not a bug :)06:45
vinoI am talking about juju run --output option06:49
anastasiamacvino: wallyworld: the PRs need to have reviews before landing... no?06:51
vinoyes. he is doing it.06:51
vinowallyworld is reviewing.06:51
anastasiamacvino: ? m seeing $$merge$$ without a review. that's a landing...:D06:51
vinosure.06:52
wallyworldwhich PR?06:52
wallyworldthe contributing one?06:52
wallyworldi thought chris reviewed it06:52
anastasiamacm seeing it on 859306:53
wallyworldoops, ok, i'll stop the job thanks for picking that up :-)06:54
anastasiamacnws06:55
anastasiamacvino: very nice to see PRs up, btw :D06:56
wallyworldyeah, 3rd day and already a couple of PRs :-)06:57
anastasiamac\o/06:57
vinoThanks everyone :) :)06:59
=== frankban|afk is now known as frankban
* wallyworld off to soccer, have a good weekend07:41
manadartJust pushed what I think are the last changes to https://github.com/juju/juju/pull/8578.09:56
admcleod_is it possible that the cloud-init juju use for lxd containers was updated in the last 24 hours?11:48
admcleod_hmm nvm12:00
hmlmorning12:43
balloonsmanadart, KVM done as well, interesting12:49
balloonsGood morning HNL12:51
balloonslol, I'm terrible at typing12:51
hmlha12:52
manadartballoons: Yes; we can discuss in 8 mins.12:52
hmltab complete :-)12:52
frankbanjam: ping, do you have a minute?13:33
hmljuju devel version bootstrap from mac: if you specify —bootstrap-series xenial and —build-agent… juju builds an agent for the mac, but not for the bootstrap series of xenial.  interesting15:00
hmlcross compiling juju for linux/amd64 from mac is not as easy as it should be… some dependencies of dependencies are missing.  :-/16:22
balloonshml, ugh. We used to do the oppposite easily enough16:23
balloonsanyone want to have a quick look https://github.com/juju/juju/pull/8596?16:23
hmlballoons: blows up in LXD… trying to find a way forward now16:23
* hml looking16:23
hmlballoons: lgtm16:24
hmlsomething is definately weird with cross compiling juju from mac - it’s failing on a wrong version issue (mismatch of arguments) of a package not required in ubuntu juju build environment16:45
balloonshml.. wow. Did you hit a wall?16:48
hmlyup16:48
hmlballoons: i can’t build the lxc client either… which i should be able to do on mac per the github16:48
hmlso perhaps i there is something else wrong or not right yet16:49
hml???16:49
balloonshml, gotcha. Well the answer is to use ubuntu :-) Always the right answer16:49
hmlit’s odd where it’s failing though…16:50
hmlballoons: at least the reverse works?  i can cross compile on ubuntu for mac.. .and without the package that’s failing the otherway.  :-)16:55
balloonshml, yea, reverse is easy. But we build natively now on mac16:55
hmlhttps://pastebin.ubuntu.com/p/GFtYqH5jdK/  <— this is where i’m at17:02
=== frankban is now known as frankban|afk
hmlholy crap balloons, I think I just had a good complete total run with the new ci test!.17:28
balloonsWHA!?17:28
hmlI KNOW!  right17:28
balloonshml, that is awesome17:28
balloonsYour thoughts on writing a test would be most appreciated as usual :-)17:29
hmlballoons: here’s the log: http://paste.ubuntu.com/p/Qp2Nzxf2rM/17:29
hmlballoons: sure… will ponder things for the new folks17:30
hmlit took 1h45 to run at home.  bleh17:30
balloonshml, a good feeling though to see it do all that work eh?17:30
hmlballoons: almost…17:30
balloonshml, yea.. that's amazingly long.  But perfect for something that clearly isn't trivial to do yourself17:31
hmlballoons:  it wasn’t the whole thing…  but the long part that i’d been having trouble with17:31
hml:-(17:31
hmlbut the other part is already working17:31
hmlso stil a happy day17:32
balloonshml, yea.. somehow despite my efforts is I always give folks some real doozey's to start with17:32
balloonsI guess all the easy stuff already has tests eh?17:32
hmlperhaps.. it shouldn’t have been this hard to write17:32
balloonsI will agree on that17:33
hmli’d stil like to understand what is going on in the ci test “libraries” such that i couldn’t get juju run or juju ssh working consistently17:33
balloonshml, believe it or not the library used to be 3 or 4 times bigger than it is now. It's still way too big17:34
hmlwow17:34
balloonsas always.. it's MUCH better than it was. Ask chris if you don't believe me :-)17:34
hmldoing one last run with the other two parts while i clean up the commented out code and comment other stuff….17:37
hmlcrossing fingers for real PR by EOD - if i didn’t get jinx myself17:37
balloonsI'm having fun making the release process better. Always something low-hanging to automate18:32
balloonsand of course everything works fine for me18:34
hmlof course18:40
hmlballoons: for your reviewing pleasure: https://github.com/juju/juju/pull/856319:26
balloonshml, yay19:26
hmlnow to figure out how to get the job created19:26
balloonsthanks hml. I actually edited that file today when I was doing it myself19:32
balloonsthat is, the readme on how to add a job19:32
hmlballoons: can you give me the link again?  i lost it :-(19:32
balloonshml, feel free to tweak the document in general. It could use it I think. It kind of runs on19:33
hmlballoons: ack19:35
hmlalways fun when a new person uses the docs. :-)19:36
balloonshml, first glance is this looks really nice, especially for your first effort19:37
hmlballoons: what does “artifacts the job results” mean?19:51
balloonshml, in the yaml or in general?19:56
hmlit’s mentioned in the readme for creating a new test yaml19:56
balloonsit means it will retain copies of whatever build artifacts you specify. Otherwise they'll be gone19:56
hmlack19:57
hmlballoons: running jenkins-jobs test locally to test the yaml, should a job be generated?20:06
balloonsI think it spits it out on the console20:06
balloonsI never really run test -- just push and try it20:06
hmlah20:06
balloonsif it fails to parse, it will fail to create the job20:07
balloonsno harm in pushing it several times, running, and tweaking20:07
hmlit passed parsing20:07
balloonsmake sense?20:07
hmlyup20:07
balloonshml, reviewed, again very nice20:18
hmlballoons: ty20:18
balloonshml, ready for another? :p20:19
hmlballoons: i’ll take a small break for now.. but i have a feeling the backup restore test is in my future20:19
balloonshml, I think that was a great warmup to it. To be fair, the test for backup / restore exists. Though, it's unclear if I'd advise you to use much, if any , of it20:20
hml:-)20:20
balloonsa quicky for anyone https://github.com/juju/juju/pull/859720:31
hmlballoons: how do those work?  i’m not sure what i’m looking at with the pr20:32
hml:-)20:32
balloonshml, I discovered one of the patches (look at the Makefile for reference on when we use it, and the README in patches folder for context) isn't being applied because it's .patch, not .diff20:32
hmlah20:33
hmlhow did we get away with “forgetting” that patch?20:34
balloonshml, it's another reason I'm not a fan of them. Easy to not include them20:37

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