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

=== fjlacoste is now known as flacoste
=== hspencer[mtg] is now known as hspencer
=== almaisan` is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== wrtp is now known as rogpeppe
jamespageSpamapS, m_3 (or anyone else): any objections if I promulgate the hbase charm? it been pretty solid for me for at least a month now...13:56
_mup_Bug #987853 was filed: Juju Zookeeper node agent does not handle reboots <juju:New> < https://launchpad.net/bugs/987853 >14:20
negronjljamespage: I'm ok with it.14:51
jamespagenegronjl, marvellous - ta14:51
=== jcastro changed the topic of #juju to: Charms at http://jujucharms.com || Want to write a charm? http://juju.ubuntu.com/Charms" || OSX client: http://jujutools.github.com/
jcastrook folks, we have a Mac client!15:59
jcastrothanks to imbrandon! Round of applause please!15:59
SpamapSjamespage: has nobody reviewed it?16:00
hazmatbac, ping16:04
hazmatimbrandon, rockin16:05
bachi hazmat, thanks for the patch.  i haven't had a chance to test it yet.  i'll do so right after lunch.16:05
bachazmat: i assume that's what you wanted.  :)16:06
imbrandon:)16:07
hazmatbac, cool thanks, indeed it was.  i wasn't able to reproduce the original issue, but i've seen reports of it before relating to other cli commands, this should hopefully generically resolve them.. IFF the issue is the zk connection and not the ssh tunnel. if its  the tunnel or ssh process management then it won't help.16:07
* imbrandon did not do too much, basicly the equiv of packaing a rpm/deb, but charm-tools is next and i'm FRACKIN exstatic on cloud 9 about omgubuntu.co.uk right now16:08
bachazmat: ok, i'll let you know.  the original is easily reproduced so we should be able to see if it helps.16:08
imbrandongotta spam this one line for our deploy a min ago me marcoceppi did : This rush generated 25,661 successful hits in 1.0 min and we transferred 1.98 GB of data in and out of your app. The average hit rate of 414/second translates to about 35,796,365 hits/day.16:08
* imbrandon wants to frame those numbers16:09
imbrandonthats the juju omg wordpress charm on a single m1.small :)16:09
hazmatnice16:10
imbrandonme and marcoceppi gonna work on getting it split up now that there is suborainates into a nginx-proxy nginx wp-install and wp-site, i think is the tentive plan now :)16:14
_mup_Bug #987930 was filed: MAAS provider - Failure to bootstrap when no port is specified for maas-server <juju:Confirmed> <juju (Ubuntu):Confirmed> < https://launchpad.net/bugs/987930 >17:04
=== koolhead11|away is now known as koolhead11
hazmatDevOp Borat’s words: “Is all fun and game until you are need of put it in production.“19:27
fwereadehazmat, he's an icon to us all ;)19:42
=== Furao_ is now known as Furao
jcastroSpamapS: anything to promulgate today?20:30
jcastroLast call for juju contributor release notes!20:30
marcoceppijcastro:  I've got some bandwidth to do a review/promulgate20:31
jcastroit'd be nice to get drupal done and in20:37
jcastroimbrandon should totally be in there20:37
imbrandon?20:37
imbrandonoh yea i broke the drupal one a little bit ago, if your finaly gonna prom it give me a few!20:38
imbrandonjcastro: and i think releaseing the omg one with marcoceppi was a good step too :)20:39
robbiewjcastro: ping21:13
jcastrorobbiew: yo21:14
adam_ggiven the new features that allow hooks to act on other relations, what is the correct way to test that a relation actually exists?21:24
jimbakeradam_g, use relation-ids21:26
adam_gjimbaker: thats what i was trying to do. that will give me the list of interfaces, correct?21:26
jimbakerit will give a list of relation ids for a relation name21:27
adam_grelation-list seems to list names of related service units, which can be arbitrary depending on how its deployed21:27
jimbakerwhere the default is $JUJU_RELATION (if defined, as it would be in a relation hook)21:27
adam_gjimbaker: so, if i need to test the presence of a relation that provides some specific interface, i'd need to use a combination of relation-list + relation-ids ?21:28
adam_g(first time using any of this stuff, btw)21:28
jimbakeradam_g, you would need to something about the charm from metadata.yaml for any interface support21:29
jimbakerit was intentionally not added in core juju21:29
jimbakerspeaking of non core juju, you might find this command useful: https://code.launchpad.net/~jimbaker/juju-jitsu/juju-do/+merge/10336621:29
jimbakeradam_g, i'm pretty certain one could readily write a command that parses the metadata, then does the test you asked, with this proposed juju-jitsu addition21:30
adam_gjimbaker: i need this to happen from within hooks, not outside21:31
adam_gjimbaker: i essentialy need to something like:  if RELATION_TO_FOO_EXISTS: configure_this_way() else: configure_that_way()21:32
adam_gjimbaker: since i can't count on service foo being named foo, i should be able to test that a relation to something that provides a known interface to foo exists, right?21:33
jimbakeradam_g, it's available in the topology, but was excluded from the support i just mentioned. maybe we could pilot something in juju-jitsu for that support, to see if it really makes sense?21:34
* adam_g shrugs21:37
jimbakeradam_g, curiously enough, hazmat and bcsaller are discussing probably a better approach in #juju-dev21:37
* hazmat unwinds a shrug21:38
jimbakerwhich is to convey the interface and the charm name in the relation, as i'm reading the discussion21:38
jimbakermuch like ip addr21:38
hazmatadam_g, re some specific interface.. from the charm's perspective it knows what interface each rel name corresponds to21:39
hazmatadam_g, so relation-ids on the rel_name should suffice21:39
hazmatunless you also want to establish that its been joined at least in which case + rel-list21:40
hazmathmm. i really want a list of subordinates21:41
adam_ghazmat: thats what i had originally thought, something like: for r in `relation-list` ; do relation-ids $r ; done21:42
jimbakeradam_g, that wouldn't work - you are getting members of the relation in relation-list21:43
jimbakerbut you need a relation name for relation-ids21:43
hazmatadam_g, you've got your nesting inverted21:43
hazmatadam_g, so what's the use case?21:44
adam_ghmm. looks like i need to get a debug-hooks session going to grok this for real21:44
hazmatadam_g, for example if i'm in mediawiki  and i want to check on mysql from some other hook.. i could go rel_ids=`relation-ids mysql `  and then check if any of those have units.. although realistically in this case its only one.. (from the client side)21:45
hazmatunless its read-slave21:45
_mup_juju/relation-ids-whitespace-separated r532 committed by jim.baker@canonical.com21:47
_mup_Support smart formatting for relation-ids21:47
jimbakerhazmat, fyi, i need to get the above branch in to properly support things with relation-ids - currently relation-ids only output json21:49
jimbakeri will get it in shortly - just need a test21:49
hazmatjimbaker, gotcha21:51
adam_ghazmat: i'm basically trying to find a good common way of managing config files in this swift rewrite. i'd like to be able to use templated config files that change depending on relations to other services (specifically keystone).21:52
adam_gso that i can just write out a new template in every hook, instead of updating bits of config21:52
hazmatadam_g, templates in shell or via puppet?21:53
hazmator where those in python?21:54
adam_ghazmat: python21:54
adam_ghazmat: just messing around right now to see what works best21:54
jimbakeradam_g, this seems closer to what is done in charm tools, such as charm splicing21:55
adam_gjimbaker: ?21:56
jimbakerin terms of ops on charms21:56
adam_gjimbaker: i dont know what charm splicing is.21:58
jimbakeradam_g, i'm not certain what the current state is, but conceptually it allows for one to compose a charm out of a set of mixin charms. most of this need goes away with subordinates, fwiw22:00
_mup_juju/relation-ids-whitespace-separated r533 committed by jim.baker@canonical.com22:13
_mup_Add verifying test22:13
_mup_Bug #988065 was filed: Support smart formatting for relation-ids command <juju:In Progress by jimbaker> < https://launchpad.net/bugs/988065 >22:19
jimbakerhazmat, can you take a look at the above trivial?22:20
SpamapSjcastro: I'll hit the charm review queue today23:01
hazmatjimbaker, done thanks23:51
jimbakerhazmat, so is that a +1? ;)23:53
hazmatjimbaker, i dunno, does it do what its supposed to? that's unclear23:54
hazmatie. should be newline separate as impl, or space separate per the doc string23:54
hazmatwhat's the spec say in regards to this23:54
hazmatand what's the common shell usage for iteration23:55
jimbakerhazmat, so shell takes whitespace separated. i think convention is one per line in shell too23:55
jimbakerthe other convention in our code is relation-list, which does one per line23:55
jimbakerif for example, we have $ids=$(relation-ids db), then this will result in say "db:0 db:1"23:56
hazmatjimbaker, whitespace separate  .. means space separated23:57
hazmatto me anyways23:57
hazmatactually thats the common def23:58
jimbakerhazmat, it's a good question. my natural inclination was to join with a space, but we do have the existing convention in relation-list23:58
jimbakerbut it's all good23:58

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