/srv/irclogs.ubuntu.com/2017/02/17/#juju.txt

=== frankban is now known as frankban|afk
Budgie^SmoreOK well that explains why I could use this nick earlier01:36
bdx=104:21
kklimondahow do I change location from which Juju downloads lxc images?07:03
=== frankban|afk is now known as frankban
ZiclazyPower: this RESTARTS column stress me a bit, but since I scaled them 1->5, at least they do not restart at the same time, so no interruption normally... do you have this kind of behavior in your labs? it's the same "spec.containers{dnsmasq}    Warning    Unhealthy    Liveness probe failed: HTTP probe failed with statuscode: 503" error at everytime09:25
Zichttp://paste.ubuntu.com/24012539/09:25
Zic(oh, I'm not polite today : Hello!)09:26
=== Guest49556 is now known as CyberJacob
SimonKLBim unable to view the charmpage of my unpublished charm in the new charmstore gui10:00
SimonKLBi can see the charm in my list of charms, but when i click on the "View" button it says "There was a problem while loading the entity details. You could try searching for another charm or bundle or go back."10:00
=== CyberJacob is now known as Guest40250
=== Guest40250 is now known as CyberJacob
=== scuttlemonkey is now known as scuttle|afk
rick_htvansteenburgh: ping14:02
tvansteenburghrick_h: yo14:02
rick_htvansteenburgh: hey, can I steal a few minutes to talk libjuju usage stuff sometime?14:02
tvansteenburghrick_h: yeah sure14:02
=== kirkland` is now known as kirkland
lazyPowerZic - no, my dns container has 4 restarts in 61 days15:23
lazyPowerZic -  i'll shop it around though see what IS is seeing in their long running deployment15:24
rick_htvansteenburgh1: is this a not yet done method then? https://github.com/juju/python-libjuju/blob/master/juju/controller.py#L20915:43
tvansteenburgh1rick_h: correct15:45
=== tvansteenburgh1 is now known as tvansteenburgh
tvansteenburghrick_h: if i know someone needs it i'll prioritize it, so you can either file a bug for that, or take a shot at implementing it and post a PR15:47
rick_htvansteenburgh: yea, just poking at the facade stuff and will see what I can do ty15:47
ZiclazyPower: we have 124 pods which is running (if it's tied to the number of pods)15:56
lazyPowerZic - well i only have 36 running, and only 1 dns pod15:57
lazyPowerZic - so your deployment volume is much higher. have you been watching the resource utilization of the pod in the dashboard?15:58
lazyPoweris the DNS service using quite a bit of ram? any conntrack table issues in the logs?15:58
lazyPowerZic - i ask because rimasz found some issues with a competing solutions dns deployment, it filled up the conntrack table and started dropping packets like crazy before the pod itself was terminated due to failing health checks.15:58
lazyPowerthat *might* be a similar situation but i doubt it, i would think you'd have found other issues as a symptom if that were the case15:59
ZiclazyPower: I got some dnsmasq[1]: Maximum number of concurrent DNS queries reached (max: 150) logs that I success to collect directly via `docker logs` (kubectl logs on the kube-dns pod returned nothing)16:25
Zicit's maybe the problem16:26
lorenzotomasiniHi *, i am trying to implement a python juju client, but when using the modle.deploy() i get an error:16:51
lorenzotomasiniException in thread Thread-6:16:51
lorenzotomasiniTraceback (most recent call last):16:51
lorenzotomasini  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner16:51
lorenzotomasini    self.run()16:51
lorenzotomasini  File "/usr/lib/python3.5/threading.py", line 862, in run16:51
lorenzotomasiniin the doc i found16:52
lorenzotomasini :param str to: Placement directive, e.g.::16:52
lorenzotomasini            '23' - machine 2316:52
lorenzotomasini            'lxc:7' - new lxc container on machine 716:52
lorenzotomasini            '24/lxc/3' - lxc container 3 or machine 2416:52
lorenzotomasini            If None, a new machine is provisioned.16:52
lorenzotomasinibut actually passing the simple machine number gives me the above error16:52
lorenzotomasinican somebody give me a hint?16:52
lorenzotomasinithanks in advance16:52
magicaltrouttvansteenburgh: -^16:52
tvansteenburghlorenzotomasini: can i see your code and the full traceback?16:54
lorenzotomasinisure16:54
lorenzotomasiniso my code16:55
lorenzotomasiniasync def deploy_local_charm(charm_dir_path, application_name, number_of_units, machine_number=None, model=None):16:55
lorenzotomasini    application = await model.deploy(charm_dir_path,16:55
lorenzotomasini                                     application_name,16:55
lorenzotomasini                                     num_units=number_of_units,16:55
lorenzotomasini                                     to=str(machine_number))16:55
lorenzotomasini    log.debug("deployed application: %s", application)16:55
lorenzotomasiniand the full stack is:16:55
lorenzotomasiniTraceback (most recent call last):16:55
lorenzotomasini  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner16:55
lorenzotomasini    self.run()16:55
lorenzotomasini  File "/usr/lib/python3.5/threading.py", line 862, in run16:55
lorenzotomasini    self._target(*self._args, **self._kwargs)16:55
tvansteenburghlorenzotomasini: please put it in a pastebin16:55
magicaltroutho ho ho16:56
lorenzotomasinihttps://p.rrbone.net/paste/F3bTxZTB#Z1bY+UVIQ-t10wSxo5fHIpgaxppO58da3fgBGXUt2w/16:56
tvansteenburghlorenzotomasini: okay, and what is the value of machine_number?16:57
lorenzotomasini112, int16:57
lorenzotomasiniwhat should it be?16:58
lorenzotomasiniactually it is a str16:59
petevglorenzotomasini, tvansteenburgh: the docstring is dated, and it's my fault. Sorry :-/  You need to pass a list to "to".17:00
petevgSo ['112'] should work.17:00
lorenzotomasinipetevg: i try this thanks17:01
tvansteenburghi think it also needs to be parsed17:01
petevgtvansteenburgh: you're right.17:01
lorenzotomasinitvansteenburgh: sry my phyton is not really good, how should i parse it?17:03
tvansteenburghto=placement.parse(machine_number)17:03
tvansteenburghfrom juju import placement17:03
petevglorenzotomasini: your Python isn't at fault. It's a tricky bit of code. (Thank you, tvansteenburgh)17:03
tvansteenburghsomething like that17:03
lorenzotomasiniah but machine_number still has to be list of string or just str ?17:04
tvansteenburghjust string, placement.parse will convert it17:04
lorenzotomasiniok thanks17:04
lorenzotomasinii'll let you know in some minuts17:04
tvansteenburghlorenzotomasini: example here https://github.com/juju/python-libjuju/blob/master/juju/application.py#L9117:05
petevgtvansteenburgh: I'll submit an update to the docs shortly.17:05
tvansteenburghpetevg: thanks!17:06
petevgnp17:06
lorenzotomasinifound this17:08
lorenzotomasinito=placement.parse(str(machine_number))17:08
lorenzotomasinifrom juju import placement17:09
lorenzotomasinitvansteenburgh: I have another question… is there a command in the sdk for executing the "juju add-machine ssh:<ip>" , i was not able to find it17:10
lorenzotomasinitvansteenburgh: unfortunately the placement did not fix it https://p.rrbone.net/paste/So9PLneL#CsMGASLtg54WhuTbZkR39baUi-Is5bC4aSh8uPTnAyT17:11
tvansteenburghlorenzotomasini: re: add-machines https://github.com/juju/python-libjuju/issues/5117:12
tvansteenburghlorenzotomasini: need to see your code17:12
lorenzotomasinitvansteenburgh: https://p.rrbone.net/paste/IVbSnOTe#d7jeohncqjo5SN437DmHLP9A5amB4fKe2VBcoi6udlS17:13
tvansteenburghahhh17:14
tvansteenburghto=[dict(scope='#', directive=str(machine_number))]17:16
tvansteenburghlorenzotomasini: try that ^17:16
lorenzotomasinitvansteenburgh: ok now i get a different error but that is my fault17:21
lorenzotomasinitvansteenburgh: thanks17:21
lorenzotomasinitvansteenburgh: but…. when i fixed the last error, i got… this one17:29
lorenzotomasinihttps://p.rrbone.net/paste/gccTi3Fr#O7+-2oKOX6V2b6L8nzMRsd+6Agbs1nfc1C5FziEimIM17:29
tvansteenburghhmm17:30
=== scuttle|afk is now known as scuttlemonkey
tvansteenburghlorenzotomasini: seems to be a bug17:38
tvansteenburghlorenzotomasini: i'll work on a fix for this17:44
lorenzotomasinitvansteenburgh: ok thanks, will this be included in an official release? if so, any chances of including the #51 github issue fix?17:47
tvansteenburghlorenzotomasini: yes and yes17:47
lorenzotomasinitvansteenburgh: and last and most critical question: when do you think will this be available?17:48
tvansteenburghlorenzotomasini: early next week probably17:48
lorenzotomasini:)17:48
lorenzotomasiniok thanks17:49
tvansteenburghif you want to hack the libjuju source i can tell you how to work around the placement bug in the meantime17:49
lorenzotomasiniyeah sure17:50
tvansteenburghlorenzotomasini: comment out these lines https://github.com/juju/python-libjuju/blob/master/juju/model.py#L932-L93717:51
lorenzotomasinitvansteenburgh: I see a placement-fix branch… is it already fixed there?17:51
tvansteenburghlorenzotomasini: no that was just a docstring update17:52
lorenzotomasinitvansteenburgh: ah ok, if i comment these two lines it will still deploy on the machine i chose right?17:52
tvansteenburghlorenzotomasini: yeah, it should17:52
lorenzotomasinitvansteenburgh: what shoul i put then here? https://github.com/juju/python-libjuju/blob/master/juju/model.py#L100318:13
lorenzotomasiniplacement=to,18:14
tvansteenburghyeah18:14
erlonguys does anyone know where to configure the proxy setting for juju 2.018:34
erlonit use to be like this in 1.2.2 'juju set-env'18:34
kwmonroeerlon: i believe it's 'juju model-config [http|https|no]-proxy=foo'18:51
erlonkwmonroe: hmm, thanks ill try18:52
kwmonroeerlon: i also think you can adjust model defaults so that subsequent add-model calls will use your proxy settings:  juju model-defaults *-proxy=foo18:53
kwmonroeand whilst on the subject, you can see which proxy vars are supported with:  juju model-config | grep proxy18:54
cory_fukwmonroe: Hey, when you run java-devenv through cwr-ci, are you getting the "NoneType has no attribute series" error from charm proof still?18:56
kwmonroenegative cory_fu: http://juju.does-it.net:5000/build_bundle_java_devenv/1/report.html18:57
cory_fukwmonroe: ok, thanks19:02
=== frankban is now known as frankban|afk
stormmoreare we having fun yet Juju world?19:36
kwmonroejuju deploy lunch --to belly19:41
stormmoreseriously, this disconnect crap has got to stop, didn't have this issue on windows20:54
cory_fukwmonroe: I think you were right to push back on "sleep 10" as a work around for the "unremovable model" issue.  I can reproduce this on the CLI with `juju add-model foo; juju destroy-model -y foo`21:37
cory_fuLooking for an existing bug now21:37
cory_fukwmonroe: https://bugs.launchpad.net/juju/+bug/163505221:39
mupBug #1635052: Destroying model shortly after creation results in endless loop <ci> <destroy-model> <juju:Fix Committed> <juju 2.0:Won't Fix> <juju 2.1:Fix Committed> <https://launchpad.net/bugs/1635052>21:39
=== mup_ is now known as mup
kwmonroecory_fu: thx for finding a faster repro.  i do loathe "sleep x" as a fix for anything, except insomnia.21:58
cory_fukwmonroe: Can you test it on the latest beta?22:04
kwmonroecory_fu: is rc2 out?22:09
cory_fuNot that I'm aware of.  Did you still see this on beta5?22:09
cory_fuWait, is rc1 out already?  My snap didn't update22:10
kwmonroeheh, rc2 is out22:10
kwmonroeread your mail cory_fu!22:10
cory_fuha22:10
cory_fuI guess I need to switch from --channel=beta to --channel=candidate22:10
kwmonroehey cory_fu, looks like this was fixed in rc1.  def fails in 2.0.3, but rc1+ looks ok:  http://paste.ubuntu.com/24016323/22:29
cory_fuGood to know22:30
kwmonroeyeah i guess good for you.. now i've got an undestroyable model hanging around.22:31
cory_fuheh22:31
cory_fuIf it doesn't have any units, it's not really doing any harm.22:31
kwmonroeit harms my ocd cory_fu22:31
cory_fu:)22:32
ayandoes anyone here use the go 1.8rc3 package?  if so, how do you get /usr/bin/go to point to the right binary?  update-alternatives doesn't seem to know about it.22:49
stormmoreis it bad that I am using Ansible to boot strap my Juju environment?!?!22:58
kwmonroestormmore: you could shake magnets over a hard disk to bootstrap your juju env and i wouldn't be mad.23:04
kwmonroe(as long as you don't ask for help)23:05
bdxmbruzek, lazyPower: how can I specify a ssl key/cert for the kube-api-endpoint? It seems I need the fqdn of my kube-api-endpoint to exist in the SANS of my key/cert used on the kube api endpoint (kubernetes-master). The privately signed key/cert from easyrsa give kubernetes gives me  an "untrusted authority" error when trying to register workflows via kube-api-endpoint. I'm trying to specify a publicly signed23:20
bdxwildcard cert there for my domain, but I think I need to add the kub SANS to it as well, via chain or something. Hoping to try and flesh out what my options are here ....23:20
bdxoh my ... I just found the work around I think, there is an '--ssl-verify' bool arg that can be fed to deis23:30
bdxhttp://paste.ubuntu.com/24016692/23:31
stormmorekwmonroe, really I am having Ansible bootstrap MaaS as well as Juju since Juju requires an existing controller23:33

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