/srv/irclogs.ubuntu.com/2012/01/04/#juju.txt

SpamapShrm.. I think we need a charm helper for dbconfig-common00:12
SpamapSmarcoceppi: looks like you had to jump through some hoops to turn it off for phpmyadmin00:12
marcoceppiSpamapS: It wasn't pleasent00:13
SpamapSthe whole idea of dbconfig-common actually isn't very pleasant00:13
SpamapSits a constant source of bug reports00:13
marcoceppiTrouble is, it'll likely be different for each service00:13
marcoceppiSpamapS: that's why I wanted to use upstream install for the charm :)00:13
marcoceppiThe solution was easy enough after playing around for a while00:14
SpamapSSo I'd like to reduce it down to 'ch_dbconfig_install packagename' and then in the hooks 'ch_dbconfig_config answer1=foo answer2=bar'00:16
marcoceppiWhat would ch_dbconfig_install do?00:18
SpamapSmarcoceppi: install it but leave it unconfigured00:18
marcoceppiHow would that be an advantage over this? https://gist.github.com/155772900:19
SpamapSmarcoceppi: taking advantage of the packager's work to configure for the database seems useful.00:22
SpamapSmarcoceppi: I suppose another option would be to ch_dbconfig_disable packagename .. and after that it would be up to the user.00:23
SpamapSmarcoceppi: one can always assume $packagename/dbconfig-(install|upgrade|reinstall) for disabling00:23
* SpamapS is still resisting the urge to use git.00:24
marcoceppiI like the idea of having it simplified down to "auto-filling" based on package name, so ch_dbconfig_config <package> selection1=value selection2=value which would just translate it out00:24
marcoceppiI would have like to maybe used dbconfig and set db-host, db-user, db-pass when db-admin-relation-changed was fired, but it just seemed too... flaky to me00:25
marcoceppiNot very idempotent00:26
marcoceppiat least, from what I understand00:26
SpamapSpostinsts and configs are idempotent by nature00:26
SpamapSso you would just re-run debconf-set-selections, and then 'dpkg --reconfigure foo'00:26
SpamapSerr00:26
SpamapSmight be --configure foo00:27
* SpamapS is still re-learning his job after a week detached from the internets.. :-P00:27
marcoceppi:)00:54
smoserhey.01:42
smoserwondering if someone could point me at what would be the most current instructions (or where i should start) for using the orchestra backedn01:42
koolhead11hi all04:10
_mup_juju/ssh-known_hosts r460 committed by jim.baker@canonical.com04:17
_mup_orchestra knows the dns_name; no need to look it up (and change corresponding mocks)04:17
SpamapSsmoser: around now.. I think there are some instructions on wiki.ubuntu.com .. but I forget. They *should* be on https://juju.ubuntu.com/docs06:24
_mup_juju/ssh-known_hosts r461 committed by jim.baker@canonical.com06:29
_mup_Fixed bad mock setup06:29
_mup_juju/ssh-known_hosts r462 committed by jim.baker@canonical.com06:49
_mup_Properly mock saving launch state06:49
=== TheMue_ is now known as TheMue
=== chuck_ is now known as zul
hazmatyikes the review queue is huge16:44
SpamapShazmat: https://code.launchpad.net/~daker/juju/small-fix/+merge/68038 , should we mark that as WIP ?17:27
hazmatSpamapS, i suppose, i ended up contributing the unit test there, but lacking the agreement its not clear that it can go in, its a trivial though17:33
hazmatyeah17:33
hazmatwip17:33
SpamapShazmat: I have a better idea for how to automate destroy-environment btw17:34
SpamapShazmat: -y is scary, like rm -rf. What about requiring  UUID of some kind?17:34
hazmatSpamapS, uuid?17:34
hazmatlike pass in a secret on the cli for confirmation17:35
hazmatseems odd, the unix'e way is to just pass a flag17:35
SpamapShazmat: not a secret..17:35
SpamapShazmat: the environment should have a UUID that is generated at bootstrap, and shown in status. Then you have to specify *that* UUID to destroy-environment17:36
SpamapShazmat: that way you don't accidentally destroy an environment you didn't mean to destroy.17:36
SpamapShazmat: if no UUID is expressed, then the y/n question is still asked (and if there's no TTY, then flat out refusal happens)17:36
SpamapShazmat: I'm still worried about automated oopses17:38
hazmatSpamapS, hmm.. as a check it seems sound, as for usage, it seems over wrought. i'd rather just spec the flag.17:38
hazmatSpamapS, at the end of the day humans are always a weak link ;-)17:38
SpamapShazmat: one other thought is to require the environment name be specified explicitly (ignore the default)17:38
SpamapSthis is not humans, this is code17:38
SpamapShazmat: I'm just concerned about automated scripts that have no idea whats in ~/.juju/environments.yaml and get run accidentally.17:40
SpamapShazmat: effectively we are encouraging people to write scripts that do 'rm -rf .'17:41
hazmatSpamapS, good point17:41
hazmatbut scripting environment destruction is what their trying to do17:41
hazmatwe can either make that command non orthogonal wrt to environment spec, come up with arbitrary uuid that's not used anywhere else, or just do the common thing which is request a flag for specifying force/assume yes17:42
SpamapSyeah, we should recommend that -e xxxxx always be used with destroy-environment17:44
jimbakerreminds me of gmail goggles17:44
SpamapShazmat: training wheels off.. I think thats the way to go17:45
* SpamapS wishes his man page had been accepted so he could update it.. ;)17:45
hazmatSpamapS, that seems like a reasonable safety belt if using -f17:45
hazmatSpamapS, is it in the review queue anymore?17:45
SpamapSno17:45
SpamapSit was rejected since we should, in theory, be able to coerce argparse into generating the man page17:45
jimbakerthat was back from dublin days17:46
hazmatah17:46
SpamapSI sat down to do that a few weeks ago..17:46
SpamapSand argparse made me throw up in my mouth a little17:46
hazmati think we've given up on that17:46
hazmatSpamapS, yeah.. its not pretty to extend17:46
SpamapSI think actually what we *can* do is parse out the --help .. as its structured enough to be machine parsable17:46
SpamapSsometimes the way python classes are written makes me really really confused17:47
SpamapScoming from C++ -> java -> perl -> php .. extending and overriding is so much more natural in most cases.17:47
SpamapSpython classes seem to just do weird stuff17:48
jimbakerSpamapS, i don't think you can use argparse as an exemplar. probably too much attempt in that codebase to support the old optparse approach however17:49
SpamapS$ juju deploy --help18:33
SpamapSerror: Environments configuration error: /home/clint/.juju/environments.yaml: environments.sample.region: expected 'us-east-1', got 'sa-east-1'18:33
SpamapSHeh.. thats annoying.18:34
SpamapS--help shouldn't care. :)18:34
_mup_juju/ssh-known_hosts r463 committed by jim.baker@canonical.com18:36
_mup_Do not assume current test code is correct ;)18:36
SpamapShazmat: https://code.launchpad.net/~nijaba/juju/autocomplete/+merge/86159 .. do you think that counts as a trivial?18:37
* hazmat peeks18:37
hazmatSpamapS, indeed18:38
* nijaba frowns to see his first juju core contrib counted as trivial :D18:39
SpamapSwe need to use a different word18:40
SpamapShow about 'elegant' ? ;)18:40
nijabahehe MUCH better18:40
SpamapShazmat: ok I'll just commit that18:40
_mup_juju/ssh-known_hosts r464 committed by jim.baker@canonical.com18:40
_mup_Fixed remaining orchestra provider test18:40
* SpamapS notices a second trivial change that is needed... remove --placement18:40
SpamapSnijaba: https://code.launchpad.net/~charmers/+archive/charm-helpers/+recipebuild/14905218:43
SpamapSnijaba: cross your fingers!18:43
jcastrom_3: so hey, crazy jorge idea validation time18:44
jcastroI was reading on planet devops about this: http://newrelic.com/18:45
jcastroit's saas but it has agents and whatnot18:45
jcastrohttps://github.com/newrelic/rpm18:45
SpamapSjcastro: a friend of mine has been using that and said its really nice.18:45
jcastroright, ditto18:45
_mup_juju/ssh-known_hosts r465 committed by jim.baker@canonical.com18:46
_mup_Removed debugging18:46
jcastroso my question is, is this a place where juju can help?18:46
jcastrojuju add-relation newrelic myservice does the magic and then you just go to the website and you have it all set up kind of thing.18:46
SpamapSjcastro: feels a lot like something you would subordinate into your machines18:47
jcastroyeah so this is why I asked18:48
jcastroSpamapS: http://www.jedi.be/blog/2012/01/04/monitoring-wonderland-moving-up-the-stack-application-user-metrics/18:51
jcastrothen I started wondering how many of these are open and could be juju'ed18:51
jcastroor if it's lower in the stack18:51
SpamapS"Part of their secret of success is the easy at how developers can get metrics from their application by adding a few files, and a token."18:52
SpamapSbad translation?18:52
SpamapSjcastro: we'd have to look into what they do, but if they are passive and just observe existing output of ruby/php/etc. apps, then it might be an easy win once we have subordinate services18:53
jcastrostatsd looks cool18:53
SpamapShazmat: where are we with lp:juju/docs ? still generating from trunk or is it fully split now?18:54
SpamapSjcastro: didn't westby tackle that or something?18:54
jcastrodunno, but it must be awesome, it's node.js18:54
jcastro:)18:54
SpamapSsooooo hot18:55
avoineI'm working on the a charm and I'm not sure how much configuration I should add in the config.yaml. Is more is better then less?18:56
avoinefor a public charm18:56
SpamapSavoine: depends entirely on the service.18:57
jcastrowhat service? It would be nice to know so I can track it!18:57
avoineit's already there it's python-moinmoin18:57
SpamapSavoine: but for the most part, I say if it *is* tweakable, put it in config.yaml.18:57
avoineok18:57
SpamapSavoine: if there are like, 100's of variables, then it may be best to have a single config option.. "override values" which users can just set after reading moinmoin's docs. But if there are only like, 20 or so, its nice to have them spelled out in config.yaml.18:58
jcastrooh rock and roll, that would be a nice one18:58
avoineSpamapS: "override values" is a good idea18:59
avoineI'll do that19:00
jcastrogood one, captured! https://juju.ubuntu.com/CharmGuide19:02
SpamapSjcastro: ^519:02
jcastromarcoceppi: I am pretty sure you have like, dozens of opinionated things you could add there, heh19:03
marcoceppijcastro: heh, yeah :)19:03
SpamapSplease keep it to your charm opinions.. "And whats with Burritos? They're not little burros, so why burritos?!"19:04
marcoceppiA charm review check list could be nice19:05
m_3jcastro: newrelic is ok... I used it for a couple of clients in the past.  there're a few different tools in that space19:09
m_3jcastro: have to think about how juju could best help... the monitoring setup is pretty lightweight (it'd be a trivial charm) but the app integration is where the meat really is19:11
m_3don't even know if they have an option to set up your own monitoring service with it19:12
m_3i.e., your own mother ship19:12
jcastrom_3: yeah as I peruse some of these I am seeing some that could be awesome, and some not.19:12
jcastroI just hadn't thought of measuring tools in such a detailed way, now I am seeing all these tools and wondering.19:13
jcastroalso, the more I learn about things like this, the more I wish I could go back in time and fire myself from my old jobs for being dumb.19:14
m_3seems like sensu would be a better way to spin up your own... newrelic does the full saas package for you19:14
m_3ha!19:14
m_3yeah, hindsight huh19:14
hazmatSpamapS, not sure its being generated at all atm19:28
SpamapShazmat: oi. Ok, well there are a few docs/* things waiting to be merged.. we should make it clear where they go and get them merged and out of the queue.19:57
hazmatSpamapS, i only see one from mbp?19:59
* hazmat looks around19:59
SpamapShazmat: there's one from Ahmed that I put back to WIP but will be simple to correct, and one from rog as well20:04
SpamapSanyway, I have to run, bbiab20:04

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