/srv/irclogs.ubuntu.com/2011/05/27/#ubuntu-ensemble.txt

SpamapSniemeyer: who do we need to poke to get a new release of txaws btw? I'd like to push it into oneiric soon00:39
SpamapSniemeyer: I know you've told me before but I keep forgetting00:44
niemeyerSpamapS: I know jkakar was one of the core devs01:37
niemeyerSpamapS: But looking at the logs today it looks like the Landscape guys have been doing quite some work on it lately01:37
niemeyerSpamapS: Probably as a side effect of Cloud Deck01:37
poolieniemeyer: oh i meant to say01:39
pooliei was wondering after the demo at UDS, whether ensemble could replace the 'ec2' script in lp:launchpad01:40
pooliewhich fires off instances to test lp etc01:40
niemeyerpoolie: Oh, that sounds interesting for sure01:49
niemeyerpoolie: We could put each of the services which compose Launchpad in their own formulas01:50
poolieright01:51
_mup_Bug #788950 was filed: Getting Started Documention is missing dependancies <Ensemble:New> < https://launchpad.net/bugs/788950 >05:26
_mup_Bug #788992 was filed: example formulas refer to providing the hostname in ensemble itself <Ensemble:New> < https://launchpad.net/bugs/788992 >08:46
niemeyerAw..  will have to bump the txaws version to 0.0.2bzr13:39
niemeyerotherwise the one in Ubuntu takes precedence13:39
niemeyerHmmm14:46
_mup_ensemble/trunk r36 committed by gustavo@niemeyer.net15:05
_mup_Minor version tweaks preparing for daily build. [trivial]15:05
niemeyerI thought txzookeeper would be the easiest and I'm stumbling upon it repeatedly. :-/15:15
_mup_ensemble/trunk r37 committed by gustavo@niemeyer.net15:20
_mup_Tweaked version extraction from __init__ to avoid build time deps. [trivial]15:20
niemeyerVictory, apparently15:28
hazmatniemeyer, cool15:31
niemeyerYay, it worked15:47
niemeyerhazmat: Morning15:47
hazmatniemeyer, g'morning15:48
niemeyerSo is ensemble itself all that is missing?15:49
* niemeyer checks15:49
niemeyerAlright.. one more15:51
niemeyerhazmat, SpamapS, jimbaker:  Unless there's anyone against it, I'll bump the version number of ensemble to 0.5, as it reflects better the project status than our current version16:04
hazmatniemeyer, sounds good16:05
niemeyerWe should be more diligent about bumping that next to our milestones16:05
niemeyer(at least)16:05
_mup_ensemble/trunk r236 committed by gustavo@niemeyer.net16:08
_mup_Version tweaks preparing for daily builds.16:08
kim0hazmat: thanks for your comment .. so I understand now changed always gets fired after joined. Does Ensemble wait for ALL joined hooks to finish, to start running changed, or is this order only enforced per node?16:15
hazmatkim0, per node16:15
kim0got it16:15
_mup_ensemble/trunk r237 committed by gustavo@niemeyer.net16:18
_mup_Merged packaging branch by Clint. [r=niemeyer]16:18
_mup_This improves the packaging further.16:18
niemeyerSpamapS: ^16:18
_mup_ensemble/trunk r238 committed by gustavo@niemeyer.net16:21
_mup_Bump package standards version to 3.9.1.16:21
niemeyerSpamapS: Do we still need those packages for Lucid which are in the Ensemble PPA?16:49
SpamapSniemeyer: ew16:51
SpamapSniemeyer: its almost *never* a good idea to have the debian dir in your trunk16:51
SpamapSniemeyer: absolutely you need lucid!16:51
SpamapS99% of all server deployments are LTS16:51
SpamapSincluding cloud. :)16:51
niemeyerSpamapS: almost! :)16:52
niemeyerSpamapS: We can easily take it out, but for now we (the Ensemble team, including you) are the maintainers, and this will make things simpler.16:53
SpamapSniemeyer: it will make things simpler until it goes into Oneiric. After that it complicates things.16:53
niemeyerSpamapS: Sounds good.. when it stops being simpler we can change it16:53
SpamapSniemeyer: because having debian/ in the orig tarball means either a) having a native package, or b) having to remove it from the orig tarball before upload. :-/16:54
niemeyerSpamapS: I dig that16:54
niemeyerSpamapS: No worries really.. we take it out when it stops being convenient16:55
SpamapSYeah sounds good16:55
SpamapSdid I see auto resolution land?16:55
niemeyerSpamapS: Kind of.. it was a spike16:57
niemeyerSpamapS: We need to polish the concept further now, while we work on the repository16:58
SpamapSyeah I figure its sort of going to be uninteresting until multiple repositories are available16:58
niemeyerSpamapS: Right.. and it's tricky business as well.. there are several edge cases and we don't want to get this wrong16:58
SpamapSthe biggest one I am unsure about is when a requires is already satisfied in your environment.16:59
niemeyerSpamapS: Once we have the repo server working, we can start gradually making the feature work, always falling back to manual action rather than uncertain results16:59
niemeyerSpamapS: Exactly.. that's an important one for us to figure16:59
niemeyerSpamapS: The problem as you say is that both options sound totally reasonable depending on the situation17:00
SpamapSAs an admin I'd want it to ask me in that case. "You already have a mysql server, do you want to deploy a new one or relate this service to it?" type of question."17:01
niemeyerSpamapS: That sounds like a good approach17:03
niemeyerThe PPA is complete!17:04
niemeyer*AND*, auto building17:04
niemeyerI don't know if it _works_, though.. but that's a separate problem. ;-)17:04
niemeyerhttps://code.launchpad.net/~ensemble/+archive/ppa17:05
niemeyerGuys, I'll be off this afternoon17:09
niemeyerand leaving for lunch now17:10
SpamapS\o/17:10
SpamapShoo-ray for daily build PP-A17:10
SpamapSmeh.. too much caffeine17:10
niemeyerSpamapS: Ah, phew.. for a moment I thought you were happy to get rid of me for a while. ;-D17:11
niemeyerLunch!  Back in a bit to pack.. :-)17:11
bcsallerniemeyer: got a sec?17:47
niemeyerbcsaller: Yo17:47
niemeyerbcsaller: Good timing17:47
bcsallerre point [5] in the last review, it's a keyerror around a zipfile.read call17:47
niemeyerbcsaller: Just back.. I'll be off this afternoon to visit a friend's farm, but I have a moment now17:47
niemeyerbcsaller: Yeah17:48
bcsallerthe alternative is to call getinfo(name) first which also raises a keyerror17:48
bcsalleris the one really better than the other in this case?17:48
niemeyerbcsaller: No, agreed, that'd be the same17:48
niemeyerbcsaller: Does it have any hasinfo(name) or similar?17:48
bcsallertrapping keyerror is used in the same file for the metadata.yaml as well 17:48
bcsallergetinfo(name) or namelist() and then check the list17:49
bcsallernamelist doesn't raise, but I don't think it makes any more sense 17:49
niemeyerbcsaller: The problem with KeyError is that tons of things raise KeyError in Python, and by catching it we may very easily be hiding something pretending we know what's going on when we don't17:50
bcsalleragreed, but it traps a single line with logical class of error documented and associated with that error condition 17:51
niemeyerbcsaller: Traps a single line?17:52
bcsaller try:17:52
bcsaller            content = zf.read("config.yaml")17:52
niemeyerbcsaller: main() is a single line as well ;-)17:52
niemeyerbcsaller: You see what I mean?17:53
bcsalleryeah :)17:53
niemeyerbcsaller: Go through open and read and see how many dictionary accesses are done there17:53
bcsallerhow about 'it traps a single call into a stdlib method'17:53
bcsallersame issue, but it seems to scope the possible outcomes17:54
niemeyerbcsaller: I don't understand what distinction you're making thre17:54
niemeyerthere17:54
bcsallerfair enough, just not sure what to do about it17:54
niemeyerbcsaller: Well, most importantly I'd like to get the point across :-)17:55
niemeyerbcsaller: So that's already a win :)17:55
niemeyerbcsaller: Now, for the solution, it feels like "config.yaml" in zf.namelist(): could be reasonable.. what do you think?17:56
bcsallerlooks like it does cache that info, so it shouldn't be too expensive to check it that way17:57
SpamapSHmmm.. interesting situation arising..18:08
SpamapSSo mediawiki can use master and slave dbs18:08
SpamapSBut it really has to wait for the master/slave relationship to be established before it can use the slave18:08
bcsallerand the slaves start hook would want access to the relationdata of the master to check for a flag but doesn't have a relation context18:15
bcsallerwell, you can still poll in the relation hook I guess and just fail until the flag is present, but setting that flag in the master might still be an issue 18:16
SpamapSI think its just the order of operations that I'm using.18:18
SpamapSblast.. need more time.. so much to do18:18
bcsallersomething I think we can all relate to :)18:18
SpamapSGoing a bit cross eyed getting the mediawiki + mysql master + mysql slave thing working18:22
SpamapSI'd swear the mysql formula's modified hook is being executed twice in a row.18:22
SpamapSwhich breaks things because it alters the password for the user18:22
niemeyerAlright, I have to head off now.. have a good wekend, and see you on Monday!18:27
bcsallerlater18:27
hazmatSpamapS, it is being called twice in a row, once after join, once after a remote change.. ie. there is always one spurious change hook execution18:29
hazmatSpamapS, for the master / slave you have a peer relation?18:29
SpamapSOOOHHH18:29
SpamapSno18:29
SpamapSits a requires/provides18:29
hazmatah.. i setup the mongodb one that way.. a replica set as a peer relation18:29
SpamapSsince it is one way18:29
hazmateither way works18:29
SpamapSpeer didn't work for me because it was unclear how to relate to just the writable DB18:30
SpamapSOk the "yes it is executing twice" thing is whats getting me.18:30
SpamapSdoh18:30
SpamapSok I have to run.. seriously late18:30
SpamapShazmat: thanks for the heads up18:30
hazmatSpamapS, np18:30
hazmatre peer just the fallback, failover to me seems a little logically cleaner with a peer.18:30
SpamapShazmat: the mysql formula in principia trunk right now (I think moved to lp:principia-tools now) has most of what I've done.. a few things haven't been committed yet tho18:31
hazmatSpamapS, i don't get the writable db part, you mean selecting whose the master?18:31
SpamapShazmat: promoting mysql slaves to masters is anything but clean18:31
SpamapSyou need to set things up for master/master from the beginning18:31
SpamapSand then you're talking about rings.. and expanding them.. no, its not simple18:32
SpamapSits not undoable18:32
SpamapSbut master/slave is super simple18:32

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