/srv/irclogs.ubuntu.com/2017/04/24/#juju.txt

=== Guest76746 is now known as med_
=== jac_ is now known as jac_cplane
=== jac_ is now known as jac_cplane
kjackalGood morning Juju World!07:21
=== admcleod_afk is now known as admcleod
magicaltroutits average at best09:13
magicaltroutit is monday after all09:13
admcleodwhos a little mr grumpypants09:13
blahdeblahHi all.  juju add-model has a --credential flag; is there a way to set this after the model has been added? or show which credentials are in use for a model?09:13
magicaltrouttoo much wine, too little sleep ;)09:14
blahdeblahmagicaltrout: That'll do it every time09:14
magicaltroutindeed09:14
magicaltrouti never learn09:14
admcleodblahdeblah: well, if you're in the model, you can 'juju add-credentials'09:16
admcleod-s09:16
blahdeblahadmcleod: I was about to ask whether that did the same thing09:16
=== petevg_afk is now known as petevg
cnfbtw, is there a proxmox provider for juju?14:20
=== bdx_ is now known as bdx
cory_futvansteenburgh: For https://github.com/juju-solutions/interface-kube-control/pull/2 can you point me to the charm that uses that layer?  Is it kubes-master?15:35
tvansteenburghcory_fu: yeah, thanks for looking at that15:35
tvansteenburghcory_fu: https://github.com/kubernetes/kubernetes/blob/master/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py15:36
cory_futvansteenburgh: Thanks15:36
cory_futvansteenburgh: I assume the issue is that https://github.com/kubernetes/kubernetes/blob/master/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py#L308 is triggering when there are still workers (or whatever they're called)?15:38
tvansteenburghcory_fu: https://github.com/juju-solutions/interface-kube-control/issues/115:39
tvansteenburghcory_fu: so, yes15:39
cory_futvansteenburgh: That's very odd.  That's not a peer relation so I can't see any way it should be affected by scaling.15:41
cory_futvansteenburgh: Deploying to see if I can replicate15:44
tvansteenburghcory_fu:  oh. i think the problem is on the worker side.15:44
tvansteenburghcory_fu: you remove a master, and then all the workers think they're not connected, when they are in fact still connected to the other master15:44
cory_fuHrm.  Looking at the requires now15:44
cory_futvansteenburgh: Hrm.  Logic still seems fine.15:47
cory_futvansteenburgh: When my kubes-core finishes coming up, I'll debug at it a bit15:48
tvansteenburghcory_fu: tyvm15:48
kwmonroecory_fu: is it frowned upon to use @hook('upgrade-charm')?  on upgrade, i want to re-trigger an install() method that typically prevents a re-trigger by setting an 'installed' state.  i'd like to remove this state on upgrade and can either do it with @hook, or set additional kv data that i can use in a data_changed handler. is one way better than the other?16:22
kwmonroe.. keeping in mind that i don't currently have a data_changed handler, so it would be a new function either way.16:24
cory_fukwmonroe: There's not really an alternative at this point.  I'd like to remove the need for it, but I think upgrade-charm is probably the best case for @hook.16:28
cory_fukwmonroe: Though, if you're talking about upgrade-charm being triggered by a new resource, rather than new charm code, you could use data_changed (or I think there is a file_changed helper as well) instead if you wanted16:29
kwmonroecory_fu: both attach triggers upgrade-charm, which triggers config-changed, right?  if so, i think i'll use a when(config.changed) with appropriate data_changed conditions in it.16:32
kwmonroes/both//16:33
cory_fukwmonroe: Yeah, I think that's right and will work16:34
cory_futvansteenburgh: Added a comment on https://github.com/juju-solutions/interface-kube-control/issues/116:52
cory_futvansteenburgh: TL;DR is that the issue is the GLOBAL scope16:52
tvansteenburghcory_fu: yeah, that makes sense :/16:52
bdxkubernetes-peeps: how can I set EXTRA_DOCKER_OPTS on the kubelets .... can I just "snap set kubelet insecure-registry=10.0.0.0/8" ?17:54
lazyPowerbdx: i've been following along with 1685782 - :(  just added some bug heat there too17:54
lazyPowerbdx: that should be the case, yeah. Is that something you need exposed in the charms?17:55
bdxlazyPower: using a mix of @SaMnCo's blog and my own findings, I have a working CDK + deis ... its amazing17:55
lazyPowerbdx: <317:55
lazyPowerfan-freaking-tastic news17:55
lazyPowerkeep notes on your pain points for issues and I'll be happy to get those on our next planning cycle17:55
bdxlazyPower: yea, thanks for the heat there... I had to focus somewhere else, as all my other ops are blocked by that darn bug17:56
bdxI'm beside myself as to how that made its way into a release17:56
bdxbut whatever17:56
lazyPowerbdx: I know you're going to find more dragons in our charms using spaces, just be aware that testing that particular scenario historically hasn't been heavily invested in, and we do indeed need to add that to our future roadmap17:57
SaMnCobdx: awesome! Let us blog about this. Today I met with riseML they do a sort of PaaS for Deep Learning17:57
bdxlazyPower: ok17:57
lazyPowerwe're going to need to add support for extra bindings and spaces and get some test suites written around that. Its an eventual certainty17:57
SaMnCoWill probably need some of that XP for them as well17:57
* lazyPower silently sets modifier to 2x xp rates on the server17:58
lazyPowermagicaltrout: speaking of xp and server rates, i found an older container build for ark servers thats even better than what i sent over. Would love to collab with you on a chart if thats something you're interested in.17:59
bdxSaMnCo, lazyPower: so ... my problem with the registry (one that I've hit before) can be found here https://github.com/deis/registry/issues/6417:59
bdxSaMnCo, lazyPower: I've applied the patch (near the bottom) to the workflow ... now I just need to add some EXTRA_DOCKER_OPTS to my kubelets17:59
bdxfor the insecure local registry https://deis.com/docs/workflow/en/v2.2.0/installing-workflow/system-requirements/#docker-insecure-registry18:00
lazyPowerbdx: yeah, your snap config kubelet should work a treat for that, we dont do any validation so you can pass malformed config all day ;)18:00
bdxso I need to set EXTRA_DOCKER_OPTS="--insecure-registry=10.0.0.0/8"18:00
bdxok18:00
bdxsweet18:00
lazyPowerCynerva: or ryebot  may correct me, but i'm 98% certain thats the case18:00
lazyPoweras they were teh primary authors of that feature of the snap(s)18:00
* ryebot catches up18:01
ryebothmm18:04
ryebotThat's an env var for kubelet?18:04
ryebotpretty sure our config handling only works for cli args18:05
bdxdo the kubernetes charms allow for setting EXTRA_DOCKER_OPTS somewhere?18:06
ryebotHmm let me see18:07
bdxryebot: sudo docker -d --insecure-registry 10.0.0.26:500018:08
bdxit is a cli opt18:08
ryebotNot that I can see, correct me if I'm wrong lazyPower or cynerva18:08
ryebotah I see it18:08
ryebotlooks like layer-docker has an extra-opts configuration setting18:09
ryebotso if you do a `juju config kubernetes-worker`, you should see a `docker-opts` configuration you can alter18:09
bdxryebot: so, which should I favor then?18:10
ryebotbdx: afaict using docker-opts is your only option18:10
bdxryebot: if you don't mind me asking, why can't/shouldn't this be done via `snap set`?18:11
ryebotbdx: looks to me like it's a docker config, which is currently exposed via layer docker18:11
ryebotbdx: so, I don't think there's currently a snap config that would work18:12
bdxryebot: doesn't the snap config accept all cli args?18:12
ryebotbdx: it does for our k8s snaps, but we're not currently snapping docker itself, just the kubelet half of that relationship18:14
bdxryebot: I see. thx18:14
ryebotbdx: no problem, feel free to ping me if you hit any roadblocks18:14
bdxrybot: thanks18:15
lazyPowerbdx: well DOCKER_OPTS is a thing, but do you need to pass this along to kubelet as well?18:16
lazyPowersorry i was afk otp18:16
lazyPowerryebot: bdx: yeah setting the dockeropts should satisfy this looking at it. If you come up with issues with kubelet lmk and we can work through that nuance.18:19
ryebotthanks lazyPower18:19
skay_hm, on my juju2 deployed system my landscape-client is failing in the config-changed hook because it has missing info from juju, but I'm not familiar enough with the landscape client to know exactly what is causing it. anyone here familiar with it?18:21
skay_it's expecting to get environment-uuid from a juju config file. I'm not sure where that lives18:22
skay_happens around here https://bazaar.launchpad.net/~landscape/landscape-client/trunk/view/head:/landscape/broker/registration.py#L192 and it's reading a json file somewhere, as you can see here https://bazaar.launchpad.net/~landscape/landscape-client/trunk/view/head:/landscape/lib/juju.py18:24
=== cnfer is now known as cnf
=== bdx_ is now known as bdx
=== hbaum_ is now known as hbaum
erik_lonrothHello. I was trying to deploy to a "centos7" series on my local lxc controller and it didn't seem to work. As this would to me seem like a key functionality - is there anyone that can tell me what I need to do to make this work ?20:57
erik_lonroth__This is how I try to deploy: juju deploy ~/git/juju/charms/hello-world --series=centos720:58
erik_lonroth__Juju outputs: juju deploy ~/git/juju/charms/hello-world --series=centos720:59
erik_lonroth__oops20:59
erik_lonroth__Deploying charm "local:centos7/hello-world-2".20:59
erik_lonroth__But after that.... juju status shows Machine as "down" and lxc shows no machine has been spawned.21:00
lazyPowererik_lonroth__: it can take a few moments for the lxd provider to download the cloud image. How long has it been since you issued the deploy command?22:52
=== zerick_ is now known as zerick

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