/srv/irclogs.ubuntu.com/2019/11/05/#juju.txt

anastasiamacwallyworld: +100:06
wallyworldhpidcock: or kelvinli_: for today sometime, no rush https://github.com/juju/juju/pull/1084800:58
hpidcocknp00:59
kelvinli_wallyworld: so we wanna make it support LB? I thought this change was just for microk8s01:01
wallyworldit's for k8s in general to handle the case where our opinionated default service type isn't suitable, eg we say loadbalancer but they just want clusterip, or visa versa01:03
wallyworldand to support externalName01:03
wallyworldthis is just for controller service at the moment01:03
wallyworldto plug the gap where just cannot bootstrap due to different k8s cluster set ups01:04
kelvinli_ic01:04
wallyworldthe initial use case was microk8s to add in externalName support01:04
wallyworldbut  it's applicable everywhere really01:05
wallyworldty for review01:05
wallyworldhpidcock: for 2.7.1, this adds the proxy-update-worker to the caas operator. it's already there for the k8s controller https://github.com/juju/juju/pull/1085503:21
hpidcockalright03:21
hpidcockwallyworld: sorry got distracted, so the proxyupdater worker writes out conf files with the proxies so that hooks can use them correct?04:49
wallyworldhpidcock: that's only on iaas. for k8s (and also iaas) it unsures that http clients constructed have the proxy values set correctly04:50
wallyworld*ensures04:50
wallyworldwe already run that worker in the k8s and iaas controller04:50
wallyworldand unit agent04:50
wallyworldbut not k8s operator04:50
wallyworldjuju automatically adds the controller ip address to no-proxy04:51
wallyworldto augment anything else that the user sets. so having that worker ensures that the operator agent can always see the controller04:52
hpidcockhmm did you test exec with this?04:52
wallyworldnot exec. is it failing for you?04:54
hpidcockno I'm just trying to think of things that the operator does that isn't talking to the controller04:55
wallyworldi can't think of a pathway where it would fail04:55
hpidcockwe might need to add the k8s controller ips to the no-proxy04:55
wallyworldjuju does that automatically04:55
hpidcock10/1004:55
wallyworldit adds them to juju-no-prpxy04:55
hpidcockI mean, kube api04:55
hpidcocknot juju controller04:56
wallyworldi see that as a cluster setup thing?04:56
wallyworldoutside of juju04:56
wallyworldthe juju-proxy settings are just to make juju agents work04:56
wallyworldand charms04:56
wallyworldthe charm can see the juju-proxy values04:57
wallyworldand can use them as it needs04:57
wallyworldthat's one of the reasons why we deviated from the standard proxy values04:57
hpidcockyeah but `settings.SetEnvironmentValues()` sets env vars on the agent04:57
wallyworldyes04:57
wallyworldand we expose those JUJU_ values to the charm hook context04:58
hpidcockhmm well the vendored github.com/juju/proxy uses "HTTPS_PROXY" etc04:59
wallyworldwe use different values on purpose04:59
wallyworldso as not to interfere with any system values and let the charms decide how they want to use them05:00
wallyworldwe kept getting bit by corner cases05:00
wallyworldand decided to make the juju configured proxy values totally separate05:00
wallyworldand juju stuff (controller, agents, charms) would use those values05:01
hpidcockok so we need to document that if you specify proxy settings you may need to add your k8s apiserver address to no_proxy05:08
hpidcockdo you know if that is specified anywhere?05:08
wallyworldhmmm, in the cloud metadata endpoint?05:08
wallyworldit would be the same issue for aws or vm clouds i think05:09
wallyworldi don't think k8s api endpoint would be any different in that regard05:09
wallyworldi am not sure what our doc says off hand05:10
hpidcockok fair enough05:11
hpidcockthanks for clarifying05:11
wallyworldthere is some doc https://jaas.ai/docs/offline-mode-strategies05:12
wallyworldhttps://jaas.ai/docs/configuring-offline-usage05:12
wallyworldwhich seems to cover what to put in no-proxy05:12
wallyworldbut maybe doesn't call it out explictly05:13
anastasiamacwallyworld: tiny PR PTAL :D https://github.com/juju/juju/pull/1085807:37
wallyworldok07:38
wallyworldanastasiamac: i don't get why we don;t think controller clouds have credentials. they must have credentials as they are in use07:42
wallyworldif i add-k8s and use that cluster, there's a credental there07:42
anastasiamacwallyworld: i don't think we get this info from api...07:42
anastasiamacwhen we list clouds07:43
anastasiamacirrespective... is it really relevant for controller clouds?..07:43
wallyworldjust trying to understand the root cause07:43
anastasiamacwe'd want to list all of them, no?07:43
wallyworldfor controller i'd think so07:43
wallyworldif the user has perm to see them07:44
anastasiamacwallyworld: so whether controller clouds have creds or not, does not mater - we want them :D07:44
anastasiamacso this check is redundant and there is no need to change api..07:44
wallyworldsgtm07:45
anastasiamac\o/07:46
nammn_demanadart: can you take a quick look at this one? https://github.com/juju/juju/pull/1083310:29
nammn_dewe can change something for review :P10:29
manadartnammn_de: Looks good. 2 suggestions.11:01
nammn_destickupkid achilleasa you guys worked with it before.  Want to give a really small review? https://github.com/juju/charmrepo/pull/156 Description has reason11:06
achilleasanammn_de: looking11:07
stickupkidnammn_de, do you want to wire it up in juju and change the dep package source11:07
stickupkid?11:07
nammn_destickupkid: was planning to do so in the near future. Either I change from juju/juju how we create the repo and charmarchive or I add something to charmrepo11:08
nammn_deachilleasa manadart: ta11:08
stickupkidnammn_de, i'd get everything full end to end, so you don't see churn?11:09
nammn_destickupkid: dependenciy wise changing the place to tmp for charm testing is actually quite the hassle, I must say :/11:09
achilleasanammn_de: where are we going to use this?11:09
nammn_deachilleasa: I was planning to migrate some code here: https://github.com/juju/juju/pull/10836/files11:11
nammn_dereason: currently our charm tests are taken from the juju/juju path as a repo and used from there. Thus we create a version string from there and the tests fail because they expect us to parse the version file. Solution we discussed: Moving them to a tmp path11:11
nammn_deAs it seems a lot of tests are using the `repo` from `charmrepo`. But as it currently is, I cannot migrate the code, because it forces me to use a relative path11:12
achilleasanammn_de: fair enough; thanks for the info11:12
nammn_deachilleasa: thanks 🦹‍♂️11:13
nammn_dewoah got the feeling that i have to touch 100 places (and repos) for one small change meeeeeh xD11:14
nammn_destickupkid: before adding the repo I tried a workaround to see whether it would work here: https://github.com/juju/juju/pull/10836/files A better way would be to change the testsuite and create a tmp repo there and access it from the tests. But imo this would be more related to an additional pr.  With the new change in repo I would "just"  change11:22
nammn_dethis to be a "tmpRepo" https://github.com/juju/juju/blob/dfd597542ef537162a0ecff27e6a4095c23adc1e/testcharms/charm.go#L42 instead of "tmpArchive" Wdyt?11:22
nammn_destickupkid: for now I only changed the places where the tests failed (2 places) to use a tmpcharm instead of our repo11:23
stickupkidnammn_de, i'd go with the lightest touch atm11:23
nammn_destickupkid: great,  one the same page here11:23
nammn_destickupkid: thats the final change i suggest, if test go through. https://github.com/juju/juju/pull/1083611:57
stickupkidnammn_de, yeah, lets wait for all the tests to go through, but looks much better11:58
=== fenris is now known as Guest81494
verterokbdx: hi! found an issue with memcache interface, my proposed fix is: https://github.com/omnivector-solutions/interface-memcache/pull/213:54
nammn_demanadart: I tried to incoporate your suggestions https://github.com/juju/juju/pull/1083314:08
achilleasastickupkid: any particular reason why the root test runner is not using !/bin/bash?14:16
stickupkidbecause portability14:16
stickupkidachilleasa, i've said previously if people want to move to bash then we can do, but I think we don't really need to14:16
achilleasano 'set -e pipefail' on my box :-(14:17
stickupkidyeah, that's bitten me14:17
stickupkidTHAT is the ONLY thing I want14:17
stickupkidthe work around is to split :(14:17
stickupkidbut on the plus side it reduces complexity of a one liner14:18
achilleasastickupkid: so how can I make a helper func abort the test with an error message?14:20
stickupkidachilleasa, lets try it, we can always improve14:20
hmlstickupkid: what’s the expectation for which directory the integrations tests are run from?14:21
stickupkidhml, features should have their own, but we should have a group of tests that we expect to be groupable14:22
hmlstickupkid: i’m having “fun” with specifying the path to a local bundle yaml14:23
stickupkidhml, deploy = stuff around deploy, machines = add machines etc, cli = test failures, help messages14:23
hmlstickupkid: right14:23
hmlstickupkid: if you run main.sh blah blah blah.. .from which directory?  juju?  tests?14:23
stickupkidtests14:23
stickupkidtests is the root directory, everything changes into there and runs main.sh14:24
hmlstickupkid: rgr  got confused by “bundle” path in run_deploy_cmr_bundle()14:24
hmlstickupkid: but i can change it14:25
manadarthml: Mind taking a look at https://github.com/juju/juju/pull/10859 ?15:00
hmlmanadart:  sure15:00
manadarthml: Ta.15:00
hmlstickupkid: review pls?  https://github.com/juju/juju/pull/10860  I made some changes to the cmr bundle test in there.  Hopefully i wasn’t just running things wrong.  :-D15:00
stickupkidhml, looks spot on, let me test it15:03
hmlmanadart: do we have an O7k cloud with multiple zones to test with?15:10
manadarthml: Don't know. Both serverstack and canonistack all list just "nova".15:10
stickupkidhml, a most, it's just paths.15:21
stickupkidall*15:21
hmlstickupkid: yeah, just saw the lint failures15:21
stickupkidhml, once I applied the fixes, it worked as designed :D15:22
hmlstickupkid: ho?15:22
stickupkidhml, of course15:22
hmlmanadart:  reviewed with 2 small things.16:17
manadarthml: Thanks. The Cinder tests do verify the AZ at https://github.com/juju/juju/pull/10859/files#diff-2dc3b00e7504a446604d294e712eae0aR18016:19
hmlmanadart: ah, missed that.  ty16:20
hmlstickupkid: updated 1086016:58
stickupkidhml, https://github.com/juju/juju/pull/1086217:52
hmlstickupkid: looking17:53
hmlstickupkid: hey… though ./main.sh was the wrong way to run those tests.  :-D17:58
nammn_deif someone has time for a really small line? https://github.com/juju/charm/pull/298 Old pr forgot to remove old  logger20:55
hmlnammn_de: timClicks got there before me.  :-)20:57
nammn_deha, thanks timClicks hml was just trying to get things running under the testsuite and saw weird logging messages :-D20:58
timClicksnammn_de: shouldn't you shut down your computer?20:59
timClicksit's late there20:59
nammn_detimClicks: haha dont mind me, im leaving. Have a nice day !21:04
rick_hnight nammn_de21:07

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