/srv/irclogs.ubuntu.com/2016/08/17/#juju.txt

=== natefinch-afk is now known as natefinch
=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
kjackalHello Juju World!08:30
andrey-mpHi! jamespage: are you here?09:45
marcoceppiif anyone is interested, charm and charm-tools are now snapped up in edge for testing.13:27
marcoceppi`snap install charm --edge`13:27
rick_h_marcoceppi: sweet13:29
rick_h_marcoceppi: was there any issues with the macaroon storage path and such?13:29
marcoceppinot when you PLUGinto home13:30
marcoceppigit was the biggest problem >_>13:30
marcoceppirick_h_: https://github.com/juju-solutions/charm-pkg/blob/master/snapcraft.yaml13:30
marcoceppirick_h_: however, putting the macaroon data in $SNAP_DATA_PATH is a good idea13:31
rick_h_very cool marcoceppi13:31
cholcombestub, question for ya with the apt layer13:49
stubcholcombe: yo14:05
cholcombestub,  i know it's super late there.  I'm running into some trouble getting the config.yaml correct with the apt layer.  I followed the readme closely but it won't build or deploy14:06
cholcombestub, i'm falling back on adding the apt sources in my reactive.py which isn't really the best14:06
stubGot a pastebin?14:07
cholcombesure one sec14:07
cholcombestub, https://gist.github.com/cholcombe973/e1405d70ba4921178e0908d7c4a6ba1c14:09
stubcholcombe: at first glace that looks fine. What happens when you deploy it?14:10
cholcombenothing it seems.  it doesn't setup either of the sources in the /etc/apt/sources.list file14:10
cholcombewhen i include the same thing in the python reactive.py file it works ok14:11
stubcholcombe: Does your layer.yaml declare its using layer:apt, and its all been rebuild and upgraded?14:11
cholcombestub, yeah i have this in there: includes: ['layer:basic', 'layer:apt', 'interface:ceph-client']14:12
stubThe indentation seems wonky - it doesn't parse as yaml14:13
cholcombeoh yeah i fixed that14:14
cholcombei recreated the file to show you what it looked like14:14
stubI'd need to see the logs to diagnose further14:16
cholcombestub, ok no problem.  i can pack them up14:16
cholcombestub, do you have a working example i can take a look at?14:16
stubThe PostgreSQL charm uses the apt layer. Or are you after a mojo spec that configures it?14:17
cholcombepostgres charm sounds fine.  i'll check that out :)14:18
cholcombeeither one.  i'm looking for how the config.yaml was setup14:18
cholcombeprob the mojo spec then14:18
stubtelegraf-charm might be better14:18
cholcombeok14:18
stublaunchpad.net/telegraf-charm14:18
cholcombeawesome thank you14:19
stubcholcombe: In your logs, you should see 'Initializing Apt Layer', soon after which it will call charmhelpers.fetch.configure_sources() (not sure if that gets logged)14:21
stubOne easy way to test the layer is being bootstrapped - set the 'package_status' config to 'bogus'. It should put your unit into a blocked state until you give it a valid value.14:22
cholcombeok14:23
stubcholcombe: oh, that is your config.yaml you posted.14:53
stubcholcombe: You are setting install_sources and install_keys to strings, but in config.yaml options are mappings. You want to be setting options: install_sources: default: , not options: install_sources:14:54
stubhttps://git.launchpad.net/telegraf-charm/tree/config.yaml14:56
stub(I was thinking that was a deployment config for some reason)14:56
andrey-mpanybody knows where is jamespage? or where I can find him? maybe he is on vacation?14:57
=== natefinch is now known as natefinch-afk
mbruzekmagicaltrout: Are you able to join the meeting?15:09
cholcombestub, thanks!15:13
stubcholcombe: I'm surprised juju let you deploy it at all15:14
cholcombestub, juju is lazy haha15:14
cholcombestub, i updated the gist.  is this more like what the apt layer expects: https://gist.github.com/cholcombe973/e1405d70ba4921178e0908d7c4a6ba1c15:32
stubthat doesn't look right15:37
stubhttps://gist.github.com/stub42/0438059a79dd1cf7d020fa8ad039b3dc15:38
stubgah... just revised it. I had bad yaml in one of the strings15:42
* stub wishes again we had richer data types than strings15:42
cholcombestub, i'll try that :).  Yeah this yaml is miserable15:42
stubI don't mind yaml. Its having to encode yaml into strings that get embedded in yaml :)15:43
cholcombelol15:43
=== mup_ is now known as mup
=== mup_ is now known as mup
cholcombestub, nope that doesn't work either.  nothing is added to the /etc/apt/sources.list file16:03
stubcholcombe: How about /etc/apt/sources.list.d ?16:07
cholcombenope that's blank also16:07
stubDo you see the 'Initializing Apt Layer' message in the logs?16:08
cholcombei do yeah16:09
stubOutput from gpg after that?16:09
cholcombenope.  lemme gist it16:09
cholcombehttps://gist.github.com/cholcombe973/7438f1a25fe2da1a1c6c3a1014c6789816:10
stubThere isn't much logging here, as it is just calling out to charmhelpers16:10
cholcomberight16:11
stubHave a look at your generated charm's config.yaml, and see if charm build included your updated defaults16:12
cholcombestub, my bad i forgot to run charm build again.  let me try and deploy this again16:13
=== frankban is now known as frankban|afk
cholcombestub, ah yes now we're getting somewhere.  invalid gpg armor header :)16:22
petevgcory_fu: For testing the new jdk setup we have in the bigtop base layer, which bundle is the most up to date for testing? Is it https://github.com/juju-solutions/bundle-bigtop-processing-mapreduce, or one of the others?16:47
cory_fuIs that still a thing?  We need to delete that repo16:52
cory_fupetevg: https://github.com/juju-solutions/bigtop/tree/master/bigtop-deploy/juju/hadoop-processing16:53
petevgcory_fu: aha. Thx.16:53
bdxcholcomb: sup17:24
bdxcholcombe: sup17:32
bdxcholcombe: what plans have you for vault_charm?17:33
bdxcholcombe: I think we need to combine forces on the vault thing17:35
bdxcholcombe: https://jujucharms.com/u/jamesbeedy/consul/1, https://jujucharms.com/u/jamesbeedy/consul-agent/6, https://jujucharms.com/u/jamesbeedy/vault/817:36
bdxthey all need readme, icon, and tests :-(17:36
bdxthe^ consul, consul-agent, vault ha stack deploys successfully :-)17:37
bdxcholcombe: I've put alot of work into it recently .... lets chat when you get a minute17:38
cholcombebdx, i'm trying to get the vault charm to hook up with consul so i can store cephx keys on it17:49
cholcombebdx, do you have a bundle i can deploy of that whole setup?17:49
bdxcholcombe: omp17:53
bdxcholcombe: https://gist.github.com/jamesbeedy/102d1bbcfe5dbf6227f014348026d0a318:02
=== natefinch-afk is now known as natefinch
cholcombebdx, sweet thanks18:14
bdxcholcombe: one existing caveat to the vault charm is that non-leader units error when you request a token though18:14
bdxhttp://paste.ubuntu.com/23065296/18:14
cholcombebdx, i see18:15
bdxcholcombe: because they all try to request the token18:15
bdxbut only a singleton request need be made18:15
cholcombeyeah18:16
cholcombethat should be a leader only thing18:16
bdxyeah ... is there an 'is_leader()' call of some sort that you know of?18:17
cholcombebdx, yeah.  are you using layers or old school?18:18
bdxlayers18:18
cholcombethere's a leadership layer i remember seeing on interfaces.juju18:19
bdxyeah, vault is already using it18:20
cholcombecory_fu, do you have any experience with the apt layer and custom sources?  I can't get it working :-/18:21
cory_fucholcombe: A bit.  The most common thing I've seen go wrong is that, since config options can't be nested and thus it uses an embedded yaml string, the indentation on the value is really finicky18:22
bdxcholcombe: this might help there too -> https://github.com/jamesbeedy/layer-kibana/blob/master/config.yaml18:22
cholcombebdx, yeah i'm having trouble with the gpg key.  it's complaining about an invalid header but i know it's valid18:23
cholcombecory_fu, yeah the value is hard to get right18:23
cory_fucholcombe: Can you point us to your config.yaml?18:23
cholcombebdx, i'll try to copy your example18:23
cholcombesure18:23
cholcombecory_fu, bdx https://gist.github.com/cholcombe973/e1405d70ba4921178e0908d7c4a6ba1c18:24
cory_fucholcombe: Your indentation is off on your GPG key18:24
bdxyou need another space18:24
cholcombeok18:24
cholcombeso 2 spaces in18:25
cory_fuTold you it's super finicky.  It's really annoying to deal with, and setting it on the CLI is even worse18:25
bdxI somewhat feel like those params should be options instead of configs18:25
cholcombeyeah.  we need a better way than this18:25
cory_fuThis will get way better when config options support the schema syntax that action params do18:25
bdxaah18:25
bdxha18:26
cory_fuUnfortunately, that's a breaking change and since it doesn't look like it's going to be in 2.0, I'm not holding my breath.18:27
cory_fuUnless the core devs can find a way to make it backwards compatible, which would be rather a bit more work18:27
cholcombe11th deploy is a charm? lol18:28
* cholcombe crosses fingers18:28
cory_fu:)18:28
cory_fupetevg: Any objection to me rebasing and squashing BIGTOP-2476-zookeeper?18:30
cory_fuNo conflicts18:30
petevg@cory_fu: other than it never being a good idea to edit the history of a branch that multiple people have checked out :-)18:30
petevgThe Bigtop people upstream don't seem to like to use github, including github's convenient "squash this when I merge" feature, though.18:31
cory_fuYeah, except that the Bigtop reviewers have specifically asked for nicely squashed PRs18:31
petevgSo, it's probably fine to just squash it now.18:31
cholcombebdx, yeah so there should be an is_leader() function.  just requires a little searching18:32
cory_fuRight.  We could stop using the GitHub <-> Jira integration and submit patches that we manually update instead, but I personally don't find dealing with rebases all that painful18:32
petevgcory_fu: yeah. Go ahead. I have some outstanding changes against my local branch, but they're not difficult to recreate.18:32
cory_fugit stash is your friend.   ;)18:32
petevgcory_fu: In the past, I've had people do really horrible thing with merges when they tried to "fix" a squashed, which is why I try to avoid them. I won't do bad things with it, though, so we should be okay.18:34
petevg*things, *squashed branch18:35
petevgcory_fu: what we really need to do is get the dang PR merged so that we can stop merging other things to it.18:35
bdxcholcombe: yeah, just found it. thx18:37
cholcombebdx, cory_fu thanks!  That got it to install finally18:37
bdxnp! nice!18:38
bdxcholcombe: I'll keep you posted with my vault progress, going to get this mult-token-request thing squared away asap18:39
cholcombebdx, awesome18:39
cholcombewhat do people typically do for charms if the deb package being installed has an ncurses setup interface that gets invoked while installing?  coreycb you might know this19:30
coreycbcholcombe, I'm not sure, but I think that's frowned upon for deb packaging.  for openstack packages, one of the reasons we have separate core packages from Debian, is because Debian uses debconf prompts to configure things.19:32
coreycbfrowned upon for Ubuntu that is19:32
cholcombeyeah the openattic package has debconf prompts.  i don't know how to disable them19:32
cholcombeor how i can give it a config file or something19:33
coreycbcholcombe, It looks like you can disable debconf - http://stackoverflow.com/questions/4401431/disable-prompts-while-installing-a-debian-package19:34
cholcombecoreycb, interesting.  thanks19:35
coreycbcholcombe, good luck19:35
cholcombecoreycb, ugh.  it's always something19:35
coreycbyep19:35
mayurisapreis there a way to access auth_url specified in environment.yaml file used for bootstrap, in charm hook?19:57
mayurisaprehi all.. is there a way to access auth url specified in environment.yaml file from charm hook?20:16
marcoceppimayurisapre: no, the charms are disconnected from the environment they're deployed in20:39
mayurisapremarcoceppi : okay..is there a way to inject these values in deployed charm?20:45
marcoceppimayurisapre: you can have them set via a configuration option on the charm20:45
marcoceppimayurisapre: may I ask what you're charming up?20:45
mayurisaprei am deploying in openstack env20:46
mayurisapreand need these values for further operations in charm hooks20:46
mayurisaprewhat is the configuration option you just suggested?20:47
mayurisapremarcoceppi : ohh sorry .. are you talking about config.yaml file  provided in charm?20:51
marcoceppimayurisapre: yes20:52
mayurisapreyes.. i thought of that option but if I could get auth_url that is more suitable in my case20:53
=== natefinch is now known as natefinch-afk
=== deref is now known as alex-deref
bdxcholcome: https://github.com/jamesbeedy/charm-vault/blob/master/reactive/vault.py#L5621:35
bdxcholcombe: ^ thats all it took21:35
cholcombebdx, correct21:35
bdxpumped21:36
marcoceppibdx: I don't have context, but could you use `@when('leadership.is_leader')`22:16
marcoceppiinstead of an if block22:16
marcoceppialso, love seeing progress on the vault charm22:16
marcoceppiit's something I've heard a few people ask for already22:16
bdxmarcoceppi: thanks for pointing that out, -1 me for not seeing that state decorating the function directly above ;/22:44
=== natefinch-afk is now known as natefinch

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