/srv/irclogs.ubuntu.com/2017/07/18/#juju.txt

=== mimizone_ is now known as mimizone
=== SaMnCo_ is now known as SaMnCo
=== arosales_ is now known as arosales
=== idobos_ is now known as idobos
=== coreycb_ is now known as coreycb
=== fenar_ is now known as fenar
=== plars_ is now known as plars
=== infinityplusb is now known as infinityplusb_
=== infinityplusb_ is now known as infinityplusb
kjackal_Good morning Juju world!07:38
magicaltroutkubernetes hackers I have a snap pattern question for you10:36
magicaltroutit looks to me like you provide the snap as a resource10:37
magicaltrouthow does the charm know an upgrade is available when you push a new snap k8s version?10:37
kjackal_hey magicaltrout10:40
kjackal_we provide the snap as a resource so as to deploy on network restricted environments. The resource is usualy a zero sized file and that causes the charm to go and fetch the snap from the snap store10:42
magicaltroutah cool10:43
magicaltroutthat solves that riddle10:43
magicaltrouti snapped up openldap and wondered how best to ship it10:43
kjackal_in the config of each charm we set a channel from which the snaps are fetched (eg, 1.7/stable). Everything we push to that channel you get it transparently. So if you deploy kubernetes now you will get the 1.7/stable channel and we will be pushing (through the snap store) all the 1.7.x updates10:44
kjackal_if you want to upgrade from 1.7 to 1.8 you should follwo the upgrade instructions that involve updating the channel in the charms config10:45
kjackal_magicaltrout: ^10:45
magicaltroutah yeah the multichannel stuff as well, cause 1.7 branch updates should happen automatically right?10:46
kjackal_yes, that is ithe idea. 1.7.x releases of kubernetes should be compatible with eachother10:46
magicaltroutwhat happens when you screw everything up like conjure-up? ;)10:47
kjackal_we get fired... I guess10:49
kjackal_what do you not like about conjure-up ?10:50
magicaltrouti have no problem with conjure up10:50
magicaltroutbut there was an email sent out last night saying it was borked10:50
magicaltroutand everyone will suffer cause of the rolling updates ;)10:51
magicaltrouthttps://lists.ubuntu.com/archives/juju/2017-July/009211.html10:51
magicaltroutthat one :)10:51
stokachumagicaltrout:to be fair it wasn't conjure-up it was snapd11:31
magicaltroutindeed stokachu, I'm only ribbing ya'll, but I am curious about the checks and balances11:52
stokachumagicaltrout:yea obviously there are some additional validations that need to be made as this is a problem that affects a _ton_ of users11:53
stokachuin the same vein as how apt packages are handled11:53
magicaltroutyeah but also apt updates are generally user defined so you'd hope to find out about some massive issue on a small number of users before everyone gets it11:55
magicaltroutsnaps automatic updating makes that harder I guess11:55
rick_hwell it's trading one pain for the other. Otherwise you have folks with giant old xxx out there with holes in it left and right.11:55
rick_hbut since they're afraid of touching production, wheeeee11:55
rick_hthere was a post on that recently, let me find it. they're going to allow more control11:56
magicaltroutnice11:57
rick_hhttps://forum.snapcraft.io/t/disabling-automatic-refresh-for-snap-from-store/707/1111:57
magicaltroutlooks sensible11:58
rick_hso the agreement is some additional knobs, but fundamentally the thing is servers ship with automatic apt updates as well and someone publishes a new apt package for something it hits.11:58
rick_hI think it's generally in line on both the snap/apt side to try to help keep these production microservices/scale out stuff safe by default11:59
magicaltroutthanks for those sage words rick_h11:59
rick_hheh, haven't had my coffee yet so :P12:00
magicaltroutI was saying on the drive in this morning that it makes sense, like "install charm a", forget about it, but keept it in sync via snap updates12:00
magicaltrouti like it so its certainly a pattern I'm trying to construct for my charms going forward12:00
rick_hyea, I think for a lot of folks it's something helpful. e.g. every self hosted wordpress ever lol12:01
rick_hand it helps with that idea of CI/CD we all think is the holy grail12:01
rick_hand hopefully folks use the different channels in there to beta test/etc12:02
ak_devhttps://www.irccloud.com/pastebin/cFegoDAR/12:42
ak_devThere seems to be a problem with the above interface (peer)12:42
ak_devthe states go as such : .connected -> .unsigned.cert.available -> .signed.cert.available12:43
ak_dev.connected and .ip_request is set by the first charm and .master_ip.available and .signed.cert.available are set by theother12:44
ak_devsomehow, the relation state does not change after".signed.cert.available" , anything I could be doing wrong?12:45
ak_devthe ideal states should be such : .connected -> .unsigned.cert.available -> .signed.cert.available -> .ip_request -> .master_ip.available12:45
ak_devthank you!12:45
xnoxhi13:28
xnoxwhere is the source code for https://jujucharms.com/u/containers/kubernetes-master/ ?13:28
xnoxthe git tree and/or bzr tree? i'm failing to find it.13:29
=== rogpeppe1 is now known as rogpeppe
xnoxfound it at https://github.com/kubernetes/kubernetes/blob/master/cluster/juju/layers/kubernetes-master/config.yaml13:30
xnoxfinally13:30
kjackal_hi xnox the code for the kubernetes charms are pushed upstream, give me a sec to get you the link13:38
kjackal_ahh and now i saw your last two lines!13:38
xnoxkjackal_, still confused about snaps, and the "canonical distribution" charms they seem to be complicated.13:50
kjackal_xnox: this is why we are here :) Tell me!13:51
kjackal_xnox: What do you want to do?13:51
xnoxkjackal_, i'm confused what enable-dashboard-addons do and what is the contents of cdk-addons snap13:53
xnoxand what it translates upstream13:53
xnoxi guess my lack of understanding of kubernetes itself and their addons shows now.13:54
kjackal_xnox: no do not loose faith! The dashboard-addons are enabled here:https://github.com/kubernetes/kubernetes/blob/master/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py#L46213:56
kjackal_they are essentialy passed as an argument to the cdk-addons snap https://github.com/kubernetes/kubernetes/blob/master/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py#L46213:57
xnoxwhich i traced to deploying charms / installing snap which is based on https://github.com/juju-solutions/cdk-addons/blob/master/get-addon-templates13:57
kjackal_cdk-addons13:57
kjackal_https://github.com/kubernetes/kubernetes/blob/master/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py#L46913:57
xnoxbut i'm confused as to what is inside the cdk-addons snap =) https://github.com/juju-solutions/cdk-addons13:57
kjackal_you got it!13:58
kjackal_Lets see13:58
xnoxoooh, but https://github.com/juju-solutions/cdk-addons/blob/master/Makefile is hm. building cdk-addons.yaml from kubernetes upstream ?!13:58
kjackal_Yes, https://github.com/juju-solutions/cdk-addons/blob/master/Makefile will grab the addons from upstream and package them as snaps14:00
kjackal_xnox: here is what gets enabled by the addons flag: https://github.com/juju-solutions/cdk-addons/blob/master/cdk-addons/apply#L3014:02
xnoxkjackal_, but that for example does not deploy influxdb or grafana services, these should be deployed by something else already right? E.g. grafana charm?14:02
xnoxhm.14:04
kjackal_xnox: you need something like this: https://jujucharms.com/canonical-kubernetes-elastic/ ?14:04
xnoxunless enabling the dashboard plugin, pulls grafana k8s container image, and deploys grafana as a k8s container in the k8s cluster.14:04
xnoxkjackal_, i mean if i do juju config kubernetes-master enable-dashboard-addons=true as advised on14:05
xnoxAccessing the Kubernetes dashboard section14:06
xnoxwhere would influxdb and grafana come from. Do i need to provide them (e.g. my influxdb is available at influxdb.example.net on my network)14:06
xnoxor would grafana charm be deployed in my environment14:06
xnoxor would a grafana k8s contaienr image be deployed in my juju environments' k8s cluster.14:06
kjackal_xnox: based on https://github.com/juju-solutions/cdk-addons/blob/master/get-addon-templates#L92 the yaml files that would be applied are found in https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/cluster-monitoring/influxdb14:09
joedborghey all, is there a way to find a controller name, even if juju status won't respond (because the controller has gone)14:09
kjackal_xnox: And that should include the services deployed within kubernetes14:09
xnoxkjackal_, ack.14:10
kjackal_xnox: for example here is a docker image that gets deployed: https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/cluster-monitoring/influxdb/influxdb-grafana-controller.yaml#L2414:10
kjackal_joedborg: try cat ~/.local/share/juju/controllers.yaml14:11
joedborgcheeers kjackal_14:12
kjackal_anytime14:13
xnoxkjackal_, thanks.14:15
=== kjackal_ is now known as kjackal
Budgie^Smoremorning 0/ juju world14:50
ak_devhello, could anyone please help me out on the peer relation bug which I posted?15:41
Purnenduis it possible to disconnect the JUJU controller and connect it back again18:07
bdxPurnendu: yea!19:55
ak_devkjackal:21:29
ak_devopen_port did not work on the CENGN pod it seems21:29
ak_devdont know why exactly though21:30
infinityplusbmorning! How can I kill an application deployed into Juju? I have one that is stuck in some sort of loop and won't finish trying to install. I'd rather just kill it and redeploy if such a thing is feasible?23:03

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