/srv/irclogs.ubuntu.com/2017/12/01/#juju.txt

stubvds: Last time I talked to my legal, I was told I can't bypass the clickthroughs in any way (including things like the Juju licence acceptance feature). However, if you look at the Oracle JRE distribution licence IIRC you can bundle it with software where it is required to make it work or make features work.01:09
stubvds: My interpretation being you would be able to embed the tarball in your charm or snap, but not in a charm layer. But I didn't put that interpretation to our legal.01:10
stubvds: If you want to use the Oracle JDK, the Cassandra charm requires the user to download (accepting the licence) and make the tarball available at a configurable URL. This was before Juju resources existed. It is a terrible user experience.01:13
ericjUbuntu 16.04 Installed LXD and conjure-up snap packages.03:01
ericj<ericj> ran conjure-up kubernetes03:01
ericj<ericj> made it all the way to the end and received following error:03:01
ericj<ericj> "could not fetch IP addresses and link layer devices: cannot get all ip addreses03:01
ericj<ericj> Anyone know how to resolve this?03:01
akshay__https://www.irccloud.com/pastebin/3nNyg5ZI07:37
akshay__Need help07:37
akshay__Charm deployment fails as not able it add repository "cloud-archive:pike"07:45
akshay__Please see the pastebin for exact error07:45
jrybergHi, I just started to play around with Juju and I'm impressed of the simplicity and how easy it is to bootstrap an entire Kubernetes cluster in the cloud. I do however have a question around the entire concept.  If you need to customize the entire kubernetes setup for example. Is this possible or should it only be used "as is". Will settings be ove08:14
jrybergrwritten during upgrades.  I know it's a hard question to answer but should charms be "fire and forget" or used as a base for further modifications?08:14
=== frankban|afk is now known as frankban
=== wpk_ is now known as wpk
elmaciejHello Everyone! I'm writing a charm which encapsultes a jar with some spark program. Does anyone knows how can I run action from hadoop-spark charm submit-spark during the deployment of my charm12:29
elmaciejI need your help charm masters!12:29
kjackalhi elmaciej, not sure about the masters but I can try to help12:37
kjackalhow do you write your charm? python+reactive?12:37
elmaciejyes, that was my intention, I'm doing it based on vanilla charm12:38
elmaciejand to be honest it's first charm I have to write12:38
kjackalok, no worries12:39
kjackalI would suggest you start by building the bigtop spark charm so you get familiar with the toolchain12:40
kjackallet me grab some links12:40
kjackalelmaciej: here is the bigtop project that has a number of charm layers. https://github.com/apache/bigtop12:40
kjackalthe spark layers is here: https://github.com/apache/bigtop/tree/master/bigtop-packages/src/charm/spark/layer-spark12:41
kjackalso you should try building that one first. (git clone bigtop; charm build <pathtolayerspark>)12:42
elmaciejgreat, will do it now. Thank you very much.12:42
kjackalnow you said you want to run a submit-spark during the deployment. I think you should first have to wait the deployment to finish and then submit a job.12:43
kjackalelmaciej: there is this action you ca take a look at to see how you can do a spark submit: https://github.com/apache/bigtop/blob/master/bigtop-packages/src/charm/spark/layer-spark/actions/spark-submit12:45
kjackalyour jar can be inside your version of the charm or have it served from a remote location or make use of juju resources https://jujucharms.com/docs/2.1/developer-resources12:47
elmaciejkjackal : Thanks a lot!12:54
kjackalgl hf12:54
bdxkwmonroe: mind if I continue to hassle you about Greylog stuff?16:50
kwmonroehassle away bdx!16:50
bdxI'll just start rattling off in that case16:50
bdx:)16:50
bdx1) SSL16:50
bdxgraylog has instructions for generating a key/cert and setting up ssl at the application/graylog level16:51
bdxhttp://docs.graylog.org/en/2.3/pages/configuration/https.html16:51
bdxits a bit cumbersome, and not really what I would want to go with anyway16:51
bdxI would rather just deploy an ssl terminating proxy infront of graylog16:52
bdxwith the legit trusted key/cert from my CA16:52
bdxI'm thinking I should just be able to go ahead and setup the ssl terminating proxy in front of graylog, and forward to the web/api ports - bypassing the graylog ssl setup because terminating 1 hop in front of it16:55
kwmonroebdx: agreed that an ssl proxy feels easiest.  GL needs the apache vhost proxy anyway, so just make the apache unit ssl-aware.16:55
bdxright16:55
bdxthe other thing I was thinking about16:56
bdxI've used this https://gist.github.com/jamesbeedy/d587cbf048038fb274ef4cd55c4ee3dd16:56
bdxfor quite some time16:56
bdxin front of apps that I want to terminate ssl infront of16:57
bdxI was thinking16:57
bdxit might be easier to just make the reverseproxy relation for haproxy do the right things to setup the extra frontend/backend for both 9000 on / and 9001 on /api16:58
bdxthen we could kill the apache2 middle man16:59
bdxI gave the haproxy bits a try16:59
=== frankban is now known as frankban|afk
bdxkwmonroe: https://gist.github.com/jamesbeedy/b784bfd8779fca668b536332a10be5c117:02
bdxmy thinking behind ^17:02
bdxwas such that it would just be easier to create the dict in python and just dump it to yaml17:02
bdxrather then trying to concat a bunch of templated strings inline17:03
bdxlol17:03
bdxbut what I realized17:03
kwmonroebdx: not to dissuade you from haproxy, but did you look at https://jujucharms.com/u/tengu-team/ssl-termination-proxy/?17:03
kwmonroeit's built with layer-nginx, so might handle the revproxy stuff ootb17:03
kwmonroe(plus letsencrypt support)17:03
bdxoh sick17:04
bdxsweet17:05
bdxok, so lets use that as an example instead of haproxy17:05
bdxwell17:06
bdxkwmonroe: the reason I went with haproxy, is because we have two ports that need forwarding based on the route right?17:06
kwmonroei haven't actually used it myself, but i am encouraged that it calls the ngingx.congure_site bits, which i think will auto handle 9000 and 9001/api  bits: https://github.com/tengu-team/layer-ssl-termination-proxy/blob/master/reactive/ssl_termination_proxy.py#L12117:06
bdxkwmonroe: so this https://gist.github.com/jamesbeedy/b784bfd8779fca668b536332a10be5c1#file-haproxy_reverseproxy_test-py-L1317:06
bdxwas my little bit of secret sauce17:06
bdxto accommodate the url route based routing17:07
bdxdefault / -> :9000, if /api, -> :900117:07
kwmonroeyeah bdx, i *think* graylog is doing the right thing with the http interface: https://git.launchpad.net/graylog-charm/tree/reactive/graylog.py#n32217:09
kwmonroethat is setting a "services" string for both 9000 / and 9001 /api17:09
kwmonroeand i *think* the revproxy config_site bits of the nginx layer will do the right thing with those to make them vhost templates for nginx17:10
bdxhttps://jujucharms.com/haproxy/17:10
bdxit so contrived what type the relation data is lol17:10
bdxlook at the last example for multiple backends17:10
bdxwhich is what I was trying to follow17:10
bdxbut yeah17:11
kwmonroeoof, yeah, that example is hard to follow17:11
bdxthe graylog charm is setting the correct type of data .... yaml strings17:11
bdxyeah17:11
bdxso you see how my example gist would work if we were just setting a yaml string, or even python types (just pass the dict to the relation)17:12
bdxit expresses the correct key:val in the data structure17:13
bdxit just has to get transformed into this crazy thing before it will make any sense to the haproxy / reverseproxy relation17:13
bdxlo17:13
bdx9l17:13
kwmonroelo9l fo real17:14
bdxI feel like building into this "crazy thing" any more then already has been done is just perpetuating the issue here17:15
bdxissue being the contrived data that the reverseproxy relation is accepting17:16
bdxit will never be something people will look at and be like "oh ok, I get it"17:16
bdxeven after many hours now17:17
bdx:)17:17
bdxbut I do get it, it just totally seems like the worst thing in the world17:17
bdxanyway17:18
bdxI don't even know where I was going with this17:18
bdxoh yeah, so I feel we are presented with a few not so great options here17:19
bdxgiven this isn't the most common use case, but its a pretty simple reverseproxy configuration that we should be able to support via charms w/o taking a round trip on the event horizon17:21
kwmonroeheh17:21
bdxpossibly just "making it work" with the reverseproxy is the cheapest way to short term victory with Graylog17:22
bdxand looking at possibly doing something about the reverseproxy relation in the future17:23
bdxidk17:23
bdxpossibly other people like it17:23
bdxI'm really forcing my view here17:23
bdxha17:23
bdxsorry17:23
bdxbut I feel my reasoning is justified17:24
kwmonroei think one problem is the complex example in the haproxy charm.  i don't know what those options actually do, but the http interface example for rev proxy seems much simpler: https://github.com/juju-solutions/interface-http#requires17:24
bdxgot it17:25
bdxok17:25
bdxwhat they do17:26
bdxis allow you to configure more complex proxying17:26
bdxhttps://gist.github.com/jamesbeedy/b784bfd8779fca668b536332a10be5c1#file-haproxy_reverseproxy_test-py-L1317:26
bdx^ takes care of proxying both of the routes17:26
bdx / -> 9000 and /api -> 900117:27
bdxby using the extra relation data context to configure extended routing/backend17:27
bdxits only complex because the data type/content isn't understandable17:29
bdxif was written out like this17:29
bdxhttp://paste.ubuntu.com/26090348/17:29
bdxand it said, "set the yaml string as relation data"17:29
bdxlol17:30
bdxbut that (set the yaml string as relation data) isn't even whats going on17:30
bdxits not even a yaml string17:30
bdxI still don't know what it is17:30
jose-phillipshey21:07
jose-phillipsexist a way to put a custom config21:07
jose-phillipson juju config file21:07
jose-phillipsexample i want to add something on the configuration of a charm21:07
jose-phillipscinder that is not supported on the yaml21:07
bdxjose-phillips: https://jujucharms.com/cinder/#charm-config-config-flags21:08
jose-phillipsand if i want to add it on a different stanza21:08
bdxjose-phillips: make a bug report for the cinder charm about that21:10
bdxjose-phillips: https://bugs.launchpad.net/charm-cinder21:11
jose-phillipsis exactly for this setting21:13
jose-phillips# A list of backend names to use. These backend names should be backed by a21:13
jose-phillips# unique [CONFIG] group with its options (list value)21:13
jose-phillipsenable_backends21:13
jose-phillipsalso support enable_backends21:19
bdxjose-phillips: put that in a bug please21:23
bdxand post the bug back here after you have filed it21:24
jose-phillipsok bdx thanks21:47
jose-phillipsanother question did you know where juju store the containers configuration for openstack21:47
jose-phillipsi need to create glance and cinder interface with 2 interfaces21:47
bdxjose-phillips: if you are deploying openstack to the lxd provider, you do that through lxd profile modification21:48
jose-phillipsno is kvm21:48
jose-phillipsnovakvm21:48
bdxjose-phillips: so you have maas setup?21:48
jose-phillipsyep21:48
bdxand you checked a bunch of kvm nodes into your maas?21:48
jose-phillipsyep the deployment is completed on 3 nodes21:49
jose-phillipsfor example i dont need ceph21:49
jose-phillipsbecause im using a netapp storage21:49
jose-phillipsso i take 1 node for controller and 2 for compute21:49
jose-phillipson the controller node have 2 interfaces , data and storage21:50
jose-phillipswhen juju create the containters inside of controller node21:50
jose-phillipsopenstack controller node21:50
bdxjose-phillips: you need to create a feature request tp support netapp storge21:50
jose-phillipsok21:51
jose-phillipsanother question if i modify manually cinder.conf21:51
jose-phillipswhen will be overwritted?21:51
jose-phillipsduring upgrades only21:51
jose-phillipsor restarting the container may overwrite the configuration21:51
bdxjose-phillips: modifying the config by hand is not supported in any way22:50
bdxjose-phillips: the openstack charms will keep persistence of the config files22:51
bdxmodifying it by hand will only cause you grief22:51

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