/srv/irclogs.ubuntu.com/2018/02/26/#juju.txt

=== blahdeblah_ is now known as blahdeblah
=== frankban|afk is now known as frankban
=== freyes__ is now known as freyes
=== degville_ is now known as degville
magicaltroutkjackal: stupid question but seemingly something i've not got in any of my charms... or not that I can find11:05
magicaltroutif I set a state in a reactive charm11:05
magicaltrouthow do i then unset it when the relation goes away?11:05
stubmagicaltrout: Use the newer Endpoint system and it is @when_not('endpoint.foo.joined'). With the older stuff, it is rather difficult.11:14
elmaciejMorning11:40
elmaciejQuestion about openstack charms - can I mix nova-lxd and nova-kvm hypervisors in one cloud ? it would be really cool11:40
elmaciejfrom charms in store descriptions I see that it is not possible but maybe someone know a workaround :)11:43
TheAbsentOneAre there any tomcat juju pro's here? I'm looking for the correct way to deploy the tomcat charm and connect (jndi) to a deployed mysql charm. So that I can deploy a war that uses a db from the mysql server.11:52
zeestratelmaciej: If you mean running kvm hypervisor on one host and lxd hypervisor on another host, then I imagine you should be able to deploy multiple different instances of the nova-compute charm, e.g. one for kvm and one lxd on different hosts. jamespage could probably confirm.12:06
elmaciejzeestrat:  ok, so quickly - I prepare to charm configs and deploy juju deploy --config nova-lxd.yaml nova-compute --to 1 and juju deploy --config nova-kvm.yaml nova-compute --to 212:11
zeestratelmaciej: Almost. You need to define the different deployments as different applications in juju. So you'd get something like `juju deploy nova-compute nova-lxd --config nova-lxd.yaml --to 1` where `nova-lxd` is the name of that application/deployment. Likewise with `juju deploy nova-compute nova-kvm --config nova-kvm.yaml --to 2`. Note that that you will then need to setup relations for these individually with their12:19
zeestratnew application name.12:19
gsimondonIs there a recommended production setup for bare metal for canonical kubernetes with juju?12:19
elmaciejzeestrat: that's cool, but honestly when I think about it what are the pros/cons in having nova lxd hypervisor ? just wondering also on this one to deploy manually: https://docs.openstack.org/zun/queens/install/overview.html12:21
kjackalmagicaltrout: You could have a look here: https://github.com/juju-solutions/interface-kube-control/blob/master/requires.py#L5212:24
kjackalgsimondon: what kind of setup would you expect? MaaS I guess would be nice to have so you can put cdk on top12:26
zeestratelmaciej: Depends on your use case. Are you comparing lxd to kvm?12:26
elmaciejwell from end user point of view. it will be still available as an instance in horizon so only things like latency etc will be better on lxd12:27
elmaciejright?12:27
gsimondonkjackal: nothing like MaaS, we have a custom solution for maas12:30
gsimondonkjackal: basically I know I can create a manual cloud by adding machines but when you spin up apps (units) juju tries to create a new machine12:30
gsimondonkjackal: that's the part that's confusing me in this bare metal setup.12:31
kjackalgsimondon: let me understand something, you have MaaS already setup?12:31
gsimondonkjackal: if you are talking about maas.io - no, we are not using that12:32
kjackalok, so you you want to use the manual provider over machines you already have provided12:33
gsimondonkjackal: yes.12:33
kjackalYou need to pre-provision any machines: https://jujucharms.com/docs/2.2/clouds-manual and then...12:34
kjackaldeploy the cdk bundle: https://api.jujucharms.com/charmstore/v5/canonical-kubernetes/archive/bundle.yaml12:35
kjackalBut you might need to change this bundle a bit12:36
gsimondonkjackal: I did that multiple times when I was evaluating this distribution the first time. Basically my questions would be 1) It sucks that I have to specify where to deploy apps. Is it possible to now do that? 2) If I deploy stuff from machine A, how can I use that machine to deploy apps to it? When you do juju status it will show only two machines that I manually added using add-machine but machine A12:36
gsimondonwon't be available12:36
gsimondonkjackal: 3) Is LXD something worth considering for isolation of components in this setup?12:37
kjackalgsimondon: yes, creating lxd containers will work12:39
kjackalso tou your questions: 1) in the manual provider you have the pre-rpovision you machines so you should be explicit on where each app should go 2) I guess you could add the Machine A as a cloud machine with "juju ssh ubuntu@machine-A"12:41
kjackal3) lxd should work, I know we do this trick in orange boxes when we do not have enough nodes12:42
gsimondonkjackal: Thanks, very helpful. Do you use LXD just for kubernetes master and workers or basically for everything being deployed by juju?12:43
kjackalgsimondon: have a look at how easyrsa is deployed in this bundle https://api.jujucharms.com/charmstore/v5/kubernetes-core/archive/bundle.yaml it says --to: lxd:0 This might work for you12:45
kjackalMy suggestion would be not to place workers inside an lxd container, although it should work you may run into trouble when trying to expose a docker container running inside that lxd container12:46
gsimondonAny rule of thumb on what to put in LXD and what to keep out so far?12:47
zeestratelmaciej: Yeah, so it depends if you and your users want those lxd advantages. Canonical has a nice marketing page for that: https://www.ubuntu.com/containers/lxd12:49
kjackalgsimondon: not rules, but do not put the etcds on lxd containers on the same host machine :)12:50
gsimondonkjackal: yeah, that wouldn't be so smart. :)12:51
pekkarikwmonroe: do you, or do you know any moderator in bigdata mailing list?13:17
kjackalpekkari: I saw your message do you have the charm somewhere so we can see it in action?13:22
kjackalWe would only need to deploy zookeeper, right?13:22
pekkarifor the testing is enough to deploy zookeeper kjackal13:23
pekkariI was firing the charm in my laptop, so no environment we can share and see unless we get on a hangout and show it to you13:23
=== Guest89134 is now known as zeus
kjackalI think I know what is wrong with it13:24
kjackalyou have somewhere:13:25
kjackal@when('zookeeper.started', 'leadership.is_leader', 'zkpeer.changed')13:25
kjackaldef check_cluster_changed(zkpeer)13:25
pekkariany suggestion is really appreciated, as I'm running out of ideas13:25
kjackalno, turns out I donot...13:27
kjackalits not what i thought it was, sorry13:27
pekkarisorry kjackal, my irc just crashed13:30
pekkariI'm all ears13:30
kjackalno, turns out I donot know what is wrong with it13:30
magicaltrouthttp://canacopegdl.com/images/all-ears/all-ears-9.jpg13:31
kjackalmagicaltrout: :)13:31
kjackalis github down for you people or it only me?13:32
magicaltrouthttps://cdn.head-fi.org/a/6941207_thumb.png or maybe this one13:32
magicaltroutjust you13:32
kjackalxm... it is possible to get banned from gh :)13:32
magicaltroutwith you13:33
magicaltroutanything is possible13:33
kjackalI am afraid so...13:36
pekkarikjackal: I'm starting to think it's platform related, I just tried to use xenial machines and here I can see the hook triggered with no problem: http://dpaste.com/25CB8NJ13:36
pekkarifor similarity with the end user I was using trusty13:37
kjackalIs it possible at some point you had a build without the <method_name>(self) without the self?13:38
pekkarino, I don't think so, this very same build I'm deploying now is what I was testing last friday, no modification on the code13:39
elmaciejzeestrat: kjackal: Guys, do you know when the queens go official with juju charms? queens going to be released in 2 days and it bring's the 18.04 support14:06
zeestratelmaciej: https://docs.openstack.org/charm-guide/latest/release-schedule.html14:07
elmaciejzeestrat: that's cool! thx14:08
zeestratelmaciej: If it ain't in the OpenStack Charm Guide, then you can ask the folks on the mailing list (https://docs.openstack.org/charm-guide/latest/find-us.html) or in #openstack-charms14:10
=== frankban is now known as frankban|afk
pekkarikjackal: contribution ready, thanks for the help!14:21
kjackaldid nothing, we are the ones to thank you14:21
elmaciejlast question for today guys, is there a way to set default user and password when adding a machine to the model ?15:04
=== chat is now known as Guest83894
pmatuliselmaciej, just for add-machine?15:09
elmaciejyes, I need a user to login directly not by ssh only15:09
elmaciejpmatulis: I know that these images are using the cloud-init so I was wondering on two options - rebuild the image and change the cloud.cfg or somehow passing the user data to create user during the creation15:19
zeestratelmaciej: passing user data already has some support in 2.3.1+. https://bugs.launchpad.net/juju/+bug/1535891 Note the caveats such as not being able to use the users section. Please feel free to add a new bug/request for that.15:51
mupBug #1535891: Feature request: Custom/user definable cloud-init user-data <cpe-onsite> <juju:Fix Released by hmlanigan> <https://launchpad.net/bugs/1535891>15:51
elmaciejzeestrat: Thanks for that. I'm trying to modify default curtin preseed to add the default user with oneliner15:53
=== chat is now known as Guest60542
bdxkwmonroe: I have a requirement for hiveserver2 to be hooked up to zookeeper19:41
bdxI find here https://www.cloudera.com/documentation/cdh/5-0-x/CDH5-Installation-Guide/cdh5ig_hiveserver2_configure.html, the configuration that need be mended19:41
bdxkwmonroe: I'm wondering if you have any suggestions toward managing the config xml for the bigtop software19:43
bdx?19:43
kwmonroebdx: that's gonna be tricky.  the hive-site.xml that bigtop uses is here: https://github.com/apache/bigtop/blob/master/bigtop-deploy/puppet/modules/hadoop_hive/templates/hive-site.xml, but as you can see, none of those properties are available there.  that means the charm doesn't have an easy way to set/change/manage them.19:57
kwmonroebdx: so the first step to do this right would be to open an issue for bigtop to expose those config options: https://issues.apache.org/jira/secure/Dashboard.jspa -- that requires you to have an apache jira account.  if you don't have one, it's of course easy to create, or i can open the jira for you.19:58
kwmonroeand then step 2 would be to get the hive charm to support the zookeeper interface.  that likely wouldn't be too difficult.  we'd do it very much like we do zookeeper's relation for hbase:  https://github.com/apache/bigtop/blob/master/bigtop-packages/src/charm/hbase/layer-hbase/lib/charms/layer/bigtop_hbase.py#L3019:59
kwmonroeand pass in the appropriate overrides to set the values in hive-site.xml.19:59
bdxkwmonroe: "so the first step to do this right would be to open an issue for bigtop to expose those config options" - the config options already seem to exist in hive-site.xml20:03
bdxhttps://github.com/apache/bigtop/blob/master/bigtop-deploy/puppet/modules/hadoop_hive/templates/hive-site.xml#L3920:03
bdxahhh, the concurrency option is missing20:04
kwmonroebdx: also, line 39 isn't hive.zookeeper.quorum :)  read it again20:04
bdxooooo20:05
bdxgood eye20:05
bdxdarn20:05
bdxso, cloudera just drops those properties right in there then?20:05
kwmonroewell, hive upstream probably has those options too.. the full hive-site.xml is like 1000 lines.  bigtop only uses a subset of those things that *they* support as being changeable from the default.20:07
kwmonroeso we just need to get bigtop to include options related to hive.zookeeper, and then the charms can manage them.20:07
kwmonroebdx: i need to run my kid to an appt, but should be back on in about an hour to hear you curse the day you ever mentioned expanding hive to support zookeeper.  biab :)20:08
bdx:) ok20:08
bdxhttps://imgur.com/a/f1W3r - something to think about while you are waiting at your appt20:09
magicaltroutmy biggest issue with kwmonroe's work.... is it puts hadoop in the hands of people who don't need it but don't know better ;)20:18
magicaltroutshut it all down kwmonroe20:18
bdxhey20:23
bdxcoming from someone who has ran hdfs on / for the entirety of all time20:25
bdxmagicaltrout: letting me down holmes20:26
magicaltrouthaha :)20:30
magicaltrouti'm not really directing it at you bdx, but people still bug me with "I have data, i need to deploy hadoop" and it irks :)20:31
magicaltroutbecause then they a) don't have data that requires hadoop b) don't have the volume for hadoop c) don't have the budget for hadoop d) don't have a clue how to write stuff to run on hadoop e) don't know how to monitor hadoop20:31
magicaltroutwhen all they really need is a column store DB at most20:31
bdxI see the same thing20:45
bdxhappens across all technologies20:45
magicaltrouttrue dat20:46
magicaltroutI like the ones in here20:46
=== magicaltrout is now known as jujuuser
jujuuserhello, I'm trying to deploy openstack20:47
=== jujuuser is now known as magicaltrout
magicaltroutoh really, hows that going?20:47
=== magicaltrout is now known as jujuuser
bdxmagicaltrout: we are moving a ~10TB dataset through a slew of pipelines mon20:47
jujuuserwell I have a 5 server setup, but its asking to deploy stuff via floppy disk20:47
=== jujuuser is now known as magicaltrout
bdxshoot!20:47
magicaltroutreally? What are you deploying on20:47
=== magicaltrout is now known as jujuuser
jujuuserPentium 4 machines I have lying around in my lap20:48
bdxjujuuser: where does it say "floppy disk"?20:48
=== jujuuser is now known as magicaltrout
magicaltrouthehe20:49
magicaltroutthats honestly a real story from last year20:49
magicaltrouthe was having issues because his juju powered openstack cluster was trying to boot from  floppy disk20:49
bdxno20:50
bdxlol I believe you20:51
bdxjujuuser: make sure the minimum requirements are met all the way around20:51
magicaltrouthehe20:52
magicaltroutI am excited about DruidIO coming to the Apache Foundation20:52
magicaltroutI'm gonna get that charmed up20:52
magicaltroutfor high volume timeseries stuff20:52
magicaltroutthat'll be cool20:52
magicaltrouti'm also tidying up my apache-drill charm which makes hooking up SQL apps to all these platforms much easier20:53
bdxmagicaltrout: apache-drill just hooks up to a nosql database and lets you query it with SQL?20:56
bdxmagicaltrout: what happens when you hook it up to hdfs?20:57
magicaltroutyeah its a distributed SQL interface for NOSQL platforms20:57
magicaltroutflat files, hdfs, hive, hbase, kafka, s3 are the most common ones20:58
magicaltroutso on hdfs you can query a variety of different file formats, it'll do stuff like auto schema discovery for json/csv style files, if they follow a naming strategy it can do cross file queries etc20:59
magicaltroutyou can convert files to parquet DB's quickly and easily for more effective querying at scale20:59
magicaltroutit'll push down what it can to the underlying query engine and make up the rest in memory unlike a lot of the JDBC interfaces out there21:00
magicaltroutsponsored and largely developed by MapR and a few Dell folk IIRC21:00
magicaltroutalso provides ODBC & REST interfaces for other uses21:02
magicaltroutand data federation capabilities so you can do stuff like "select * from mysql left join (select * from hbase))21:02
magicaltroutit leverages a lot of Apache Calcite which provides the SQL interface, and has a bunch of other adapters to do SQL over X21:04
magicaltrouthttps://calcite.apache.org/docs/adapter.html21:04
bdxsuper cool21:38
bdxfor anyone that cares to deploy volumes > 1T https://bugs.launchpad.net/juju/+bug/175190921:43
mupBug #1751909: turn up the volume - artificial quotas? <juju:New> <https://launchpad.net/bugs/1751909>21:43
kwmonroe1T is too much21:43
bdxno, 1T works21:43
bdxbut anything over seems to fail21:43
bdxorr ooo21:43
bdx1000 GB works21:43
bdxpossibly 1T woudl fail21:43
kwmonroehere's the thing bdx, when you get past a couple gigs, you really need hdfs.  magicaltrout, back me up.21:44
bdxoooh sorry ... I'm crossing wires here, ^ is unrelated to hdfs21:44
magicaltroutwhen IRC needs a joy emoticon21:45
kwmonroeno bdx, i'm just being hilarious.  /me just finished backscroll of how i'm pushing hadoop on people that don't need it.21:45
bdxahh yes yes21:45
bdxaha21:45
kwmonroemagicaltrout: are you still looking at ranger?23:25
magicaltroutyeah slowly23:26
kwmonroemagicaltrout: would ranger's inclusion in bigtop help you?23:27
magicaltroutabsolutely23:27
kwmonroemagicaltrout: please add ranger to https://github.com/apache/bigtop/tree/master/bigtop-packages/src to include it in bigtop.23:28
kwmonroe;)23:28
kwmonroei'm chuckling quietly23:28
kwmonroewho am i kidding, i'm totes LOL.  get it done magicaltrout.23:29
magicaltrout:'(23:29
magicaltroutsad times23:29
magicaltrouti will get around to doing something with it soon enough, I've got the LDAP bits and piees that need finishing up because they'll work for Saiku as well23:34
magicaltroutand I had the start of a ranger snap23:34
magicaltroutbut then I got sidetracked with the day job23:34
magicaltroutbut now i'm circling back around to Hadoop -> Drill -> Saiku stuff for JAAS, i have an excuse to look at it again23:35
kwmonroemagicaltrout: i know somebody on the bigtop PMC if you need support.23:48
magicaltrouti heard the Bigtop PMC was just a bunch of jerks23:52
magicaltroutWe'll see, i need to get it in somehow, but I also have DruidIO, Janusgraph and some other stuff on my high priority todo list23:53
magicaltroutNot sure where the chips will land with all of that23:53
magicaltroutplus once the contracts are sorted out at JPL I'm supposed to be getting 80+ hrs a week and 20 odd on a separate cancer research project23:54
magicaltroutso I need to resource them and sleep at some point ;)23:55

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