dalek57 | cory_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 |
---|---|---|
dalek57 | I'm reading these docs development: <<: *default database: autoponics_control_panel username: railsdev password: password | 00:22 |
dalek57 | nope | 00:22 |
dalek57 | these ones http://pythonhosted.org/charmhelpers/examples/services.html?highlight=jinja2 | 00:22 |
dalek57 | lazyPower: looks like cory_fu isn't here. Can you help me out with the templating stuff? | 00:27 |
lazyPower | dalek57: hang on reading the backscroll | 00:35 |
lazyPower | I'm on my way out for the evening but i can surely give you some pointers | 00:36 |
lazyPower | dalek57: 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 me | 00:36 |
dalek57 | lazyPower: yep, just a sec | 00:38 |
dalek57 | lazyPower: http://pastebin.com/6kTipXDm | 00:43 |
lazyPower | ah | 00:44 |
lazyPower | you ned to pss those values in as a dictionary | 00:44 |
dalek57 | do I need to pass them in with a keyword arg? | 00:44 |
lazyPower | not unless you reference them with a keyword | 00:44 |
dalek57 | but the dictionary doesn't need to be identified by a keyword arg? | 00:45 |
lazyPower | dalek57: it looks like i'm wrong looking over the SF docs | 00:48 |
lazyPower | I'd need to dive deeper into the code or fish up an example out of our cloudfoundry suite to find one for you | 00:49 |
lazyPower | let me link you to that - but i gotta jet afterwords | 00:49 |
lazyPower | dalek57: i'm not finding a good reference example :( I'm sorry. If you dont figure it out feel free to ping me in the AM | 00:55 |
lazyPower | i'll either tag in cory to come help or find you a definitive example | 00:55 |
lazyPower | Best of luck | 00:55 |
dalek57 | lazyPower: no worries! I'll look through some other charms. I'll be around tomorrow. Have a good evening. | 00:55 |
dalek57 | are 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 | ||
lazyPower | marcoceppi: so, yeah - overwhelming response in favor of the info you gave me yesterday regarding --upload-tools | 15:13 |
lazyPower | there be dragons there | 15:13 |
marcoceppi | lazyPower :) I only know from experience | 15:17 |
jose | nicopace: hey, no need to open bugs for your mps - they're handled separately | 15:31 |
nicopace | jose: the idea is to start a conversation about the need for that test | 15:47 |
jose | nicopace: 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 mp | 15:48 |
jose | anyways, subject to different opinions. | 15:48 |
nicopace | jose: so i don't waste time implementing a test that is not required, or to receive feedback from before implementing it. | 15:48 |
nicopace | oh, i'm creating issues for tests that are not implemented | 15:48 |
nicopace | not for the ones that i've already implemented | 15:49 |
jose | oh, ok | 15:49 |
nicopace | i have a question... how can i know who is the mantainer of a certain charm? (e.g. apache2) | 15:50 |
jose | metadata.yaml | 15:50 |
nicopace | thanks! | 15:51 |
jose | np | 15:54 |
nicopace | guys, the "Iterface docs >" hyperlink here doesn't work: http://manage.jujucharms.com/interfaces/http | 15:56 |
nicopace | any idea where to fill that bug? | 15:56 |
marcoceppi | nicopace: 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 exist | 16:02 |
nicopace | marcoceppi: and which one is going to replace it? it is so simple to search for interfaces and charms that implement them! | 16:02 |
marcoceppi | rick_h_: right | 16:02 |
rick_h_ | marcoceppi: so yea that site is going away. I think that should point to https://jujucharms.com/docs/authors-interfaces | 16:03 |
rick_h_ | nicopace: | 16:03 |
rick_h_ | ^ | 16:03 |
nicopace | ok, thanks rick_h_ ! | 16:07 |
gnuoy | jamespage, https://code.launchpad.net/~gnuoy/charms/trusty/ceph-radosgw/next-support-ha/+merge/243263 if you get a chance | 16:25 |
jrwren | I ran remove-service, status now says life: dying, and agent-state: started and the agent seems to be hung, doing nothing. | 16:43 |
jrwren | is there a way to kick an agent into action? | 16:44 |
lazyPower | jrwren: any relations to the unit? | 16:45 |
lazyPower | Is the bundle equivalent of exposing a service "expose: true" or "exposed: true"? | 16:45 |
jrwren | lazyPower: yes, relations. I'll remove them, but I have done this 20+ times in teh past week+ and never had this issue. | 16:46 |
lazyPower | jrwren: was just going to say - if any of them are in error state its trapping hook execution on the remove-service | 16:46 |
jrwren | lazyPower: nothing is in error state | 16:47 |
lazyPower | jrwren: use a big hammer | 16:47 |
jrwren | lazyPower: assume this is production adn would cost me $$$ to use a hammer :) | 16:47 |
lazyPower | jrwren: 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 |
jrwren | lazyPower: nothing significant AFAICT. "got service change", "no new charm event", "go relations change", "got unit change", "unit is dying" | 16:49 |
marcoceppi | jrwren: are you sure a hook isn't currently running on the unit? | 16:50 |
marcoceppi | jrwren: ps -aef | grep hook | 16:50 |
jrwren | marcoceppi: nothing but the grep :) | 16:50 |
marcoceppi | jrwren: what about a grep for juju? | 16:51 |
jrwren | marcoceppi: the machine and unit agents. | 16:51 |
=== scuttlemonkey is now known as scuttle|afk | ||
seal | Does juju cache charms even after destroying an environment? | 17:01 |
marcoceppi | seal: yes | 17:10 |
seal | marcoceppi: 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 config | 17:11 |
mwak | o/ | 17:39 |
mwak | cory_fu: you can download the modified chadoop charm version here https://fr-1.storage.online.net/mwak/hadoop.tar.gz | 17: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 | ||
blr | charm-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 | ||
lazyPower | blr: thats charm-tools | 20:28 |
lazyPower | charm create -t that is. | 20:28 |
blr | lazyPower: right, but I gather that should scaffold a charm with charm-helpers, it does not do that | 20:29 |
marcoceppi | lazyPower: i think thry mean the charm-helper charm template | 20:29 |
marcoceppi | blr: I haven't had an issue, what are you seeing? | 20:29 |
blr | marcoceppi: https://bugs.launchpad.net/charm-tools/+bug/1395560 | 20:30 |
mup | Bug #1395560: "create -t python " does not install lib/charmhelpers <Juju Charm Tools:New> <https://launchpad.net/bugs/1395560> | 20:30 |
lazyPower | ah | 20:30 |
blr | no hooks.py symlinking, no charm-helpers.yaml | 20:30 |
lazyPower | blr: thats a services framework template, and it pip installs. | 20:30 |
lazyPower | blr: i think what you're looking for is charm create -t python-basic | 20:30 |
blr | lazyPower: ah ok, looks like the docs on http://pythonhosted.org/charmhelpers/getting-started.html potentially need updating? | 20:31 |
lazyPower | can you give that a go and let me know? | 20:31 |
=== kadams54 is now known as kadams54-away | ||
marcoceppi | blr: 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-services | 20:31 |
blr | sweet, that does what you would expect lazyPower and marcoceppi | 20:32 |
blr | thanks guys | 20:32 |
lazyPower | np blr, sorry for the confusion | 20:32 |
lazyPower | and thanks for the pointer @ the docs. We'll get that shored up shortly | 20:32 |
blr | cheers :) | 20:32 |
lazyPower | https://bugs.launchpad.net/charm-helpers/+bug/1411412 | 20:34 |
mup | Bug #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!