/srv/irclogs.ubuntu.com/2018/08/16/#juju.txt

anastasiamacbabbageclunk: PTAL https://github.com/juju/juju/pull/9069 - create-backup options check revisited..00:28
babbageclunkkwmonroe: yay, glad you got all the glitches sorted out! ☙00:30
babbageclunkanastasiamac: looking00:30
anastasiamac\o/00:30
babbageclunkanastasiamac: approved!00:37
anastasiamac\o/\o/\o/00:40
=== markthomas_ is now known as markthomas
anastasiamacreview anyone - https://github.com/juju/juju/pull/9071? one line change to remove an xtra newline..00:57
veebersanastasiamac: I can hit it00:57
anastasiamacveebers: tyvm!00:58
veebersanastasiamac: hah always keen to grab the easy ones. LGTM00:58
anastasiamacveebers: :D00:59
thumpervinodhini: ping01:24
vinodhinithumper01:31
vinodhiniyes.01:31
veebersthumper: to set logging to debug, it's a model-config command, do I need to do something so the controller is set to that logging level too, or does that hit everything?01:37
vinodhinithumper:02:14
veeberskelvinliu_: have you deployed a k8s cluster in aws recently? I'm trying but failing (following Ians post in discourse)02:24
kelvinliu_veebers, last time was ~ 1 month ago, i think02:26
kelvinliu_veebers, any errors u got?02:26
veeberskelvinliu_: this time around it's different, I see a complaint about too many tags02:26
veebershttps://pastebin.canonical.com/p/ZkFg7HY3k3/02:28
anastasiamacthumper: is another 2.3 release on the cards?02:29
anastasiamaci have a bug I am fixing in 2.4 and + and wondering if it should go futher back too...02:29
thumperanastasiamac: at some stage, and it depends on the ease of back porting02:29
anastasiamacthumper: real easy backport... was just wondering if it was worth the effort... but since the answer is 'yes, there is such a thing happenning', I'll backport ;)02:30
thumperit is happening at some stage02:32
anastasiamacack. ta!02:32
veeberskelvinliu_: you used eks with caas before?02:32
kelvinliu_veebers, looks like too many tags on subnet? weird. No, I didn't use eks yet.02:34
veebersCan someone educate me on tags in aws and how juju uses them, It seems we have 298 of them in this region. Is this a cleanup failure issue? Is there an account limit to how many there is allowed?02:35
veebershmm, no because a different region has more tags, is it per region? *shrug* I'll try use a different region02:36
kelvinliu_veebers, i think the error is for that subnet resource has too many tags02:37
anastasiamacveebers: do u mean that 'tags' are separate entity in aws?02:38
anastasiamaci thought tags where just sort-of-labels on the instances02:38
veeberskelvinliu_: hmm, ok. Might be a cleanup issue? as there is nothing running in that region02:38
anastasiamacwe use them to identify special purpose of the instance, like 'controller' machine or 'juju' machine, etc..02:38
veebersanastasiamac: It might be a charm layer error too. I"m just trying to make sense of it02:38
veeberswell, actually right now I'm trying to ignore it for the immediate future :-)02:39
kelvinliu_veebers, can u describe this subnet subnet-60510a26 to see the tags of it?02:39
veeberskelvinliu_: I'm not sure how, via the aws console?02:40
kelvinliu_veebers, i guess we are not always creating a new vpc and subnets for it, but always reuse existing subnets. But we always add new tags to that subnet, which exceeded the max ~50 tags per resource limit.02:41
kelvinliu_veebers, either awscli or console. console would be easier02:41
kelvinliu_veebers, if my assumption was correct, we should consider to remove the tags added to existing resources when we tear down the cluster.02:43
veeberskelvinliu_: by console I mean the web ui, we're talking about the same thing?02:46
kelvinliu_from the subnet tag issue, I remembered another thing - I think we should have only 1 cluster in same vpc. if not, the k8s traffic would have troubles. im not sure how we manage this in CDK now.02:47
veeberskelvinliu_: I was spinning up in the same region wallyworld has in the past, not sure if things got left lying around etc.02:48
kelvinliu_veebers, yes, console -> web ui, awscli -> boto cli02:48
veeberskelvinliu_: ack, sweet. Sorry a bit slow right now :-P02:48
kelvinliu_veebers, take a look how many tags the  subnet-60510a26 has, 50?02:48
veeberskelvinliu_: just figuring out how to view that now02:49
kelvinliu_veebers, i don't have web ui access setup yet. u should be able to find it from vpc -> subnets -> search  subnet-60510a2602:50
veeberskelvinliu_: ack, just found the tags tab now02:50
veeberskelvinliu_: it has a bunch, all starting with 'kubernetes.io/cluster/kubernetes-<bnlah>" no count though so would have to do manually ^_^02:51
kelvinliu_veebers, my assumption is correct. :-02:52
veeberskelvinliu_: ah, I missed the 'the max ~50 tags limit'. Ok so that makes sense02:53
veeberskelvinliu_: so right now I should be able to deploy a cluster to a 'fresh' region as we wouldn't have filled up the subnet with tags.02:54
kelvinliu_veebers, https://docs.aws.amazon.com/cli/latest/reference/ec2/delete-tags.html would be  helpful02:54
veebersI presume it'll be safe enough to manually remove those tags as there are no instances running in that region02:54
* veebers looks02:55
anastasiamacthumper: this si the PR I want to backport to 2.3 - https://github.com/juju/juju/pull/907303:05
anastasiamacas per jam's suggestion, we will not format single value 'config' output to allow for machine consumption...03:05
thumperI think the stderr output by default will be confusing03:08
anastasiamaci thought i did stdout...03:12
anastasiamacthumper: only warning is on stderr03:12
thumperc.Assert(cmdtesting.Stderr(ctx), gc.Equals, "format yaml is ignored\n")03:13
thumper03:13
thumperfor every time03:13
anastasiamacthumper: oh i c, u mean for wraning msg...03:13
anastasiamacyes, sure, can make it a debug03:13
anastasiamaclike log..03:13
thumpereven logged at info level03:13
thumperbut not ctx.Infof03:14
anastasiamacyep...03:14
anastasiamacapart form that u r +1?03:14
anastasiamacthumper: ?03:18
thumperyep03:18
thumperapproved03:18
anastasiamac\o/03:19
thumpervinodhini: where are we with the goose PR?03:41
vinodhinithumper: i am fixing the mock.03:43
thumperok03:43
jamanastasiamac: thanks for the patch. did you test at all with non-strings? Like an Int or Bool config type? I think Println does the right thing, I was hoping to be sure.03:50
vinodhinithumper: i have pushed a commit now./03:52
vinodhinijust did.03:52
vinodhinithumper : can u have a look please03:53
thumpervinodhini: yep03:53
anastasiamacjam: i have03:58
jamgreat03:58
anastasiamacwhat concerns did u have ober println? that it would not print the line?03:58
anastasiamaci find that it does and is actually safer on platforms where newline is not \n..03:59
vinodhinithumper: thanks04:00
veebersthumper: on bionic we use a different mongo package? i.e. I need to update my juju-mongo script to use /usr/bin/mongo not /usr/lib/juju/mongo*/...04:46
thumperveebers: yes05:16
vinodhinianastasiamac:06:10
vinodhinithumper asked me to revert back the export-bundle command to dev mode only CLI part06:11
vinodhinii have also removed the ci becuase the command is not exposed and bootstrap will fail.06:11
vinodhinicould u please take a look and approve06:11
vinodhinithis is for 2.4.2 relaese06:11
=== gurmble is now known as grumble
=== mup_ is now known as mup
eloxWhat charms/bundles exists that can deploy an "ovirt" cluster for us to use as a MAAS pod?12:31
jamguild review requested for https://github.com/juju/txn/pull/4312:41
stickupkidjam: i'll have a look12:41
stickupkidjam: done13:04
wpkthumper: o/21:59
magicaltroutkwmonroe: you understand the bigtop packaging more than i do22:01
magicaltroutif we wanted to expose the spark thriftserver22:01
magicaltroutwhat do we need to do?22:01
* magicaltrout has a feeling it needs sticking in the deb22:04
magicaltroutbut worth checking22:04
magicaltrouthmm maybe not, it seems to be kicking around in the deb spark rules22:06
magicaltrouthrmmm22:06
kwmonroemagicaltrout: i think we do not enable the thriftserver by default because of a port conflict. remember when you asked about this in 2015? https://lists.ubuntu.com/archives/juju/2015-September/005688.html22:51
kwmonroemagicaltrout: that said, i don't see how port 10000 conflicts with sparksql, but whatevs.  gimme 4 minutes to deploy spark and make sure thriftserver is even a thing we can start.22:51
kwmonroemagicaltrout: if it is, it's just a matter of "juju run --application spark '/start/thrift/server'" and "juju run --application spark 'open-port xxxx'".22:52
kwmonroemagicaltrout: so it seems we don't have an action for the thriftserver :/22:55
magicaltroutyeah kwmonroe I was poking around and saw the stuff in the deb but it doesn't seem to materialise on the serevr22:56
magicaltroutserver22:56
kwmonroemagicaltrout: hive does, can i interest you in some hive? https://github.com/apache/bigtop/blob/master/bigtop-packages/src/charm/hive/layer-hive/README.md#thrift-interface22:56
magicaltroutunless i'm missing something22:56
magicaltroutwell22:57
magicaltroutthe service22:57
kwmonroehere's the thing magicaltrout, and you must know i hate saying this in a publicly logged channel, you're not missing anything.  we have no charming method of activating a thriftserver on spark.22:57
magicaltroutwell the charm bit i can cope with22:58
magicaltroutroot@ip-172-31-24-148:~# less /etc/init.d/spark-22:59
magicaltroutspark-history-server  spark-master          spark-worker22:59
magicaltrouti'm surprised it doesn't have an init script22:59
magicaltrout/home/ubuntu/bigtop.release/bigtop-1.2.1/bigtop-packages/src/common/spark/spark-thriftserver.svc22:59
kwmonroemagicaltrout: don't be so surprised.  the .svc bits haven't made it through bigtop yet because nobody's sure if systemd is a thing yet.23:01
kwmonroemagicaltrout: do this:23:01
kwmonroejuju run --unit spark/0 'sudo -H -u spark /usr/lib/spark/sbin/start-thriftserver.sh'23:02
magicaltroutyeah i shall :P23:02
magicaltroutfair enough, i thought the svc bits were in use23:02
kwmonroeyeah, you thought23:02
kwmonroe(j/k, maybe they are, but when in doubt, i just like to run java by hand)23:02
magicaltrouti have an oozie question coming in 5 minutes when i've remembered what it was23:02
kwmonroei'm EOD in 4 minutes23:03
kwmonroemaybe less if you ask your question too early23:03
magicaltroutfair enough i'll leave it to tomorrow23:03
magicaltroutoozie is missing a linux level user somewhere23:04
kwmonroemagicaltrout: for reals though, the deb doesn't need to be altered -- start-thriftserver.sh is there on the unit, you'll just have to juju run it vs having a service (or install the svc as a proper service)23:04
kwmonroemagicaltrout: the thing that bigtop could use is a jira to say that the spark deb is providing a service that is never activated -- that feels like an oversight to me.23:04
magicaltroutk23:04
magicaltrouti'll upstream it23:04
kwmonroe+123:05
kwmonroemagicaltrout: i missed your comment earlier, but i'm having real trouble parsing "oozie is missing a linux level user somewhere".  like, the user isn't created, or it's expecting to use some pre-defined user?23:06
magicaltroutna, i'm trying to put the bits back together cause its been a few weeks, but last time i ran oozie against the bigtop charms, i had to useradd <user> on the namenode/resmgr to get it to run jobs23:08
magicaltroutso there's a misconfiguration on one side or the other, my fix the other week was a manual useradd, but that clearly doesn't scale :P23:08
kwmonroeaaaaah yeah magicaltrout23:11
kwmonroeone sec, i know your struggle23:11
kwmonroemagicaltrout: before i forget, don't do that thriftserver run.  i'll tell you why in a minute.23:11
kwmonroemagicaltrout: read this: https://github.com/apache/bigtop/blob/master/bigtop-packages/src/charm/hadoop/layer-hadoop-namenode/reactive/namenode.py#L8123:13
magicaltroutaah that seems very similar23:14
magicaltroutcool okay i'll try and remember what was broken tomorrow and then possibly send over a PR for that bit cause it certainly fixed it up last time23:15
magicaltroutand it was something not on the oozie unit itself23:15
kwmonroemagicaltrout: that's the same issue you're describing with oozie.  we had to do it so the NN could recognize files owned by 'mapred', 'spark', and 'yarn': https://github.com/apache/bigtop/blob/master/bigtop-packages/src/charm/hadoop/layer-hadoop-namenode/layer.yaml#L1323:15
magicaltrouti've not gone completely mad then, thats good to know23:16
kwmonroenah, not completely magicaltrout, i think you can make a case for adding 'oozie' (or any other service that has a user that needs to drop bits in hdfs that the NN needs to know about) into that layer.yaml "users" dict.23:16
magicaltroutcool23:17
kwmonroeof course, cory_fu_ and i will vote whether or not we care about your case.  you know how that likely goes.23:17
magicaltrouti also meant to say i can't believe you've missed out on cold wet London in November for a trip to spain or some shit23:18
kwmonroemagicaltrout: before i forget, don't run that thriftserver23:18
magicaltroutyeah why not?23:18
kwmonroeshit, i've forgotten23:18
kwmonroelemme check debug logs23:19
magicaltroutit starts and stops23:19
magicaltroutliving the dream23:19
kwmonroeoof, looks like it fails to start an apache derby instance and then removes $HOME23:19
magicaltroutlol23:20
magicaltrouthmm did it fail or did it just return23:21
kwmonroemagicaltrout: the process failed.  the machine is fine.  j/k on removing $STUFF.23:22
kwmonroemagicaltrout: i think it might be because i told you to run it as sudo -u spark and spark can't write to $CHARM_DIR23:22
kwmonroejava.sql.SQLException: Directory /var/lib/juju/agents/unit-spark-0/charm/metastore_db cannot be created.23:22
kwmonroe        at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)23:22
kwmonroelemme try again running that mama jama as root23:22
kwmonroelemme export $HOME=/ first23:23
magicaltroutyeah runs as root23:24
kwmonroeyeah, much better magicaltrout23:24
kwmonroe$ juju run --unit spark/0 '/usr/lib/spark/sbin/start-thriftserver.sh'23:24
magicaltroutjust weirdly stops logging like its crashed23:24
magicaltroutthats cool. Okay great, I might tack on a subordinate or something to fire that up. We've got most of the hue bits and pieces bolted on and working23:25
magicaltroutjust trying to tidy up sparksql and oozie properly23:25
magicaltroutthen it should be about ready along with the druid cluster in a couple of weeks23:25
kwmonroemagicaltrout: i will outright reject any thrift subordinate, so don't bother.  you can propose an action to start the server, nothing more, nothing less.23:26
magicaltrouti didn't say i'd bother giving it to you :P23:27
magicaltroutwhat i would like is for it to work without a user having to flip a switch23:27
kwmonroemagicaltrout: i'll take a config thriftserver=true or an action 'start-thriftserver'.  i'm not even kidding, don't you dare make a spark suboridnate that is is just 'spark' with only the thriftserver running.  i'll find you.  i'll be angry.23:28
magicaltroutokay i might be happy with a config option23:29
magicaltrouti dislike actions23:29
kwmonroethen it seems like we've found a middle ground.  let's stop here before we start cursing one another.23:30
magicaltroutalright fair enough, you're still in my bad books for passing up a trip to london. Thanks for the tips, expect some PR's to land sometime soon.23:32
kwmonroe+1 magicaltrout, gotta see a guy about a horse now.23:35
rick_h_kwmonroe: hah. If you're serious we need to catch up sometime23:55

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