/srv/irclogs.ubuntu.com/2019/09/26/#juju.txt

eloxmorning08:57
achilleasamanadart: still reviewing your PR. In the meantime can you double-check something for me?10:14
manadartachilleasa: Yep; what is it?10:14
achilleasaI believe that the state code does not currently handle endpoint additions/deletions when upgrading charms. For example, the `AllEndpointBindings` model method pulls the data from mongo. But if the new charm adds/removes bindings we will get back an incorrect list10:22
nammn_demanadart and stickupkid: mind if you could take a look again? I added some things and left some comments there https://github.com/juju/juju/pull/1065210:24
manadartRighto. nammn_de's is approved. Looking at your thing now achilleasa.10:49
achilleasamanadart: out of curiosity, why are the slices in constraints/Value pointers?10:57
manadartachilleasa: So the difference between not set and set to nothing can be told.10:59
achilleasamanadart: I get why we want this for scalars but does it make a difference for slices (empty vs not set)?11:00
manadartachilleasa: It matters for Tags, but it doesn't look like it for the others.11:07
stickupkidmigration has soo many tests :|11:10
rick_hstickupkid:  what's the comment in your github actions PR referring to? Anything I can help out with?12:22
rick_hmanadart:  hah, I started reading that spaces bug last night but after a while had to mark it something to come back to12:23
manadartrick_h: There is another one along similar lines in my stack. I'm looking at that code right now.12:26
stickupkidrick_h, was trying one way then another, there are two ways to do github actions (nice!), but I think I've got the container started, just need to get the right location12:46
rick_hstickupkid:  ah cool12:47
stickupkidrick_h, also i'm going to relax what is required for running the static analysis as we don't actually need a juju12:47
rick_h"need a juju"? as in building Juju?12:48
stickupkidrick_h, i was messing around whilst waiting for a meeting12:48
rick_hvs just static hitting the code?12:48
stickupkidrick_h, yeah, exactly12:48
rick_hgotcha, yea makes sense12:48
nammn_demanadart: could i have a quick look again? I added your points. But Azure has additional constraints, which are alias constraints, Therefore the unit tests failed (good catchup!). Added a comment for you and 2 ways to solve it.  https://github.com/juju/juju/pull/1065213:10
stickupkidnice got it working - finally13:42
manadartnammn_de: Commented. Keep the old way for Azure. I think you can go ahead and merge it.13:50
stickupkidmanadart, what's provider id in terms of a subnet? is this maas only stuff?14:37
manadartstickupkid: No, other providers use it - AWS, OCI, Openstack. It's literally what's on the tin - the provider's identifier for that subnet.14:39
stickupkidright, ok cool14:39
manadartIt will now be used to uniquely identify subnets (CIDR and provider ID) being the candidate key. So we can have the same CIDR from different networks.14:40
manadartCIDR plus provider ID will ensure uniqueness across all providers. For example on manual, provider ID will always be "", so CIDRs will have to be unique there.14:40
stickupkidah, that's interesting for manual14:41
manadartnammn_de be landin'14:44
nammn_demanadart: thx for the review. juhu first pr merged 💥14:46
rick_hnammn_de:  woooo! congrats!14:48
rick_hnammn_de:  what's awesome is that then you can see it in action in the edge snap that builds every 4ish hours14:48
rick_hnammn_de:  please make sure to mark the bug fix-comitted and that the milestone is set to the 2.7 one if it was landed in develop14:49
nammn_derick_h: will do :D!14:51
stickupkidnammn_de: congrats14:51
nammn_derick_h and achilleasa: just saw this one https://bugs.launchpad.net/juju/+bug/1812980 as fix commited. In Trello it is assigned to me. Is it done?14:53
mupBug #1812980: try again should not be logged as an ERROR <bitesize> <juju:Fix Committed by achilleasa> <https://launchpad.net/bugs/1812980>14:54
rick_hnammn_de:  hmm, I guess just double check. I must have missed the fix-comitted14:55
rick_hand we never got it released as it wasn't set to a milestone14:55
rick_hnammn_de:  so I guess just confirm and if it's setup the right way per the bug just mark it fix released at this point14:55
rick_hlooks like it was done back in Jan so must be released by now :)14:55
achilleasaI think this was one of the first things I worked on after joining :D14:56
rick_hachilleasa:  yea, I bet it was just a missed target to a milestone14:56
nammn_deachilleasa: haha okay, I will put me of the trello then14:56
nammn_dedo we link the commited fix with a pr, to make things easier to trace?14:57
rick_hnammn_de:  we can for sure14:58
rick_hnammn_de:  and always note the bug in the commit in GH (the PR)14:58
rick_hnammn_de:  so that when we go to do the changelog for a release it's easy to see if the PR that's landed ties to a bug worth highlighting14:59
achilleasanammn_de: my approach is to add a comment to the bug like "PR $link_to_pr includes the fix for $branch"14:59
aisraelIs there a way to tell the Juju API server to advertise a different endpoint? i.e., I have a lxd controller with 17070 port forwarded from the host's address, and using the manual machine provider to it. I want to add that externally routable IP address to the api endpionts advertised by the controller.15:07
rick_haisrael:  setup a haproxy in front of it?15:07
rick_haisrael:  not really, it'll bind to all addresses on it's host but it's not proxy-nat aware15:08
aisraelrick_h: I've intercepted the provisioning script used through libjuju to inject the routable IP to the new machine, but when it first contacts the controller it updates the api address to the non-routable one. I think I need to make the controller itself aware of that address.15:09
rick_haisrael:  the main issue is that there's a generate cert that the client->controller use and that'll be locked to the ips I think?15:09
rick_haisrael:  hmmm, I mean on the client you can edit the list of controller addresses15:12
manadartachilleasa, maybe stickupkid: For bundles, if a "to" directive is supplied, is that exactly the same a "juju deploy x --to y" or is there some bundle based delay between machine and unit creation?15:12
rick_haisrael:  but not sure how that'll fallout to working/not15:12
manadartOh, and I specifically mean "to" a container.15:12
rick_hmanadart:  so the issue with bundles is that the machines come up first and are referenced to the machines in the bundle15:12
rick_hmanadart:  right, so lxd:0 or the like?15:13
manadartrick_h: Yep.15:13
rick_hmanadart:  there is a delay in that the bundle path does an addCharm I think and then "addUnit" vs hitting the main deploy API call which handles that15:13
manadartrick_h: Just looking at this bug. There *should* be a determination of desired spaces based on units assigned to the container, but it's falling through.15:14
manadartJust wondering if the provisioner is racing with the bundle.15:15
rick_hmanadart:  hmmm, yea not sure tbh15:15
rick_hmanadart:  the bundles getting broken down into smaller bits might be a different path but have to chase it through15:15
aisraelrick_h: Okay. I'll dig in a little deeper15:19
=== dannf` is now known as dannf
stickupkiddamn, we use a different version of yaml library in description and in juju - ah fun fun fun16:31
rick_hstickupkid:  :/16:34
achilleasastickupkid: also, check charms.v616:34
stickupkidthe yaml output is different depending on the version16:34
stickupkidgrrr16:34
stickupkidI'll fix it for description16:35
stickupkidi have no recollection of doing this https://github.com/juju/yaml/commit/2025133c382644467541934971b571f7896de32a16:41
rick_hstickupkid:  lol the git commit doesn't lie16:42
stickupkidi mean i could have been drinking tbh16:43
rick_hlol, I don't know I should be hearing this :P16:43
stickupkidhaha16:43
nammn_dewould love to get some input. Working on a better error message for the cli on some occasions. https://bugs.launchpad.net/juju/+bug/184345617:08
mupBug #1843456: [2.6.8] model-config prints a cryptic error message if a file was not found <bitesize> <cdo-qa> <juju:Triaged by nammn> <https://launchpad.net/bugs/1843456>17:08
rick_hnammn_de:  what's up?17:08
* rick_h sees a comment and reads up17:08
nammn_derick_h: was just looking into the issue and wasnt sure which way to solve would be preferred17:09
nammn_deso just added a comment with possible solutions in my mind. But maybe someone has something better in mind17:10
rick_hnammn_de:  so a couple of things. First, I think that if the key isn't found as a model-config key we can provide a better error message. "ERROR key "bundles/k8s-model-config.yaml" not found in model's config"17:13
rick_hnammn_de:  and second, if the thing is file-like (e.g. ends in yaml...I wonder if there's a pattern we've got for that already) we can check the file is resolveable/exists and error cleanly in that case "File "bunxles/k8s-model-config.yaml" is not found"17:14
nammn_derick_h: so the code does the following right now. If the file cannot be resolved we take it as a key and parse it like that. Before I can implement a proper file-like parser I need to know if a key can actually look like a path? Can a Key e.g contain an ending? key.yaml?17:16
rick_hnammn_de:  right, so my question is can we reverse that. e.g. "does this match one of the model-config keys?"17:17
rick_hnammn_de:  and if not, "does it look like a file?" and finally "if it looks like a file can I see it"17:17
nammn_derick_h: let me look, makes totally sense!17:18
rick_hnammn_de:  k, updated the bug with my notes in line with that17:19
nammn_derick_h: great, thansk!17:20

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