/srv/irclogs.ubuntu.com/2020/02/04/#juju.txt

wallyworldkelvinliu: we already have a really old version of a python juju client in the stable juju packages archive https://launchpad.net/~juju/+archive/ubuntu/stable/+packages01:41
wallyworldwe should be able to publish a newer "python-libjuju" ppa01:42
wallyworldto that juju stable archive01:42
kelvinliuthey were pushed 5yrs ago01:42
wallyworldyeah, realy old01:43
wallyworldso we just need to push our new "python-libjuju" ppa01:43
kelvinliuyeah01:43
wallyworldto that juju stable archive01:43
wallyworldcan do that and update the release process doc for libjuju01:44
kelvinliuthat one was manually pushed01:44
wallyworldyeah, so updating process doc after doing it manually is all we need for now01:44
kelvinliuyep01:45
kelvinliuwallyworld: got a question about the quoteStrings in config process, free to have a quick HO?02:05
wallyworldsure02:05
thumperwow it is raining hard here today02:40
thumpermakes me pleased that the stadium has a roof02:40
wallyworldelton had to abandon a concert here in OZ due to gale for rain, wrecked all the sound gear etc02:42
tlmnow we have gail force wind02:43
hpidcockBest day of February so far, nice and cool02:54
kelvinliuwallyworld: should I just continue to change to the spec in the doc?04:08
wallyworldwhat was the final outcome of the discussion? i didn't hear it due to sound issues04:09
wallyworldi disagree with splitting it as it sucks for the user04:09
kelvinliuwallyworld: stdup?04:09
wallyworldok04:09
nammn_demanadart: around to talk about rename-space? 2 review comments I am not sure09:27
nammn_dehttps://github.com/juju/juju/pull/11143#discussion_r373477221 (missing information) and https://github.com/juju/juju/pull/11143#discussion_r373573802 (I tried to solve, not sure if thats what you meant)09:27
manadartnammn_de: I am in Daily.09:41
nammn_demanadart: 2 min, cannot find phone for 2fa09:42
achilleasajam: manadart regarding our chat on side-effects yesterday, if my open/close ports operation uses the same Ports model and I stack an [open, close] operation, the ports slice of the model will end up in an inconsistent state (open appends an entry, close replaces the port list with a filtered version)10:16
achilleasaI could tweak the done logic for close to make it work but not sure if it's worth the effort given that the Ports model will be thrown away10:17
achilleasa(e.g. have close track the entries to be removed instead of the remaining entries and filter the port list in Done)10:18
manadartachilleasa: Seems reasonable. We discussed how the object curation for consistency with state post-DML execution is kind of a waste when we they are so short-lived.10:27
manadartmanadart: And probably less relevant than ever if the particular entities live in the model cache.10:28
* manadart tags himself like an idiot.10:28
achilleasamanadart: actually, now that I look at it again, it's a bit more complicated. open ports issues an updatePortsDocOps whereas close ports issues a setPortsDocOps10:29
achilleasamy guess is that the first txn.Op block will succeed but the later will not due to the revnos and cause the txn to fail10:30
achilleasamanadart: quick ho?10:30
manadartachilleasa: Yeah, give me a mo'10:30
achilleasaperhaps I need an "opencloseports operation"10:30
stickupkidmanadart, got a sec?10:49
stickupkidi'm either being stupid or stupid10:49
manadartstickupkid: In Daily with achilleasa.10:51
stickupkidi'll gate crash10:51
stickupkidhttps://jenkins.juju.canonical.com/job/nw-deploy-focal-amd64-lxd/24/console10:54
=== mup_ is now known as mup
nammn_demanadart: incorporated your feedback + updated qa and should now be ready . https://github.com/juju/juju/pull/1114311:22
manadartnammn_de: Will look soon.12:06
=== wpk_ is now known as wpk
jamachilleasa: sounds like we want to have a $pullAll instead of a $set12:17
achilleasajam: turns out you cannot compose the two individual ops together without jumping through hoops. As a workaround, I made them into a single op that calculates the final port range list and either does insert or $set. Original tests pass and I am adding some extra ones for composed open/close12:20
nammn_demanadart rick_h: do we allow the deletion of provider provided spaces?  (Maas)13:14
manadartnammn_de: No.13:14
rick_h+1, nope the world is the world we have to live in it13:21
achilleasacan anyone explain to me why this test works? https://github.com/juju/juju/blob/develop/state/unit_test.go#L1594 I don't see any unit-is-alive (there is one for model-is-alive though) assertions in the open/close txn code https://github.com/juju/juju/blob/develop/state/ports.go#L19914:14
stickupkidrick_h, fyi: https://github.com/lxc/lxd/issues/683314:20
rick_hstickupkid:  <314:20
manadartSmall mechanical change: https://github.com/juju/juju/pull/1118114:42
stickupkidmanadart, me look14:42
stickupkidmanadart, I looked, also saw you may have fixed a runtime panic?14:48
manadartstickupkid: We've never hit it AFAIK.14:48
stickupkidgood piece of code then14:48
stickupkidkill it?14:49
=== sfeole is now known as sfeole_away
manadartstickupkid: Volume attachment plans are used by the OCI (Oracle) provider for attaching volumes to instances where the local machine needs to take some actions, I believe.15:02
stickupkidmanadart, but we know that would never have worked, so isn't exercised15:02
stickupkidmanadart, whilst we're at CR sharing https://github.com/juju/juju/pull/1118215:04
manadartstickupkid: Yep. Can you look at the commit I just pushed to mine?15:10
rick_hjam:  got it updated and pushed together a bundle with the bits in it https://discourse.jujucharms.com/t/monitoring-juju-controllers/43015:29
stickupkidmanadart, I think we should add a comment and it's done :)15:32
manadartstickupkid: OK.15:37
stickupkidsomething of the lines, "we have no idea what we're doing, but this should fix it"15:38
stickupkidhaha15:38
manadartnammn_de: I am going over your patch again. I was thinking that given the number of files touched for these, we should break future ones up.15:40
manadartWe can add the API server, client and cmd parts in separate patches.15:40
nammn_demanadart: agree, should makes everything easier to review15:44
nammn_demanadart: while running through it. Should we be able to rename-space `alpha`? I did not catch the case if someone wants to rename. i just did, because I thought that we hold by the spaceID and not spaceName15:47
hmlmanadart:  it looks like there may have been work done on the duplicate subnets already, but some of it is a work around.  background in https://bugs.launchpad.net/juju/+bug/173326615:49
mupBug #1733266: Autodetection of subnets prevents bootstrap when there are duplicate subnet ranges <cpe-onsite> <network> <openstack-provider> <juju:Fix Released by jameinel> <juju 2.3:Fix Released by jameinel> <https://launchpad.net/bugs/1733266>15:49
manadartnammn_de: We should prevent it. There are some conditions interrogating the name. It can be done in the cmd.15:50
nammn_demanadart: oh, I need to add this then.15:50
nammn_demanadart: I will let you finish review first and add the alpha case in the cmd15:51
manadarthml: Thanks, I'll take a look. I still need to work out why I am not seeing subnets from another network in the same tenant.15:51
achilleasamanadart: does it work with dev branch?16:09
manadartnammn_de: Actually, we need to check at the API server, in case someone is using say, pylibjuju.16:10
manadartnammn_de: QA is looking OK here. Go ahead and add that change.16:11
nammn_demanadart: will do.16:11
manadartachilleasa: The network thing? I am using develop HEAD.16:11
nammn_demanadart: I promise my next pr is gonna be puny :D16:12
manadartWell, HEAD-ish.16:12
nammn_demanadart: added16:20
achilleasamanadart: I am thinking of modifying SettingsGroup in state/settings.go to implement ModelOperation instead of having a Write() method (func equiv to buildTxn+apply). I added this type when I introduced the UpdateNetworkInfo call in uniter. IIRC you recently added a settings op type.16:38
achilleasaI can probably switch the code to use that and remove SettingsGroup. Thoughts?16:38
achilleasanammn_de: I think you used the ^^ type in one of your recent PRs16:39
stickupkidI wonder why we never used middleware for auth of facades16:45
stickupkidused composition rather than logic checks16:46
* stickupkid thought of the day16:46
nammn_deachilleasa:  So I used ModelOperation for the PRs16:51
nammn_deso no real throughts on the settingsgroup refactor. Their write would comply with applyoperation.  Modeloperation I think16:53
nammn_debut it does make sense. As they comply both16:53
achilleasanammn_de: can you point me to that PR?16:53
nammn_deachilleasa: https://github.com/juju/juju/pull/11143/files#diff-c2f3a22eae3088d2abd0727df01272e4R216:54
nammn_deopfactory.go and rename.go16:54
achilleasathanks!16:55
nammn_destickupkid: yeah, would be really cool.16:55
achilleasamanadart: nammn_de actually the SettingsGroup is still required because my use-case requires persisting multiple *Settings in a single txn. I will make it into an operation for consistency17:19
roadmrrick_h: hey there :)17:26
* roadmr about to pester Rick again heh17:26
rick_hroadmr:  howdy17:26
rick_hpester away17:26
roadmrrick_h: so the list of urls that juju hits, that you obtained from logs17:27
roadmrrick_h: it has method, url, query string basically. right?17:27
rick_hroadmr:  right17:27
roadmrrick_h: would it be possible to get user-agent as well?17:28
roadmrrick_h: with that we can first weed out non-juju clients and have a better idea of what juju itself needs17:29
rick_hroadmr:  all those are a generic "go client" user agent17:29
roadmrrick_h: also lets us see how the api access patterns differ between our targeted juju versions (1.25 and 2.x IIRC)17:30
rick_hroadmr:  and juju and the charm command are the only ones I am aware of17:30
roadmrrick_h: ahh that's super unfortunate :( whaat17:30
roadmrrick_h: ah but the charm command is python, right? most likely not a go client string17:30
roadmrrick_h: I'd settle for being able to weed out non-jujus17:30
rick_hroadmr:  so the charm command is a mix of go and python.17:30
roadmrargh :)17:30
rick_hroadmr:  trying to recall, I thought I weeded out obvious charm commands17:31
roadmrrick_h: ah yes, you said "exact requests we're getting form go clients (juju)"17:31
rick_hroadmr:  as far as different Juju's, my first instinct is forget juju 1.2X as the only folks we care about that are internal and they use offline charms with mojo ime17:31
roadmrrick_h: ok, that sounds good17:32
rick_hroadmr:  not to say I did it perfect but do recall trying to really focus it in and did a lot of cleaning of that data17:32
roadmrrick_h: got it... doh I'm dumb, mind if we move this to #snapstore so facu can also be in the loop?17:33
rick_hroadmr:  yea, or I'd suggest the canonical #juju channel so other folks on the team can see as well17:34
thumperrick_h: do you know who to chase for https://github.com/juju/charmstore/issues/895#issuecomment-57656239620:42
rick_hthumper:  mhilton was working with rt's to folks around these when they happened. I thought this one got corrected20:44
rick_hmaybe the bug didn't get closed?20:44
* rick_h checks rt email history20:44
thumpermaybe20:44
rick_hthumper:  yea, marked as resolved20:45
=== timClicks__ is now known as timClicks
wallyworldrick_h: thumper: test passed this time no problem22:04
wallyworldwe have seen issues if the slaves are busy22:05
wallyworldthumper: btw, https://github.com/juju/juju/pull/11172 is ready for looking at22:06

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