/srv/irclogs.ubuntu.com/2018/09/06/#juju.txt

wallyworldveebers: adding State to cloudContainer would have been the wrong choice - we deliberately are not adding State anywhere else new as it was wrong to do it that way way back when00:04
wallyworldveebers: i am not 100% on adding a new method to Unit though - that is bloating the Unit entity. we are in state package, can do stuff without needed to add that method to Unit itself00:05
wallyworldthe general design principal is to keep the domain entities small and use the onion modelto extend their functionality00:06
veeberswallyworld: it's not a new method on Unit, it's a new type, func newUnitCloudContainer(st *State, name string) *UnitCloudContainer. It has set/get status00:09
wallyworldah right, that's great then :-)00:10
babbageclunkanastasiamac: is this another instance of the intermittent failure you're working on? http://ci.jujucharms.com/job/github-check-merge-juju/3328/testReport/junit/github/com_juju_juju_worker_provisioner/TestPackage/00:17
* anastasiamac looking00:17
babbageclunkthanks00:18
anastasiamacbabbageclunk: it was arecently added one... i'll add it to my today's list.. thnx, babbageclunk :D00:18
veeberswallyworld: when you have a moment, pushed updates to https://github.com/juju/juju/pull/9081. Just need to add tests for UnitCloudContainer, a little apprehensive to add another ConnSuite suite though :-P00:23
wallyworldit's only another test to an existing suite i would think00:24
veeberswallyworld: yeah should be able to wrangle it in. Partly tested by side effect of being used in other tests too00:25
babbageclunkanastasiamac: ok, thanks!00:26
wallyworldveebers: there's still one of these fmt.Sprintf("unable to get events for PVC")00:27
wallyworldin an errors.Annotate00:27
veeberswallyworld: argh no way sorry00:27
veeberssigh, visiting that buffer that's where my cursor was; must have been distracted before I could fix it and then moved to something else00:28
wallyworldall good00:29
* anastasiamac is impressed that veebers has more than one buffer... i only have one buffer and one cursor00:34
veebersI have a big screen that I fill with many frames. Means I don't have to remember anything, its all there to see :-P I need a meat-memory upgrade00:35
anastasiamacah babbageclunk, that issue is the same one i described in standup - my test is killing worker whenever it wants... i have a fix to do it in more controllled manner... i'll pr and will probably ask u or wallyworld to review...00:36
babbageclunkanastasiamac: ok, thanks for taking a look.00:37
wallyworldveebers: got time to jump in HO?00:42
Doctor_Nickis there an ide that provides autocomplete for charm writing?00:44
wallyworldDoctor_Nick: you mean for writing Python hooks etc? so auto complete for charm helper and reactive libray functions? any good Pythin IDE will do that00:45
wallyworldlike PyCharm etc00:45
babbageclunkwallyworld: that other PR I mentioned? https://github.com/juju/juju/pull/916400:53
wallyworldok00:53
babbageclunkthanks!00:58
wallyworldbabbageclunk: why can't we remove the core store's ExpireLease method?01:01
babbageclunkwallyworld: It's part of the lease.Store interface, and the mongo store needs it, since it can't respond to the time updates in the same way.01:15
babbageclunk(sorry, was grabbing a lunch)01:16
wallyworldbabbageclunk: ah right ok. i guess invalid err is ok, although we do tend to use NotSupported in these cases I think01:17
babbageclunkwallyworld: I figured invalid is best here since the lease manager is explicitly expecting that.01:20
veeberswallyworld: I do now, back from lunch01:20
wallyworldok, i guess the raft side never calls it anyway01:20
wallyworldveebers: ok, see you in HO01:20
pmatulisa credentials file for google cloud is giving me grief. i need key 'client-id' but when i include it i get the following with add-credential:01:51
pmatulisERROR parsing credentials file: credentials.google.juju-gce-sa.client-id: expected string, got float64(2.0651723337507478e+20)01:51
pmatulisthe line looks like this:01:52
pmatulisclient-id: 20651723337507478688201:52
pmatuliswhen i use interactive method and point to my yaml file it works fine. any ideas?01:52
veeberspmatulis: you need quotes around it02:01
veebersclient-id: "203..."02:01
babbageclunkpmatulis: weird - you could try putting quotes around the value. Not sure why it would work in one context and not the other though02:01
babbageclunkoops02:01
thumperanastasiamac: the gce/azure/aws invalid credential detection, is that 2.4 or 2.5?02:24
thumperwallyworld: ^^ do you know?02:27
wallyworld2.5 i think02:28
wallyworldsome of the work landed in 2.402:28
wallyworldbut only really functional in 2.502:28
thumperok, ta02:28
pmatulisveebers, babbageclunk, ok, that seemed to be it. in the cloud-city configs this key's value is not quoted...02:39
veeberspmatulis: hmm, interesting. Perhaps jujupy does the quoting when it reads then regurgitates that data into the pre-primed JUJU_DATA02:40
pmatulisdunno02:40
babbageclunkwallyworld: PR for s390x unit test failure: https://github.com/juju/juju/pull/916502:58
wallyworldgr8 looking02:58
babbageclunkThat one's against develop - it needs to be fixed in 2.4 too, but the test data's been moved, so I'll do a separate PR for it.02:59
wallyworldbabbageclunk: ty, thought it would be simple like that :-)02:59
babbageclunk:)03:00
veebersbabbageclunk: nice!03:00
babbageclunkanastasiamac: Did your fix for the not-a-valid-zip-file failure land?03:31
babbageclunkI've just seen it on a test run03:32
babbageclunkhttp://ci.jujucharms.com/job/github-merge-juju/1087/testReport/junit/github/com_juju_juju_api/TestAll/03:32
anastasiamacbabbageclunk: wasn't a fix but improvemnt.. i'll take another look.. wasnt easy to repro locally03:46
veebersanastasiamac: where you able to repro locally at all?03:47
babbageclunkoh, right03:50
babbageclunkanastasiamac: the bug probably shouldn't be fix-committed then, should it? https://bugs.launchpad.net/juju/+bug/178840103:52
mupBug #1788401: Intermittent test failure: cannot upload charm ... not a valid zip file <intermittent-failure> <juju:Fix Committed by anastasia-macmood> <https://launchpad.net/bugs/1788401>03:52
anastasiamacveebers: no03:52
anastasiamacbabbageclunk: no03:52
veebersack03:52
anastasiamacbabbageclunk: especially if we now have a new accourence :(03:52
babbageclunksorry :(03:54
anastasiamacbabbageclunk: ?03:55
anastasiamacno need to be sorry, especially if we can figure repro steps \o/03:55
veeberswallyworld: I don't think Im' being blind, I can't see a way to ignore the status collection in the migration export tests. I see a feature flag for StrictMigration; but that changes the test as a whole04:03
veebersbabbageclunk: perhaps you know? Is there a way in the migration export tests to ignore a collection that gets left behind?04:04
wallyworldveebers: sorry, was caffinateing04:04
wallyworldlet me check04:04
veebersno worries, that's always important!04:05
wallyworldoh just thinking about it - the test would be expecting some status items to be exported, but we are adding extra ones04:05
wallyworldso we can't ignore the entire collection right?04:06
wallyworldwe may need to check in th test that all is done except for container status values04:06
wallyworldwhich test is it?04:06
wallyworldi'm just hand waving atm04:06
veeberswallyworld: all the MigrationExportSuite tests (well 11, not sure if that's all)04:08
babbageclunkveebers: what do you mean a collection that gets left behind?04:08
veebersno, thats just some of the 49-ish tests04:08
veebersbabbageclunk: as in we're not (yet) doing anything with the cloud container status collection (that's newly been added).04:09
veebersI handwaved over it by doing the extract but doing nothing with the data, but that seems a bit iffy04:09
babbageclunkveebers: so you export it but don't import it yet?04:10
wallyworldveebers: can you pastebin a failure04:10
veeberswallyworld: https://pastebin.canonical.com/p/zrXypw6XtW/04:10
babbageclunkoh, just reminding myself about the StrictMigration flag.04:11
veebersbabbageclunk: this is what I had proposed: https://github.com/juju/juju/pull/9081/files/#diff-d02499513782195ec1b9d18198275e6204:12
babbageclunkveebers: right, so there are status entries for this new entity which are being read when the exporter reads status, but that you're not using in the export yet.04:13
wallyworldveebers: so for now, i think you could consume the container status values but not add to the juju/description/model04:14
wallyworldwith a big todo04:14
veebersbabbageclunk:note the test is failing as I removed that change per PR comments04:14
babbageclunkI don't think there's any kind of "these ones are alright" ignore-list at the moment.04:14
wallyworldi guess that's what you were doing before04:14
veeberswallyworld: so add back what was there04:14
wallyworldsorry yeah04:14
veeberswallyworld: heh cool, I'm on the same page. no worries04:15
wallyworldi didn't realise we needed to do that04:15
wallyworldi thought we had the mechanism to cope with it04:15
veebersaye, I'm sure for other migration stuff there is a whitelist/ignore list so was expecting the same here04:15
wallyworldbut we don't for this scenario04:15
wallyworldyeah, we ignore whole collections or entity attrs04:15
babbageclunkconsuming them with a todo sounds like the best bet - we have exclude lists for new collections, but these are status records, so they're always loaded.04:15
veebersI suspect it'll need a bigger todo than // TODO(caas) - Actually use the exported cloud container details.04:16
babbageclunkwallyworld: Is this failure the caasfirewaller one you and thumper were looking at? http://ci.jujucharms.com/job/github-check-merge-juju/3331/testReport/junit/github/com_juju_juju_worker_caasfirewaller/TestAll/04:16
babbageclunkveebers: how big a TODO have you got?04:17
veebersbabbageclunk: just what I posted just now ^_^04:17
wallyworldbabbageclunk: not that one specifically IIANM. it would be watcher related though. how often is it failing?04:18
veebersIn a nutshell, is this grabbing collection data from a source unit and populating the new target unit with this data?04:18
veebersas part of an application migration stage04:18
babbageclunkveebers: https://pastebin.ubuntu.com/p/qZzcJQVn99/04:20
veebersbabbageclunk: hahahah I *love* it04:20
wallyworldit's grabbing the status data from the mgo model and populating an in memory description04:20
wallyworldsomeone has too much time on their hands04:21
babbageclunkwallyworld: seems to be failing after about 5 runs under stress-race04:21
wallyworldsigh ok04:21
babbageclunkwallyworld: I just used artist-mode - more emacs magic!04:21
babbageclunkwallyworld: I'll have a go if no-one's already working on it.04:21
wallyworldhow did i know it would be %#!W#!$W emacs04:21
wallyworldif you want that would be gr804:22
veebersbabbageclunk: there is also T̖͇̠O̵͉D͏O̸:̳04:22
veebers(as per the Zalgo thing you showed me the other day)04:22
babbageclunklol04:22
veebersPerhaps we should run all our comments through the zalgo generator04:23
veeberswallyworld: I'm just doing some manual functional testing now of those changes04:54
wallyworldsounds good04:54
veeberswallyworld: will show-status-log ever show the current status or must it be status leading up to but not including current status04:57
wallyworldi thought it ahows the current status04:57
veeberswallyworld: oh ok, I'll double check04:58
babbageclunkwallyworld: super-quick one: https://github.com/juju/juju/pull/916705:26
wallyworldsure05:26
babbageclunkwallyworld: Thanks! I've made it against 2.4, is someone going to do a merge from 2.4 to develop sometime soon?05:27
wallyworldbabbageclunk: nice. but is there still arace?05:27
wallyworldwe normally merge about once a week05:27
babbageclunkwallyworld: I don't think there's still a race?05:28
babbageclunkOh, but I was only running that one test, maybe elsewhere in the suite?05:28
wallyworldbabbageclunk: oh nevermind, i think it's ok. the test sends 2 app change events, and we match those with 2 errors right?05:28
babbageclunkyeah, that's right05:29
wallyworldi think that;s ok05:29
babbageclunkIt should be - the stub's all locky05:29
anastasiamacwallyworld: babbageclunk: PTAL https://github.com/juju/juju/pull/9168 - promised provisioner tests05:59
wallyworldok, just finishing off something, then will llook06:00
anastasiamacnws06:01
wallyworldanastasiamac: i had a question about the test coverage i left in the PR06:20
anastasiamacwallyworld: what coverage do you think is missing?06:39
wallyworldthat which is in the deleted test06:39
wallyworldchecks that only transient errors cause retriesl that retries are not done for non transient errors etc06:40
wallyworldi couldn't see where the delete test code was replaced06:40
anastasiamacwallyworld: whether the errors are transient or not is not determined by the task. it's deterimned in apiserver layer06:41
anastasiamacit has never been covered in this test.06:41
wallyworldData:    map[string]interface{}{"transient": true},06:41
wallyworldthat line from the deleted test06:41
wallyworldset up an error as being transient06:42
wallyworldand the test checked that m3, m4 etc were done properly06:42
anastasiamacwallyworld: that's in setting machine status in JujuCOnnSuite which is read by apiserver not provisioner task in worker package06:42
wallyworldright but the test is deletd and there's no replacement test cover is there?06:42
anastasiamacagain, this is a functinality that needs to be covered in apiserver not in worker06:43
wallyworldright but it's not06:43
anastasiamaclemme check if it exists there06:43
wallyworldso we are not covered06:43
wallyworldunless i can't find it06:43
wallyworldmaybe i just had a boy look06:43
anastasiamacwallyworld: https://github.com/juju/juju/blob/develop/apiserver/facades/agent/provisioner/provisioner_test.go#L43406:45
anastasiamacetc...06:45
anastasiamacand even as expected there is one to test with permission at line 48906:45
anastasiamacwhether the status.error is transient or not was never a concern of worker.provisioner_task but of apisever06:46
anastasiamacwe had to set up the status with error in previous test because we were driving through the whole stack with jujuconnsuite and this was the only way to get machines with transient errors into the task06:47
anastasiamacso, exisitng coverage is still there06:47
wallyworldanastasiamac: makes sense, ty. sorry i was blind freddy. in tnhe newer code, we use MachinesWithTransientErrors() result and check that retires happen on those results i think then?06:48
anastasiamacwallyworld: yes :)06:52
anastasiamacin fact, i've run cover against clean develop in this package (78.5% of stmts covered) and against my branch (78.5%) and m happy with the result :)06:56
stickupkidis there any documentation around updating aws instance types?08:40
stickupkidrunning "go generate ." inside cloud yeilds no changes08:41
stickupkids/yeilds/yields08:46
stickupkidyay - found it09:16
stickupkidI'll write a discourse about this09:17
externalrealitymanadart, can you explain breifly why the worker keeps state for both `completedUnits` and `preparedUnits` in your open PR?13:37
externalrealitymanadart, I thought we had combined the two concepts... And not knowing any better I thought I'd ask before you EOD13:38
manadartexternalreality: It is a symptom of how we designed the API - rather copying state locally, we ask questions. Two of those are: what units are in the13:39
manadart"prepare completed" state? and what units are in the "completed" state?13:39
manadartIn practice, the workflow means that only one should ever actually data in it.13:40
manadart*have data in it.13:40
manadartexternalreality: We *could* use a single collection and output it in the report with a different key based on the machine status. That might be better.13:42
externalrealitymanadart, ah, I see so you are just sorting them rather than having to attach the status and check it each time. Roger.13:42
manadartJa.13:42
hmlstickupkid: pr 9172 is reviewed/approved.  just had a question in the tests.14:55
stickupkidhml: i responded with a question15:01
hmlstickupkid: unfortunately i haven’t played with ec2 image types either.  perhaps a bug to look into this later? to get more data.  or address this now?15:04
stickupkidhml: this is going to land on 2.3.9 so I'd rather address now maybe?15:06
stickupkidjam: do you have any time to CR this PR - https://github.com/juju/juju/pull/917215:06
hmlstickupkid: i was on the fence, mostly because it’s been this way for a while.  but fixing while we’re here is best15:06
jamlooking15:06
stickupkidjam: i'm concerned our default instance is changing too much15:14
stickupkidhence why I'm a bit suspect on landing this one15:14
jamstickupkid: heh. that was my comment as well15:14
stickupkidjam: ha15:14
stickupkidjam: what's the best course of action do you think?15:15
jamstickupkid: understand why the default is changing. I thought we looked up the default based off of its specs, but that doesn't seem to be true.15:16
stickupkidjam: "At the time of writing, this will choose the cheapest non-burstable instance available in the account/region."15:23
jamstickupkid: also checking what the price schedule is, and what the tradeoffs are15:23
stickupkidjam: https://pastebin.canonical.com/p/Nf2SFXSC99/15:29
stickupkidjam: interestingly, the m3.medium is deprecated15:29
jamstickupkid: isn't it t3 not m3 ?15:30
stickupkidjam: so the m3 was the default (the bottom one) and not the t3 has become the default (the top one)15:31
jamstickupkid: t2.medium was the old default, I'm pretty sure15:32
jamstickupkid: line 1694 of your diff is -t2 + t315:32
stickupkidjam: ah sorry, you're right15:33
stickupkidjam: my bad15:33
jamstickupkid: it seems they released a new series of 't' types, and I would be curious to know what the various stats are15:34
stickupkidjam: the t series just reduced the cost and that was the winner15:34
jamstickupkid: so 't' are all 'burst' types, so you get a number of credits, and that allows your CPU to go fast, until you run out of credits, but they are a lot cheaper.15:35
jambut it is a reasonable tradeoff for Juju controllers that aren't heavily loaded.15:36
jambut t2 vs t3, I don't know the differences.15:36
stickupkidjam: memory seems like a large tradeoff15:36
stickupkidjam: do we know what the average controller usage is for a default controller?15:36
stickupkid^ in terms of memory15:37
jamstickupkid: so I'm out of time to work on this tonight, but gathering the information of what is available and sending a discourse/email is probably the way forward15:38
stickupkidjam: sure, sounds like a plan15:38
veebersMorning all o/20:31
babbageclunkmorning veebers!20:52
veebershey babbageclunk o/ How's thing?20:53
veebersthings even20:53
babbageclunkOh I only have the one, it's good.20:53
veebersexcellent!20:53
babbageclunkSinging in a concert tomorrow20:53
veebersbabbageclunk: oh wow awesome! Which concert?20:54
thumpermorning20:54
babbageclunkveebers: https://www.orchestrawellington.co.nz/events/requiem20:54
thumperbabbageclunk: nice, good luck20:54
babbageclunkcheers"20:55
babbageclunk!20:55
thumperI found a nice choir, but have no time20:55
thumperso... not doing it20:55
babbageclunkAnd they have no tim20:55
thumperbabbageclunk: hey, you'll find this amusing, I have a new song I'm doing20:55
thumperbabbageclunk: You're welcome20:55
babbageclunkI think radionz is broadcasting it while we're performing20:56
babbageclunkthumper: oh awesome!20:56
babbageclunkSuch a good song20:56
thumperyeah, it is20:56
thumperalthough I'm singing it at the top of my range, so it isn't comfortable yet20:56
babbageclunkYeah I guess those high bits are pretty high20:57
veebersbabbageclunk: you're on fire this morning :-)20:57
veebersbabbageclunk: awesome, all the best for the concert!20:57
babbageclunkB)20:58
thumperrick_h_, wallyworld: was talking with jam last night about the windows CI failures on develop21:46
wallyworldthe path length?21:47
thumperit looks like the vendoring broke the windows builds due to the path length21:47
thumperyeah21:47
thumpergo 1.11 fixes this21:47
thumperso...21:47
wallyworldlet's move!21:47
thumpershould we move everything?21:47
wallyworldyeah, task for sprint21:47
thumperwould be a good time to coordinate21:48
wallyworld+121:48
thumperrick_h_, externalreality_: was thinking a bit more about the all watcher and the series upgrade stuff21:49
thumperif we want the GUI to be able to respond and show the events it needs to be in the all watcher21:49
thumperand I do think a new delta type probably makes sense there21:49
rick_h_thumper: wallyworld so I talked to hml about using her CI day tomorrow to see what does or doesn't compile with 1.11 so we'll have a list to start from next week21:50
wallyworldi think it's just windows right?21:51
thumpersweet21:51
wallyworldoh, 1.11 you said21:51
wallyworldnevermind21:51
wallyworldbabbageclunk: remind me, what's the bootstrap syntax for specifiying the lgacy lease feature flag?23:59

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