/srv/irclogs.ubuntu.com/2012/03/09/#juju.txt

hazmatjcastro, traveling to pycon today05:34
hazmatjimbaker, where's the fun at? ;-)05:34
=== almaisan-away is now known as al-maisan
jimbakerhazmat, i was just downstairs in the bar area... regrettably calling it an early evening :)06:39
hazmatjimbaker, me too06:39
hazmatreworked the hook scheduler significantly on the plane06:39
jimbakerhazmat, a good place to do that06:46
SpamapSadam_g: when you get that error, that means you have used an old version of juju to spawn a node with a 'juju-origin:' that pulls in a newer version of juju.07:08
SpamapSadam_g: older versions don't start the agent with the right arguments, so it fails.07:08
=== al-maisan is now known as almaisan-away
yolandahi, good afternoon11:47
yolandaany juju guru here that i can ask some question?11:47
yolandafor a charm we are writing, we need to download code that resides on some private branches of bazaar. So we need to identify as a bazaar user, providing the public key. I was thining in sending the key in a config var in the charm, is this a good idea or there is some other way to do it?11:52
hazmatyolanda, for now i would recommend doing it that way11:54
yolandaok, so i create some config var for bazaar user name, public key... and just use it in the hooks, right?11:55
=== almaisan-away is now known as al-maisan
=== JanC_ is now known as JanC
=== al-maisan is now known as almaisan-away
jrgiffordhow complete is the diaspora charm?16:02
=== asavu_ is now known as asavu
=== asavu_ is now known as asavu
negronjlm_3: ping17:11
negronjlSpamapS: ping17:11
m_3negronjl: ssup?17:12
negronjlm_3: Can you review this: https://bugs.launchpad.net/charms/+bug/950968 for me to see if I can promulgate it ?17:12
SpamapSnegronjl: pong!17:12
_mup_Bug #950968: Charm needed: gearman <new-charm> <Juju Charms Collection:New for negronjl> < https://launchpad.net/bugs/950968 >17:12
SpamapSmmmm gearman17:13
negronjlSpamapS: begging for reviews :)17:13
SpamapSnegronjl: I am a huge gearman fan17:13
negronjlSpamapS: https://bugs.launchpad.net/charms/+bug/95096817:13
_mup_Bug #950968: Charm needed: gearman <new-charm> <Juju Charms Collection:New for negronjl> < https://launchpad.net/bugs/950968 >17:13
SpamapSnegronjl: I have code in gearmand actually. :)17:13
* SpamapS wrote --round-robin, and 1/2 of the tokyocabinet persistence queue17:13
m_3SpamapS: you wanna review it or you want me to?17:14
negronjlSpamapS: cool... Now I know who to complain about it to :P17:14
SpamapSnegronjl: yeah, in the last 2 years gearmand has kind of gone down a rocky road with the addition of C++17:15
SpamapSI think its for the best.. but boost has just made everything harder to build. :-P17:15
negronjlSpamapS: So far, I have nothing bad to say about it.  It has actually helped me in a few occasions17:16
SpamapSm_3: there's no problem w/ 2 reviews.. :)17:16
SpamapSnegronjl: first simple problem.. you forgot to remove README.ex from gearman-worker17:16
negronjlSpamapS: ahhh... boost.. haven't used it in about a year....it was good to compile and build my stuff ... a horrible pain to port it anywhere else17:16
negronjlSpamapS: i thought i had fixed that ... checking17:17
SpamapSnegronjl: also pecl is not safe.. no cryptographic verification. :-/17:17
* SpamapS curses the pedantic license quibble that has kept php5-gearman out of debian17:18
SpamapSnegronjl: all in all though, I love the way this looks. Its kind of more of an example to be built on, but it gets the concepts of gearman quite well. :)17:19
SpamapSnegronjl: mediawiki actually has a gearman worker btw.. for doing image thumbnailing or something17:19
negronjlSpamapS: I just fixed the README17:20
negronjlSpamapS: I just forgot to commit17:20
negronjlSpamapS: not much I can do about pecl though ... If I take it out, not much functionality remains :/17:21
negronjlSpamapS: One thing that I can do to build on the charm is to provide a few tests/examples in the README file so, the user has something to test with ... thoughts ?17:22
SpamapSnegronjl: you can pin to a single version (0.7.0 is really old btw) and build the tarball without the pecl command's help17:22
SpamapSnegronjl: also, gearman-server is the perl version. gearman-job-server is the C one17:22
negronjlSpamapS: I thought it better to use the perl version as it would be (in my mind) more portable and easier to deal with17:23
SpamapSnegronjl: yeah I think it might make sense to actually have the charm exit 1 at the end of install, and have a comment like "echo THIS DOES NOT DO ANYTHING WITHOUT A WORKER"17:23
SpamapSnegronjl: that may actually be true. :)17:23
SpamapSnegronjl: the C version is about 5x more memory efficient, and about 2x faster ... and has built in persistence (but kind of lame persistence) .. but the perl version is way more stable.17:24
negronjlSpamapS: If I were to exit 1, the charm would look broken to a somewhat new Juju user ... it may complicate things ... My thought is that, if you are going to deploy gearman, you probably know that you need server, workers, clients.17:24
negronjlSpamapS: I just added a Testing sections with examples in cli, python and php to the gearman-server and gearman-worker README files17:28
SpamapSnegronjl: yeah its a crazy idea. But ultimately, if you deploy that worker charm, you might expect that you have workers now.. which concerns me.. it doesn't actually explain how I go from that, to deploying my worker (I'm assuming you expect them to fork it?)17:30
SpamapSnegronjl: one thought is to make it do something.. like have a 'log' function and have it log to disk.17:30
negronjlSpamapS: Let's leave it in a branch for now as I can't think of an easy way to have it register something.  The idea is for the workers to register their functions ( which we won't know ahead of time ).17:31
negronjlSpamapS: For now, I agree that this is a sample template charm for gearman17:31
negronjlSpamapS: Something where people can build upon17:31
SpamapSyeah, perhaps its time we started pushing for tags in the charm metadata so we can flag things as templates17:32
negronjlSpamapS: that sounds good17:32
negronjlSpamapS: I should change the bug from new-charm to new-template17:32
negronjlSpamapS: or new-charm-template17:32
SpamapSnegronjl: I'd still like to see it in the charm list...17:32
SpamapSnegronjl: I just want it to be clear to a user that this charm needs some extra love before it will do anything useful for you.17:33
negronjlSpamapS: Is there a more subtle way of letting them know ?17:33
SpamapSnegronjl: another idea is to have config options kind of like m_3's rails charm that will just checkout and run a worker17:33
negronjlSpamapS: Ahh...that I can investigate17:33
negronjlSpamapS: I'll check that out over the weekend .... but, that sounds like the better option for now.17:34
SpamapSyeah that would be kind of cool.. juju deploy gearman-worker 'imageresizer' --set worker-branch git://mygitserver/foo17:35
negronjlSpamapS: yup... that's what I'll do ... thx for the tip17:35
* SpamapS reboots hoping to observe the miracle of starting up again in about 2 minutes17:35
SpamapS\o/17:42
negronjlSpamapS: welcome back to the land of the living17:49
=== TheMue_ is now known as TheMue
SpamapS  --constraints CONSTRAINTS20:17
SpamapS                        Hardware constraints for the service20:17
SpamapS  --constraints CONSTRAINTS20:17
SpamapS                        Hardware constraints for the service20:17
SpamapSworth two pastes20:17
SpamapSAWESUUHMMM20:17
SpamapSjuju.charm.errors.ServiceConfigValueError: Invalid value for cache: False20:31
SpamapSDid we make another backward-incompatible break recently?20:31
SpamapSahh yes we did20:32
SpamapS  cache: {default: false, description: Whether to cache pages or not, type: string}20:32
SpamapSI have that deployed in my environment.20:32
SpamapSSeriously.. we're going to have to take action, this is getting ridiculous20:32
=== hspencer is now known as hspencer[brb]
* SpamapS completes the russian roll on mocker and is nearly ready to submit namespace-from-env for a 3rd round of reviews....21:38
negronjlSpamapS: There are numerous charms that are now broken due to the stricter checking in config.yaml.21:52
negronjlSpamapS: I did fix a few of them yesterday but, I'm afraid we may have to (re)check them all to ensure that they work with the current juju revision21:52
SpamapSI thought we had already found them all21:55
SpamapSthere was supposed to be some time where it was just a warning. :-(21:55
SpamapSand further.. it should not break running environments!21:55
* SpamapS cannot even run status on an env with a "bad' charm21:55
SpamapSdarn.. forgot the core team is at pycon.. no chance they'll be doing reviews today. :-P22:32
negronjljamespage: https://code.launchpad.net/~james-page/charms/oneiric/cassandra/10x-plus-updates/+merge/96849 .... Reviewed and approved!  ... Thanks!22:52

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