/srv/irclogs.ubuntu.com/2015/01/15/#juju.txt

dalek57cory_fu: I'm trying to figure out the config templating stuff. I created a jinja2 database.yml template, and passed a bunch of arguments to render_template. Python is complaining that I'm passing in unexpected keyword arguments. The docs say that render_template will merge all of the "required_data contexts" together. I don't know what that means. How do I pass arguments into my template?00:21
dalek57I'm reading these docs development: <<: *default database: autoponics_control_panel username: railsdev password: password00:22
dalek57nope00:22
dalek57these ones http://pythonhosted.org/charmhelpers/examples/services.html?highlight=jinja200:22
dalek57lazyPower: looks like cory_fu isn't here. Can you help me out with the templating stuff?00:27
lazyPowerdalek57: hang on reading the backscroll00:35
lazyPowerI'm on my way out for the evening but i can surely give you some pointers00:36
lazyPowerdalek57: show me some code, i'd like to see the template, the render template code, and the stacktrace you got if you can round all three of those up for me00:36
dalek57lazyPower: yep, just a sec00:38
dalek57lazyPower: http://pastebin.com/6kTipXDm00:43
lazyPowerah00:44
lazyPoweryou ned to pss those values in as a dictionary00:44
dalek57do I need to pass them in with a keyword arg?00:44
lazyPowernot unless you reference them with a keyword00:44
dalek57but the dictionary doesn't need to be identified by a keyword arg?00:45
lazyPowerdalek57: it looks like i'm wrong looking over the SF docs00:48
lazyPowerI'd need to dive deeper into the code or fish up an example out of our cloudfoundry suite to find one for you00:49
lazyPowerlet me link you to that - but i gotta jet afterwords00:49
lazyPowerdalek57: i'm not finding a good reference example :( I'm sorry. If you dont figure it out feel free to ping me in the AM00:55
lazyPoweri'll either tag in cory to come help or find you a definitive example00:55
lazyPowerBest of luck00:55
dalek57lazyPower: no worries! I'll look through some other charms. I'll be around tomorrow. Have a good evening.00:55
dalek57are there any people left here that can help me with charmhelpers?01:33
=== swebb_ is now known as swebb
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
=== lazyPower is now known as lp|BagelRun
=== roadmr is now known as roadmr_afk
=== lp|BagelRun is now known as lazyPower
=== roadmr_afk is now known as roadmr
lazyPowermarcoceppi: so, yeah - overwhelming response in favor of the info you gave me yesterday regarding --upload-tools15:13
lazyPowerthere be dragons there15:13
marcoceppilazyPower :) I only know from experience15:17
josenicopace: hey, no need to open bugs for your mps - they're handled separately15:31
nicopacejose: the idea is to start a conversation about the need for that test15:47
josenicopace: not sure it's needed - if it's in the review queue a charmer will take a look and see if it fits, if it doesn't a discussion will be started on the mp15:48
joseanyways, subject to different opinions.15:48
nicopacejose: so i don't waste time implementing a test that is not required, or to receive feedback from before implementing it.15:48
nicopaceoh, i'm creating issues for tests that are not implemented15:48
nicopacenot for the ones that i've already implemented15:49
joseoh, ok15:49
nicopacei have a question... how can i know who is the mantainer of a certain charm? (e.g. apache2)15:50
josemetadata.yaml15:50
nicopacethanks!15:51
josenp15:54
nicopaceguys, the "Iterface docs >" hyperlink here doesn't work: http://manage.jujucharms.com/interfaces/http15:56
nicopaceany idea where to fill that bug?15:56
marcoceppinicopace: not quite sure, that webpage is going away soon to begin with. rick_h_ ^ ?16:01
rick_h_marcoceppi: nicopace hmm, that points to https://juju.ubuntu.com/Interfaces/http which doesn't exist16:02
nicopacemarcoceppi: and which one is going to replace it? it is so simple to search for interfaces and charms that implement them!16:02
marcoceppirick_h_: right16:02
rick_h_marcoceppi: so yea that site is going away. I think that should point to https://jujucharms.com/docs/authors-interfaces16:03
rick_h_nicopace:16:03
rick_h_^16:03
nicopaceok, thanks rick_h_ !16:07
gnuoyjamespage, https://code.launchpad.net/~gnuoy/charms/trusty/ceph-radosgw/next-support-ha/+merge/243263 if you get a chance16:25
jrwrenI ran remove-service, status now says life: dying, and agent-state: started and the agent seems to be hung, doing nothing.16:43
jrwrenis there a way to kick an agent into action?16:44
lazyPowerjrwren: any relations to the unit?16:45
lazyPowerIs the bundle equivalent of exposing a service "expose: true" or "exposed: true"?16:45
jrwrenlazyPower: yes, relations. I'll remove them, but I have done this 20+ times in teh past week+ and never had this issue.16:46
lazyPowerjrwren: was just going to say - if any of them are in error state its trapping hook execution on the remove-service16:46
jrwrenlazyPower: nothing is in error state16:47
lazyPowerjrwren: use a big hammer16:47
jrwrenlazyPower: assume this is production adn would cost me $$$ to use a hammer :)16:47
lazyPowerjrwren: if teh agent state isn't changing - is there any output in debug-log in the last 500 or so lines for the unit?16:48
jrwrenlazyPower: nothing significant AFAICT.  "got service change", "no new charm event", "go relations change", "got unit change", "unit is dying"16:49
marcoceppijrwren: are you sure a hook isn't currently running on the unit?16:50
marcoceppijrwren: ps -aef | grep hook16:50
jrwrenmarcoceppi: nothing but the grep :)16:50
marcoceppijrwren: what about a grep for juju?16:51
jrwrenmarcoceppi: the machine and unit agents.16:51
=== scuttlemonkey is now known as scuttle|afk
sealDoes juju cache charms even after destroying an environment?17:01
marcoceppiseal: yes17:10
sealmarcoceppi: thank you, where can I remove this. I am trying to figure out why a jenkins git plugin does not install even though I changed the config17:11
mwako/17:39
mwakcory_fu: you can download the modified chadoop charm version here https://fr-1.storage.online.net/mwak/hadoop.tar.gz17:39
=== scuttle|afk is now known as scuttlemonkey
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
=== roadmr is now known as roadmr_afk
blrcharm-helper templating (via charm create -t python) appears to be broken in charm-tools 1.5.0, workaround presumably is to just grab the bzr branch?20:26
=== roadmr_afk is now known as roadmr
lazyPowerblr: thats charm-tools20:28
lazyPowercharm create -t that is.20:28
blrlazyPower: right, but I gather that should scaffold a charm with charm-helpers, it does not do that20:29
marcoceppilazyPower: i think thry mean the charm-helper charm template20:29
marcoceppiblr: I haven't had an issue, what are you seeing?20:29
blrmarcoceppi: https://bugs.launchpad.net/charm-tools/+bug/139556020:30
mupBug #1395560: "create -t python " does not install lib/charmhelpers <Juju Charm Tools:New> <https://launchpad.net/bugs/1395560>20:30
lazyPowerah20:30
blrno hooks.py symlinking, no charm-helpers.yaml20:30
lazyPowerblr: thats a services framework template, and it pip installs.20:30
lazyPowerblr: i think what you're looking for is charm create -t python-basic20:30
blrlazyPower: ah ok, looks like the docs on http://pythonhosted.org/charmhelpers/getting-started.html potentially need updating?20:31
lazyPowercan you give that a go and let me know?20:31
=== kadams54 is now known as kadams54-away
marcoceppiblr: yes, so we're pushing a 1.6.0 soon which will do a few things: 1) it'll prompt on first run the default type of template you wish to use, 2) it'll rename python to python-services20:31
blrsweet, that does what you would expect lazyPower and marcoceppi20:32
blrthanks guys20:32
lazyPowernp blr, sorry for the confusion20:32
lazyPowerand thanks for the pointer @ the docs. We'll get that shored up shortly20:32
blrcheers :)20:32
lazyPowerhttps://bugs.launchpad.net/charm-helpers/+bug/141141220:34
mupBug #1411412: getting-started docs needs updating <Charm Helpers:New> <https://launchpad.net/bugs/1411412>20:34
=== urulama is now known as urulama__
=== TheRealMue is now known as TheMue
=== X-Rob_ is now known as X-Rob
=== Tribaal_ is now known as Tribaal
=== mwhudson_ is now known as mwhudson
=== Viperz28 is now known as Guest82007
=== nottrobin is now known as nottrobin_

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