/srv/irclogs.ubuntu.com/2020/03/27/#juju.txt

hpidcockquicky for someone https://github.com/juju/juju/pull/1136700:14
=== timClicks__ is now known as timClicks
timClicksrecording of today's office hours is available for viewing: https://www.youtube.com/watch?v=y0ed5clg07000:39
wallyworldkelvinliu: charm.v6 pr merged01:14
kelvinliuwallyworld: ty, I just updated the deps on the PR01:14
wallyworldkelvinliu: pr has some static analysis issues01:48
wallyworldalso, did you test the remove-application behaviour just to ne sure?01:48
wallyworldtlm: or hpidcock: or kelvinliu: here's a k8s operator POC behind a feature flag https://github.com/juju/juju/pull/1136801:49
kelvinliuyes, I did. I m going to add to the QA steps01:49
wallyworldawesome, ty01:50
tlmwill take a look after lunch wallyworld01:51
wallyworldno rush at all01:56
timClickswallyworld: btw here is the cmr question https://youtu.be/y0ed5clg070?t=114301:58
wallyworldooh youtube, goodie01:58
wallyworldare we recording the questions anywhere?01:58
wallyworldin written form, to post and answer?01:58
timClickswallyworld: add them as comments to the discourse thread, the questions that were asked are there :)02:33
wallyworldah thanks, need to catch up on that02:38
thumperwallyworld: I've updated https://github.com/juju/lumberjack/pull/1/files02:51
thumperwallyworld: there was actually a problem with the initial patch02:51
wallyworldok, will look02:51
thumperas it was stopping the goroutine in the wrong place02:52
wallyworldah02:52
thumperI spent time fixing all the tests02:52
thumperas the race detector wasn't happy02:52
wallyworldgood to get that fixed02:52
thumperand there were failures without using a wait group to ensure the goroutine was closed before exiting Close02:52
thumperwallyworld: see https://github.com/natefinch/lumberjack/pull/100 for more PR descriptions02:53
thumperwallyworld: if you agree, we'll land it on our fork then update juju to use it02:56
wallyworldyup02:56
thumperif or when nate accepts the patch, we can move back, or just pull that into ours.02:56
thumperwallyworld: what I'll do is actually make a v2.pending banch on juju/lumberjack and target that02:57
thumperso the head of a branch will keep the commit02:57
thumperand when we pull v2 from upstream it won't break history02:57
wallyworldthumper: is is TestCompressOnResume gone? no longer relevant?03:02
wallyworld*why is03:02
thumperbecause I removed the extra call to mill at the start of the openExistingOrNew function03:03
thumperread my comment in the other PR to see why03:03
wallyworldok03:03
thumperwallyworld: does that all make sense?03:07
wallyworldthumper: not a fan of the naked send to notifyRemoved etc03:07
wallyworldi think it does make sense, just looking at the code03:08
thumperthe are only ever set in tests03:08
wallyworldif filesRemoved && l.notifyRemoved != nil {03:08
wallyworldl.notifyRemoved <- struct{}{}03:08
wallyworld}03:08
thumperright, but notifyRemoved is internal, and only set in the tests03:08
wallyworldah ok03:08
wallyworldmaybe enhance the comments?03:09
thumperthey are used to remove all the <-time.After() calls in the tests03:09
thumperwhich ones?03:09
wallyworldsomeone looking atthe code won't necessarily see the tests before hand03:09
wallyworld// notifyRemoved is signalled when the millRunOnce method removes some03:09
wallyworld// old log files. If no files are removed, notifyRemoved is not signalled.03:09
wallyworld/ only set and used in tests03:09
wallyworldor something03:09
thumperok03:10
thumperwill update03:10
wallyworldty03:10
thumperforce pushed03:11
wallyworldthumper: i think it looks good03:15
thumperwallyworld: thanks03:17
* thumper does a little manual testing for the change03:23
thumperon juju03:23
thumpernow I'm bothered...03:29
thumperI can't find the goroutine at all03:29
thumperthere should be one...03:29
* thumper thinks03:30
thumperoh03:30
thumperno03:30
thumpersince I removed the initial mill03:30
thumperthere isn't one initially03:30
thumperonly when we rotate the logs03:30
wallyworldthumper: i did have that thought but didn't think hard enough about it :-(03:34
thumperno, it's all fine03:36
thumperwe create it as needed03:36
thumperit's all good03:36
* thumper has the change targeting develop03:37
thumperwill retarget03:37
thumperhttps://github.com/juju/juju/pull/1137003:46
thumperfor the 2.7 dependency update03:47
wallyworldthumper: lgtm03:52
thumperwallyworld: thanks03:52
thumperwallyworld: when will the min juju version bits for k8s persistent volumes bit land? next week?03:53
wallyworldthumper: ALREADY LANDED03:53
wallyworldoops03:53
wallyworldcaps lock fail03:53
thumperheh03:53
thumperI thought you were just really letting me know03:53
wallyworldyeah, you are deaf or something03:54
wallyworldi don't muck around with these things, wanted to get it done03:54
thumperwallyworld: jsing has pointed out that I really do need the functionality I removed03:58
thumperso I need to consider how to test properly03:58
wallyworldok03:59
wallyworldkelvinliu: that mssing distro info bug should have been fixed a day or so ago04:04
wallyworldthere was an issue with juju/os reo04:04
wallyworld*repo04:04
kelvinliuI just got this error.04:04
wallyworldmaybe rebase and try again?04:04
wallyworldhmmm :-(04:04
wallyworldmaybe the fix didn't work properly04:05
kelvinliuI merged dev to my branch yesterday.04:05
kelvinliuah, I will change it again, that change ported to dev yesterday as well04:07
kelvinliu*check*04:07
thumperwallyworld: https://github.com/juju/lumberjack/pull/204:12
wallyworldlooking04:12
thumperstress has 6776 successful runs in 1 min 6 sec04:14
thumperstress-race has 228 successful runs in 4 min 4 sec04:18
wallyworldthumper: lgtm, the tweak to avoid the race seems sound04:19
thumpercoolio04:19
wallyworldhpidcock: tlm: looks like something broke. ran an action....04:21
wallyworld14:20:55 DEBUG unit.mariadb-k8s/0.hello ERROR x509: certificate is valid for application-mariadb-k8s, not mariadb-k8s04:21
wallyworldapp tag vs app name04:22
tlmwhat gave that error ?04:22
tlmk8s or juju ?04:22
wallyworldit appears in the model log hosting the unit04:23
wallyworldhaven't tracked it further04:23
thumperwallyworld: juju pr updated04:24
tlmhmmm that won't be a juju error04:24
wallyworldthumper: still +1 assuming sha is correct04:24
tlmis that bubbling up from the charm trying to talk with the mariadb process ?04:25
* thumper double checks the vendor directory04:25
wallyworldtlm: it is a juju error i think to do with the cert we generate to have the workload pod talk to the operator pod04:25
wallyworldi blame hpidcock until proven wrong :-)04:25
thumpermerging04:25
tlmyeah I am going with hpidcock, my bugs are far better then that04:26
tlm:)04:26
hpidcockwallyworld: ahhh this is because of that tag change04:27
hpidcocksigh04:27
hpidcockgive me a minute04:27
wallyworldyeah, i just realised and was about to mention that04:27
wallyworldhpidcock: quick HO, i have another question04:27
wallyworld?04:27
hpidcocksure04:27
wallyworldin standup04:28
thumperwallyworld: can you keep an eye on https://github.com/juju/juju/pull/11370 ?05:13
thumperI'm EOW05:13
wallyworldyup05:13
wallyworldavagoodwe05:14
thumperthanks05:14
kelvinliutlm: hpidcock anyone free to get a 2nd +1 plz https://github.com/juju/juju/pull/1136205:21
hpidcockkelvinliu: on it05:21
kelvinliuty05:21
wallyworldhpidcock: merge failed for my pr, so i added a small commit to add the cert fix https://github.com/juju/juju/pull/1136806:00
hpidcockwallyworld: LGTM06:01
wallyworldta06:01
eloxGood morning08:17
stickupkidmanadart, any thoughts about my issue around where to put ReloadSpaces function?09:04
manadartstickupkid: Yes, I missed that one. Let me see.09:07
stickupkidmanadart, I thought there was only two places this existed, but turns out the agent also wants to reload spaces09:08
stickupkidmanadart, that's totally fine, we just need to pick a place where to put it09:08
stickupkidmanadart, can HO if you want?09:20
manadartstickupkid: Kickin' it in daily.09:22
wallyworldachilleasa: hey, i left a comment on https://github.com/juju/juju/pull/11341. a charm.v6 dep update which supercedes yours has already landed in develop11:16
achilleasawallyworld: thanks for the heads up. I will rebase and drop the bump commit11:18
wallyworldno worries11:18
wallyworldalso the debughooks test as a side effect11:18
achilleasa?11:20
achilleasamanadart: is there a way to access the controller config from a facade or do I need to inject something like a config-getter via the c-tor?12:07
achilleasanvm, found it12:20
manadartachilleasa: Great.12:23
stickupkidI think we do error matching wrong in juju12:30
stickupkidwell for typed errors, we shouldn't care about the message, just what type it is12:30
stickupkidi.e. if you have an error returned, like errors.NotImplementedf("InvalidateCredentialCallback")12:31
stickupkidthen the test should be12:31
stickupkidc.Assert(err, gc.ErrorType, errors.NotImplemented)12:31
stickupkidbut we never do that12:31
stickupkidmanadart, https://github.com/juju/juju/pull/1137113:50
hmlachilleasa:  https://github.com/juju/juju/pull/11339 is ready for review i think.14:24
achilleasahml: looking in a bit14:29
achilleasaif I want to add a new error type and have it recovered client-side so it can be used outside the api caller's scope, is there an alternative to adding it to juju/errors?14:35
achilleasahml: quick PR https://github.com/juju/errors/pull/4514:46
hmlachilleasa:  approved14:51
achilleasahml: tyvm14:51
manadartstickupkid: https://github.com/go-goose/goose/pull/8315:22
achilleasafun facts: if you need to get a typed error (in the client) from a server error you need to call apiserver/common.RestoreError; however, if you try to import that pkg in api/uniter/unit.go you get an import cycle...15:36
achilleasalooks like apiserver/common imports worker/uniter/{operation, remotestate} which makes me sad :-(15:38
manadartstickupkid: https://github.com/juju/juju/pull/1137215:50
stickupkidmanadart, kewl, let me look into this15:51
flxfooHi again19:45
flxfooSo I still have three issues.19:45
flxfooone is adding an OS image, the image just disappear after about 5 minutes... maybe juju tries to update images from "upstream" so clear the list?19:45
flxfoosecond is enbling the image-metadata feature breaks others python using libjuju19:45
flxfoothose two there are kind of workaround19:45
flxfoobut the third one , doing a add-unit will end up creating more than one unit with the same name but different IDs, does not finish, but... (rackspace lagging) the server created at some point are fully created.19:46
flxfooa question would be under which circonstances juju would create more than one unit with the same name?19:47
hmlflxfoo, not many folks around to answer your questions on the images right now.  Posting to the juju discourse would be your best bet.19:48
hmlflxfoo:  you’d only see a unit of the same name if the same charm was deployed in different models.19:48
flxfoohml: thanks19:49
hmlunit names are unique per model19:49
hmland will never reuse a name within a model19:49
flxfoohml: first of all, everything was fne before rackspace remove the image we were using19:49
hmlflxfoo:  :-(. have you see the docs on simplestream images for openstack?19:50
flxfoosecond on one test model (no charm) doing add-machine after a few minutes I can have around 25 server with the same name (juju-XXXX-modelaname-XX) all in build state (rackspace lag)19:50
hmlflxfoo:  i’d think most of the same would work there… without the new service.  but i’m not sure that’d be a long term solution.19:51
flxfooin another model (prod one) a simple memcache charm end up the same just less machine, just because I think there is more things to manage already, but the same19:51
flxfoohml: yeah I think I read that doc about generating simplestream stuff... I end up having those files... but that to use bootstrapping only no?19:53
hmlflxfoo:  that’s not cool definitely.  have you filed a bug?19:53
hmlflxfoo:  the same info in simplestreams will be used by units as well.19:53
hmlit’ll go to the default model19:53
flxfoonot yet, because I would like to have a bit more information to see if there something I did do properly or not19:53
hmlyou’ll need to be careful of model-defaults and config to get it in other models19:53
hmlbut it’s a config value, so can be set later19:53
flxfoohml: so you are telling me to disable the image-metadata. And to go back to bootstrap with new values for an OS image?19:55
hmlyou’ll want to use --model-default at bootstrap for models other than default19:55
hmlflxfoo:  i don’t think you need to do a new bootstrap.19:56
hmlit’s a model config value19:56
flxfoohml: o ok... did not see that, the only one I remember is `custom-image-metadata` this is one?19:56
hmlflxfoo crap… i might have been thinking of the wrong thing.19:57
hmlflxfoo:  let me check something on rackspace19:57
flxfoothanks hml19:58
hmlflxfoo: i’m wondering what the options are if rackspace has removed the images.  I’m assuming there are not other ones which can be used.20:03
flxfoowell they gave me one, that I use when I am trying add-unit20:04
flxfoowith the help of wallyworld , I manage to add this image in the juju metadata list-images20:04
hmlflxfoo: i think a juju discourse post is your best option.  the folks who can help are located around the world.  discourse is good for asking questions etc.20:04
flxfoohml: sure will do20:05
flxfoodiscourse.jujucharms.net ?20:05
flxfoodot com ?20:05
hmlflxfoo:  https://discourse.jujucharms.com20:06
hmlthere’s a whole bunch of docs, info. q&a etc there.20:06
wallyworldrick_h_: looks like we need a uniter upgrade step for app relation work, bug 186927522:27
mupBug #1869275: [subordinate] main unit did not get subordinate installed <juju:Incomplete> <https://launchpad.net/bugs/1869275>22:27

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