/srv/irclogs.ubuntu.com/2011/10/21/#juju.txt

_mup_txzookeeper/session-and-conn-fail r44 committed by kapil.foss@gmail.com03:26
_mup_watch delivery tests and some additional session expire tests03:26
beberhi11:27
beberI've got some problems with juju and the local provider11:27
beberI can't deploy more than a single service11:28
beberis this a bug ?11:28
fwereadehi beber, sorry I missed you, I was having lunch12:08
fwereadeit may be a bug; would you describe what you're trying to do please?12:08
beberhi12:08
beberok, I'm just trying to use juju with the local provider12:09
beberI'm using VirtualBox as a test machine (with Oneiric)12:09
beberOnce juju is installed, I bootstrap the environment12:09
beberand deploy the mysql charm12:09
bebereverything goes well, the mysql unit is started12:10
beberbut then, when I want to deploy another charm or add a mysql unit, nothing happens12:10
fwereadenothing at all?12:11
beber(despite juju tells me "INFO 'deploy' command finished successfully"12:11
beberI use watch -n1 "ps afx | tail -n 45"12:11
fwereadeah ok, so when you "juju deploy wordpress" it claims to deploy but nothing happens12:11
beberexactly12:11
fwereadeand similarly for "juju add-unit mysql"?12:11
beberyes12:12
fwereadebeber, there are a couple of logfiles that might be helpful12:13
fwereadethere should be a data-dir defined in your environments.yaml12:13
bebercould you tell me which one to look at ?12:13
beberyes12:13
fwereadeah, hmm, just a sec, I have an alternatve "what's-going-on" command12:14
fwereadepgrep lxc| head -1| xargs watch pstree -alU12:14
fwereadebut the interesting logfiles would be12:15
fwereadedata-dir/units/master-customize.log12:15
fwereadedata-dir/machine-agent.log12:15
fwereade...and the output of:12:15
fwereade/usr/lib/juju/juju/misc/devel-tools/juju-inspect-local-provider12:15
fwereadewould also be helpful12:15
fwereadebeber, if you pastebin those over I will gladly take a look12:16
beber_sorry, wifi problem...12:17
fwereadebeber_, np, I'll repaste it privately to avoid spam ;)12:17
hazmatgood mroning13:34
hazmatmorning13:34
SpamapSFYI, today I am going to switch the build recipe to use the packaging from Ubuntu (for natty -> precise) ... Maverick and Lucid had to have changes applied14:19
jimbakerfwereade, what if we used mixin instead of colo? to me, colocation sounds much more like placement as an equal on the same machine. which is important, just the other story :)15:58
fwereadejimbaker, that's quite nice15:59
jimbakerin any event, programming has a whole set of words we can choose from with these sorts of ideas15:59
fwereadejimbaker, I spent the afternoon writing an email trying to define a minimal set of changes to get this story up, and I started using the word "buff", which I've grown quite fond of16:00
jimbakerbuff ;) ?16:00
fwereadeit sounds magicy and geeky and has about the right meaning ;p16:00
jimbakeras in waxing something?16:00
fwereadenah, as in games16:00
fwereadecasting a spell on something to give it more strength or speed or whatever16:01
jimbakeri see, this is very jargony however (never heard of that usage before), but it's there on http://www.urbandictionary.com/define.php?term=buff16:02
fwereadeI have a theory that it's an immediately comprehensible name to a good proportion of our target demographic, but, er, I'm 0 for 1 so fr :/16:02
jimbakerfwereade, what if we used something like blend?16:03
jimbakeror maybe we can find words from potion making16:03
fwereadejimbaker, my quibble with that is that mixin/blend implies a two-way relationship, which is not necessarily applicable16:04
fwereadeI also considered "aura" as a semi-appropriate magicy word, but it didn't seem to work so well16:04
jimbakerfwereade, actually that's the good thing about mixin, it's not 2 way at all16:04
fwereadejimbaker, in theory :)16:05
fwereadebut I do take your point16:05
jimbakerwell, again from its usage in programming, that's the case. but i may be the less target. i have never played a MMORPG16:05
fwereadejimbaker, you're not missing all that much (says the man who played WoW for 4 years ;))16:06
jimbakerfwereade, reality consumes enough of my time it seems16:07
fwereadejimbaker: yeah, RL is OK, but the surrounding of most major cities are totally overrun with farmers16:08
* fwereade shamelessly steals a joke from somewhere he can't remember16:08
jimbaker:)16:09
jimbakerfwereade, so mixin sounds good, and if we can find a good charm-oriented synonym that connotes that little extra special (pixie dust, unicorn hair, powdered dragon bone), that would be nice16:10
fwereadejimbaker, sounds good :)16:13
_mup_txzookeeper/session-and-conn-fail r45 committed by kapil.foss@gmail.com17:02
_mup_make the proxy easier to use as for blackholing communications, and verify session expiration with event and exception17:02
* hazmat ponders failure17:50
jimbakerhazmat, sometimes we must fail before we can succeed ;)17:53
jimbakeri believe there are successories to consider too17:53
SpamapSfailure is the only teacher really17:56
hazmatindeed its hard to model/test failure without the experiencing it17:57
hazmati guess the team meeting got scrapped17:57
SpamapSspeaking of failure.. I have been failing at reading email the last 3 days17:57
* SpamapS implements more auto-labelling for sup17:57
robbiewI thought the meeting was punted to next week?17:57
robbiewSpamapS: filters...filters...filters17:57
jimbakerthat's my understanding too17:58
jimbakerre meeting17:58
hazmatcool17:58
hazmatadd-buff ;-)17:58
SpamapSrobbiew: yeah, I'm finally giving in and implementing some17:58
jimbakerin my mind, 'juju add-mixin mysql logging' is not as obscure as 'juju add-buff mysql logging', but maybe i'll learn to like the obscurity18:02
SpamapS** huge rocks fall from the sky and kill everyone.18:03
SpamapSfwereade: thank you for the LOLs18:03
_mup_txzookeeper/session-and-conn-fail r46 committed by kapil.foss@gmail.com18:18
_mup_extant watches recieve errors on session expiration18:18
hazmatuh oh... exceptions.SystemError: error return without exception set18:22
hazmatbindings bug18:23
_mup_txzookeeper/session-and-conn-fail r47 committed by kapil.foss@gmail.com18:38
_mup_capture a test case that exposes a bug in the libzk python bindings18:38
careogl18:39
careowrong window, sorry18:43
hazmatno worries18:47
* hazmat debates the value of meta programming error handling 18:47
hazmatgenerally not a good idea, but for a retry facade it seems appropriate18:48
SpamapShazmat: I ran into a guy at ODS who said he had a lot of problems with libzk19:44
SpamapShazmat: said he had developed a pure python ZK library because of it19:45
hazmatSpamapS, yeah.. the error handling is delciate, and without the twisted bindings, using libzk is painful imo, but in general its been pretty solid as of 3.3.3.. i contributed a few patches/bug reports upstream when we were first getting started19:45
hazmatSpamapS, most of it the issue is actually not the python zk binding, though there are some, but just understanding libzk itself.. i'd be curious to look at an alternative py lib though19:47
hazmatSpamapS, a few weeks ago i started another one zk python wrapper ( still built on py libzk) using a coroutine greenlet approach.. still its infancy though..19:48
hazmat^in19:48
* SpamapS imagines hazmat surrounded by bubbling flasks of liquid over bunsen burners and tubes 19:52
hazmatSpamapS, at the moment its hp touchpads and hard drives for a nas ;-)19:53
SpamapSI need to bite the bullet and buy an SSD19:57
SpamapSKeep debating with myself about what size and whether to get two or one SSD and one honking big rotational drive. :-P19:57
hazmatSpamapS, i'm planning on  waiting for the new ocz onyx  and samsung 830s, should be out at the start of nov.20:02
SpamapSI don't really do the "wait for the best" thing20:02
SpamapSI do the "whatever costs me the least amount of time" thing :)20:02
SpamapSRight now 5400rpm is costing me time.. so I need an SSD now. :)20:03
hazmatSpamapS, talk about breaking backwards compatiblity ;-)20:49
SpamapShazmat: which thing?20:53
hazmatSpamapS, the commit diff stuff20:53
SpamapSoh, well we can turn autocommit on for the first release. ;)20:53
SpamapSAnd its selective backward incompatible.. you can turn on the "old mode" if thats what your scripts expect. ;)20:54
SpamapShazmat: we can also just punt that off to a wrapper if we have import/export20:56
hazmatSpamapS, why is this more repeatable?20:56
hazmatvs. just import/export20:57
SpamapShazmat: because you get a single thing, in VCS, that is the exact way to repeat what you have20:57
SpamapSIf you've had an env for 2 years, and youw ant to repeat, you don't want to repeat *every* deploy, add-relation, add-unit, remove-unit .. ;)20:57
hazmatso more of an oplog20:57
SpamapSthe thing in vcs is the exported env20:57
hazmatvs. just load this graph20:57
SpamapSI think we're agreeing20:57
SpamapSgive me exports and imports and I can implement this w/o juju's help20:58
SpamapSoplog would be a disaster. I want a snapshot. :)20:58
hazmatyeah.. if your building it on the graph, its not clear to me what the extra value is.. but i think my perspective is long, given the 2 year running env, with import/export, you just load up the export and your done. the distinction here is being able to verify the evolution of the system,21:00
hazmatso effectively a snapshot audit log21:00
SpamapSIt could be done simply with user discipline21:00
SpamapSbut I like the idea of being able to edit the local copy with the same commands you would use to edit the live copy21:01
hazmathmm but all of the ops are effectively standalone transactions, ie. its not atomic21:01
SpamapSYeah if one of them fails I understand, you can't back them out21:01
SpamapS--dry-run to the rescue? ;)21:01
hazmatyeah.. probably not, dry-run is effectively print the dump ;-)21:02
SpamapSwith the import..21:02
SpamapSyou'd need a way to tell the user what you're going to do to the env21:02
hazmatbut actually understanding what its doing to the units is non starter unfortunately.. hooks are  binaries21:03
SpamapSlike, I'm going to destroy service X, and create a new service called Xasdf... etc21:03
hazmatyou can see what its doing to the env, but what its doing to the machines is a different matter21:03
SpamapSyeah thats more of an operational issue21:03
SpamapSif stuff fails.. you're going to have to resolve that yourself21:03
SpamapSBut what the user needs to see is the *diff*21:04
SpamapSwhat is this import going to do to my environment?21:04
SpamapSWith single commands.. you know.. because you're running them. ;)21:04
SpamapSPuppet goes through the same problem. --dry-run tells you its going to edit file X and put value Y in it.. but that may still fail for some reason21:06
SpamapShazmat: anyway, export/import seems the key to repeatability21:06
SpamapSOk well I've muddied the waters enough for today. Back to syncs and merges. :-p21:07
_mup_txzookeeper/session-and-conn-fail r48 committed by kapil.foss@gmail.com21:10
_mup_a zookeeper client facade that transparently retries on various non fatal connection errors21:10
hazmatSpamapS, but the import itself is the diff21:11
hazmati'd rather it just bail before attempting to modify anything existing in the env21:12
hazmatand just add a prefix op21:12
hazmatfor importing it back into a running env that may have those existing services21:12
hazmatperhaps the delta application is useful and we can grow that, and a diff op against that21:13
* hazmat goes back to pondering failures21:16
hazmatargh.. this is tricky21:27
_mup_txzookeeper/session-and-conn-fail r49 committed by kapil.foss@gmail.com21:36
_mup_retry wrapper for watch methods, run the full client test suite against the retry facade via test subclass, disable white box tests21:36
jimbakerbcsaller, sorry i'm just re-reviewing statusd. would it be possible to address my review points? it does look like you have fixed things, but obviously a doublecheck would be nice21:41
jimbakerthe more important thing: watch_status does not sufficiently watch the changes in the environment with respect to expose services and opened ports21:42
bcsallerjimbaker: I'll iterate in the proposal, thanks21:42
jimbakerthese are not in the topology node21:42
jimbakerbcsaller, you probably should take advantage of the provisioning agent here. you don't want to redo the watch structure for expose. trust me on this ;)21:44
jimbakerbcsaller, this is actually a good requirement for the refactoring in bug 873108; you should be able to use the observer capabilities to register an interest in these changes. right now, they are just there to support testing, and support just one observer. multiple observers might be the right solution here21:49
_mup_Bug #873108: Move firewall mgmt support in provisioning agent into a separate class <juju:In Progress by jimbaker> < https://launchpad.net/bugs/873108 >21:49
bcsallerjimbaker: thanks, looking into it21:50
jimbakerbcsaller, the other thing to consider is the impact of https://code.launchpad.net/~fwereade/juju/dynamic-unit-state/+merge/79560, this will add more ways for the status to change22:56
bcsallerjimbaker: I'm thinking about the idea of us to chase these down, vs these somehow triggering a status change (touching /status to trigger the watch)22:57
jimbakerbcsaller, agent status is an ephemeral node, but its structure is not one easy to watch without recursive watches22:58
jimbakerbcsaller, but definitely the expose refactoring can do this triggering, via the observer mechanism22:59
jimbakerbcsaller, so agent status will definitely require more thought. this might be a good thing to point on its review, my first impression was that fwereade's branch was too big in scope23:01
hazmatwoot it works23:17
_mup_txzookeeper/session-and-conn-fail r50 committed by kapil.foss@gmail.com23:18
_mup_get_children_and_watch test with transparent retry on connection lost23:18
SpamapShah.. wow.. I've been running my blog on 11.04 and now 11.10 for 8 months.. just now realized there's a massive incompatibility between wordpress 3.0.5 and the jquery version that natty and oneiric have23:18
SpamapSJust figured my drizzle mods were causing the problems23:19
_mup_txzookeeper/session-and-conn-fail r51 committed by kapil.foss@gmail.com23:33
_mup_additional transparent retry tests with watchers, remove bad session test based on erroneous upstream faq entry.23:33
_mup_txzookeeper/session-and-conn-fail r52 committed by kapil.foss@gmail.com23:42
_mup_remove management of the connected attribute on clients from error handler, libzk is going to be transparently reconnecting under the hood, also supports retry much better23:42

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