/srv/irclogs.ubuntu.com/2011/07/18/#ubuntu-ensemble.txt

=== franciscosouza_ is now known as franciscosouza
fwereadegood mornings05:42
=== daker_ is now known as daker
_mup_Bug #812343 was filed: formula exec env should include DEBIAN_FRONTEND=noninteractive <Ensemble:New> < https://launchpad.net/bugs/812343 >15:04
adam_gm_3: pong16:03
m_3adam_g: was just responding with the rabbit stuff16:04
m_3adam_g: I attached it to the bug report16:04
m_3adam_g: was able to reproduce your problem, then got it 'started'16:05
m_3adam_g: misbehaving package dep16:05
m_3adam_g: lemme know if that fixes it for you pls16:06
SpamapSrabbit is a strange beast16:09
SpamapScauses all kinds of problems for LP devs because of its insistance that its hostname never change.16:09
m_3SpamapS: I think it was just a startup script in a dependent package not playing nicely16:10
SpamapSm_3: what package?16:11
m_3don't know which one...16:11
m_3apt-get install -y rabbitmq-server didn't work16:11
m_3adding noninteractive and --no-install-recommends fixed it for me16:12
adam_gm_3: i actually was using the non-interactive frontend for a while, but took it out to see if it made any difference16:12
adam_gill give no-install-recommoends a shot, thanks16:12
SpamapSerlang-base | erlang-base-hipe, erlang-asn1, erlang-corba, erlang-crypto, erlang-docbuilder, erlang-edoc, erlang-eunit, erlang-ic, erlang-inets, erlang-inviso, erlang-mnesia, erlang-odbc, erlang-os-mon, erlang-parsetools, erlang-percept, erlang-public-key, erlang-runtime-tools, erlang-snmp, erlang-ssh, erlang-ssl, erlang-syntax-tools, erlang-tools, erlang-webtool, erlang-xmerl16:12
m_3I can narrow it down to a particular package if this gets you past the hurdle16:13
SpamapSlots of dependencies from erlang-nox16:13
m_3yup16:13
adam_gm_3: still no luck with that install hook and those apt-get options.16:24
adam_gm_3: were you able to deploy to a completely fresh system?16:26
fwereadehey guys, didn't notice you come in :)16:27
fwereadeit's the end of my day now but I'll be back shortly16:27
fwereademy mind in in a maze of twisty little tests, all alike, and I'm not going to be able to resisit another look :p16:28
m_3adam_g: yeah, from totally shutdown to rabbitmq 'started'16:29
m_3adam_g: are you specifying the ami or anything in your environment?16:30
adam_gm_3: yeah, an oneiric daily from last week. which are you using?16:30
m_3not specifying ami... defaults to natty16:31
m_3ami-06ad526f16:31
m_3which ensemble rev?16:32
adam_gsec16:32
m_3fwereade: hey man16:34
m_3adam_g: yeah, just tested again and it comes up fine... only bzr diff with your branch is http://pastebin.com/76H4dsBF16:36
m_3adam_g: my env (less keys) http://pastebin.com/fL0fSn3r16:37
fwereadem_3: heyhey :)16:46
fwereadeoh, dammit16:49
fwereadeI just spent half an hour reexamining my apparently-flawed understanding of mocker and twisted16:50
fwereadeturned out to be a lower-case 'r' in some_mock.callRemote16:50
jimbakerfwereade, they are tricky to combine16:50
fwereadejimbaker: yeah, I assumed I'd encountered some subtlety that would teach me something16:51
fwereadeall it's actually taught me is lrn2type16:51
RoAkSoAxfwereade: \o/16:51
fwereadeRoAkSoAx: hey, how's it going16:52
SpamapSwe've all been humbled by twisted a bit. :)16:52
RoAkSoAxfwereade: good good16:52
RoAkSoAxyou?16:52
fwereadeRoAkSoAx: yeah, recovering, not used to this jetlag lark16:52
RoAkSoAxfwereade: hehehe yeah!! fun times !! :)16:53
jimbakerfwereade, in zed shaw's learning python the hard way, learning to type (and the resulting debugging) is a key piece of the learning strategy16:53
fwereadejimbaker: still haven't looked into that... I usually enjoy zed's stuff16:53
fwereadejimbaker: first encountered him ranting about statistics in the ZSFA days :)16:54
jimbakerfwereade, some interesting insight. i was perusing it for teaching my daughter python16:54
fwereadejimbaker: cool :) how old is she?16:54
jimbakerfwereade, she's 10. she has already programmed in C (albeit through the use of a visual editor) and squeak16:54
jimbakershe learned squeak on her own. C was for a robotics camp16:55
fwereadejimbaker: cool, I have that to look forward to, Laura's only 2 :)16:55
m_3adam_g: they're coming up, but rabbit's not fully installed... still trying to figure out where it's going16:55
fwereadejimbaker: I have some blurred photos of her waving a cuddly snake, and that's as far as I've got16:56
SpamapSjimbaker: My 8 year old found Scratch this last weekend. He had quite a bit of fun with it. :)16:56
jimbakerfwereade, so zed shaw's premise is that those of who learned how to program by typing in code from a magazine/book is fundamentally different than the latter practice of doing cut & paste16:56
SpamapSStill its really hard to keep him focused on it.. its an unbelievable leap for him from that to what the xbox does. ;)16:56
fwereadejimbaker: hmmm, yes16:57
jimbakeri don't know if he uses this analogy, but looking at code is like an expert chess player looking at a board. we can use pattern recognition to really grok what's going on - especially what's wrong16:57
SpamapScrap.. I suck at chess16:58
m_3_love_ scratch16:58
fwereadejimbaker: nice16:58
jimbakerSpamapS, yeah, my daughter was playing with scratch over at a friend's house. what kids do when you're monitoring them, it's dangerous ;)16:58
jimbakeryou're *not* monitoring ...16:58
fwereadejimbaker: it'll be like wargames all over again16:59
jimbakerfwereade, indeed. i think there will be a tv movie about it16:59
fwereadeRoAkSoAx: hey, cool, glad you're coming in august17:02
RoAkSoAxfwereade: mee too.. this week I'll be working on getting everything Clint'17:06
RoAkSoAxdid onto the ensemble bootstrap17:06
RoAkSoAxand I guess in the sprint we'll figure final details17:06
fwereadeRoAkSoAx: awesome17:06
fwereadeRoAkSoAx: I have the final(!?) state of that branch in review again, and I'm starting to integrate stuff from our shared branch on top of it17:07
fwereadeRoAkSoAx: it crossed my mind that from what Gustavo said I shouldn't be pulling from or pushing to that branch directly17:07
fwereadeRoAkSoAx: so I guess it doesn't need to be shared17:07
fwereadeRoAkSoAx: but no harm done :)17:08
RoAkSoAxfwereade: right, but well I guess that as long as nothing changes significantely and breaks the stuff i'm working on, there wouldn't be much difference on how e handle that17:09
RoAkSoAxfwereade: but still I'd like to work with a branch that's in sync with your work17:10
RoAkSoAxso I can be sure nothing will break significantly17:10
fwereadeRoAkSoAx: indeed not -- I just thought you should know17:10
RoAkSoAxfwereade: :)17:11
RoAkSoAx;)17:11
fwereadeRoAkSoAx: the major source of confusion I think is that I'm having to use the twisted xmlrpc client, and test it, and so the code is coming out the other end a ...little less recognisable17:12
fwereadeRoAkSoAx: but given I have an environment, I think I can be pretty confident in it if it has the same results as yours17:12
fwereadeRoAkSoAx: that said it might be sensible to get you to review my (your) changes once they've passed through my hands ;)17:13
RoAkSoAxfwereade: hehe yeah I was planning to send my changes for your review, as really, the main concern I have is just use all the goodness of your refactoring17:15
RoAkSoAxrather than me putting all the code in one single function17:15
RoAkSoAx:)17:15
fwereadeRoAkSoAx: as long as it's moderately spread out I'm not bothered :p17:15
fwereadeRoAkSoAx: just shout if you find you're ending up duplicating code17:16
fwereadeRoAkSoAx: which would imply a deficiency in itc current shape17:16
fwereadeRoAkSoAx: actually I had a question17:18
fwereadenetboot_enabled17:18
fwereadeacquire_system will only grab systems with it enabled17:19
fwereadestart_system always tries to set it to True17:19
fwereadeI presume we only actually need one of those, and I was wondering which you thought would be better17:19
RoAkSoAxfwereade: let me check17:26
RoAkSoAxfwereade: no I believe they should be kept17:31
RoAkSoAxfwereade: acquire_system will obtain an available system17:32
RoAkSoAxfwereade: while start system will tell it to start by issueing the commands, like containing the system through IPMI or stuff like that17:32
fwereadeRoAkSoAx: not sure I follow17:33
fwereadeif a system is already netboot_enabled, why would we set that to True again on start?17:33
RoAkSoAxfwereade: acquire_system browses for a system that is under foo-available management class, and grabs one 17:33
fwereadesimilarly, if we can set it to True on launch, why exclude systems that don't have it set?17:33
fwereadeRoAkSoAx: but acquire_system also skips those without netboot_enabled17:34
fwereadeRoAkSoAx: ...unless I'm looking at the wrong branch :/17:34
RoAkSoAxfwereade: then start_system, tells cobbler to contact any configured device to actually power on the machine. Setting it to netboot_enable when acquiring the system makes sure to acquire one that has netboot enabled17:34
RoAkSoAxfwereade: but when starting the system, it is making sure that netboot enabled is correctly set, otherwise the system willfail to netboot17:35
RoAkSoAxfwereade: it is just a way of making sure17:35
RoAkSoAxfwereade: cause let's say for whatever reason we acquired a system, and suddently someone changes the system profile on cobbler, then when ensemble tells it to boot the machine up17:36
RoAkSoAxfwereade: the machine wont be able to PXE17:36
fwereadeRoAkSoAx: if we also _set_ it when we acquire the system, I'm happy, but as it is we just skip the system if it isn't already set the way we want17:36
fwereadeRoAkSoAx: it makes sense to me to set it immediately before launch, even if it seemed to be set ok before17:36
fwereadeRoAkSoAx: but if we _can_ set it, why would we avoid acquiring a system _without_ netboot_enabled?17:37
RoAkSoAxfwereade: maybe it would be a system that we would like to not use for a moment but still keep under foo-available17:38
RoAkSoAxfwereade: I know it does not seem unnecessary, but for me I think it is a necessar evil :)17:38
fwereadeRoAkSoAx: I'd be inclined to make in-foo-available the single point of truth for that17:39
_mup_ensemble/expose-provision-machines-reexpose r292 committed by jim.baker@canonical.com17:39
_mup_Merged trunk17:39
fwereadeRoAkSoAx: but the critical thing is that it is actually intended17:39
fwereadeRoAkSoAx: and I don't need to worry that I'm totally misunderstanding ;)17:39
RoAkSoAxfwereade: yeha, but AFAIK I think we should not care that much right now about that, as it is super easy to override17:39
RoAkSoAxfwereade: cause as I mention, i think we need better ways to ensure the interaction with the management classes17:40
RoAkSoAxas I explained last week, we could set the management class from foo-available to foo-acquired and then the physicl machine might fail to start17:40
RoAkSoAxwhile ensemble status still shows that machine as available17:40
RoAkSoAxand doing the check, we can be assuming that "there's a reason by it has been set to disable. but let's just make sure we enable it before starting the machine"17:41
RoAkSoAxs/by/why17:41
fwereadeRoAkSoAx: yep, makes sense17:41
fwereadeRoAkSoAx: thanks :)17:41
fwereadeanyway, I think that really is it for me now17:43
fwereadegn all, see you soon17:43
_mup_Bug #812441 was filed: ensemble ssh should passthrough args to ssh <Ensemble:New> < https://launchpad.net/bugs/812441 >17:46
_mup_ensemble/expose-provision-machines-reexpose r293 committed by jim.baker@canonical.com17:51
_mup_Support reexposing a service17:51
niemeyerHallo!18:02
niemeyerm_3: Nice blog post118:06
niemeyer!18:06
=== daker is now known as daker_
jcastrom_3: SpamapS: *hand wave* who wants to go over the first cut of my ensemble slides?18:26
SpamapSjcastro: fire away18:27
SpamapSm_3: feedback on the NFS formula.. I don't think we should keep repeating the paradigm of using the remote service name for stuff.18:37
SpamapSm_3: I'd rather see us implement a mode where the consuming side suggests a name... that way two services can share the same NFS export.18:38
SpamapSm_3: we also need to put together some interface docs .. :)18:38
jcastrom_3: nice blog post!19:05
jcastroI wonder if it makes sense to do a debconf prompt when you install ensemble for the EC2 keys instead of punting the user to editing a dotfile right off the bat19:06
m_3niemeyer: thanks!19:20
m_3jcastro: are your latest on the U1 share?19:21
m_3SpamapS: yup... do you have any interfaces written up so far?19:23
jcastrom_3: they are19:27
m_3seems like it's naturally part of the formula doc... we then have an 'interfaces' page on the wiki that scrapes formula docs from the repo19:27
m_3jcastro: used 22G on U1 already... gotta get it off the web19:29
jcastroheh, nice!19:31
m_3jcastro: which talk you wanna go over first?19:34
jcastrom_3: 5 minute is the same you saw, 10 minute is just the exanded version of that, it just needs a once over19:34
jcastroEnsemble Long Presentation is the one I'm having a hard time with, it's like 30 slides but I am wondering if it needs to be so many slides vs. just doing a demo and going through it step by step19:35
m_3ok, I'll look19:36
jcastrom_3: I just TODOed myself making a presentation of your blog post basically19:36
jcastroit's nice to have something other than mediawiki to talk about, heh19:36
SpamapSm_3: no but I think we'll just use ensemble.ubuntu.com/Formulas/Interfaces/(interface-name-here) .. 19:37
SpamapSm_3: I was thinking we can use a yaml format.. and leave it open to plugin test scripts that can be run at each point to verify an interface... but.. I wonder if we shouldn't just write them up in a way we can re-use for your cucumber idea.19:37
SpamapSjcastro: less slides unless you do them "Identity 2.0" style.. http://www.youtube.com/watch?v=RrpajcAgR1E19:39
m_3cucumber can consume yaml and adapt tests to each interface as nec19:39
m_3jcastro: I'll try to build out some other stacks and blog about them19:41
m_3jcastro: mediawiki full stack is still a very compelling xample19:42
SpamapSm_3: more compelling w/ config settings  implemented. :)19:43
m_3jcastro: especially if we can connect other aux services we've developed19:43
m_3SpamapS: +119:43
m_3jcastro: ok, I personally don't like bullet points on slides... it automatically makes me want to sleep19:44
SpamapSm_3: watch identity 2.019:44
SpamapSbest presentation I've ever seen19:44
SpamapSIts the top of the pyramid, but some elements fit where we will start.. in the middle. :)19:45
m_3jcastro: diagrams on 10min-page15 should maybe be flipped over (mysql on bottom)... totally minor though19:45
jcastrom_3: someone from design will make us proper stuff  so pretend the blocks and stuff look pretty (but noted)19:45
m_3wow I really like the animated parts of that... good story19:46
m_3hard to believe though... (everybody says what we're saying here)19:47
SpamapSCloud 2.0....19:47
SpamapS;)19:47
m_3it's like... "no, really!"19:47
m_3jcastro: I'd expect we'll have different long-form talks depending on audience?19:49
jcastrom_3: that's totally ripped off from Nick, but I have no shame19:49
jcastrom_3: yeah so I was thinking of having fragments based on audience19:49
jcastroand then swap out parts of the long one depending on audience19:49
jcastrolike, I don't think sysadmins will even want or care about the long presentation, I'd want to just see a terminal and someone typing.19:50
m_3jcastro:right, that's sort of the point of services though19:51
SpamapSthey will care about the long presentation at oscon19:51
SpamapSlots of sysadmins and devs there19:51
m_3you used to have different perspectives on this19:51
jcastroSpamapS: I look forward to stealing your long form one as well.19:52
jcastroSpamapS: actually if you have it done and want to jet me a copy that would be swell19:52
m_3infrastructure meant very different things to different people19:52
SpamapSjcastro: I really like the idea around having 40-50 total slides, and just building presentations from those based on a few clues.19:52
SpamapShahaha done hahahahaha19:52
m_3high levefolks thought of services, sysadmins thought of servers19:53
m_3we're bringning th two together19:53
m_3jcastro: lightning's look great, lemme see what sort of notes I can come up with for longform.19:56
jcastroSpamapS: yeah, right now that's exactly what the 10 minute and long form one are, it's a shuffle of what I had around + more added in 19:56
jcastrom_3: you can plop your notes right into the slide notes if you want19:56
m_3definitely steal from SpamapS... 19:56
m_3SpamapS: how long is your talk?19:57
m_3(going to be)19:57
SpamapSm_3: 40 min19:57
SpamapSI have approximately 2 slides done.. in outline form only. ;)19:58
m_3jcastro: there's the answer :)19:58
m_3nice19:58
SpamapSI actually plan to have only about 10, with a couple repeating, if I do it right.19:58
m_3that what mornings are for19:58
m_3SpamapS: let us know if we can help... (draw a diagram or something)19:59
SpamapSHeh.. this was my deck for the last Ubuntu Cloud Days.. http://spamaps.org/files/Ensemble%20Presentation.pdf20:00
jcastroSpamapS: I just stole it, got any others around?20:02
_mup_ensemble/expose-provision-machines-reexpose r294 committed by jim.baker@canonical.com20:02
_mup_Removed debugging20:02
m_3SpamapS: great last slide20:02
SpamapSm_3: I think there are a few too many arrows and lines.. it was the first ensemble picture I painted. ;)20:03
jcastrowe'll just get someone to do a proper awesome diagram20:04
jcastroonce we get the content the way we want it20:04
jcastroso hopefully it won't look so complicated, heh20:04
jcastrorobbiew: I'd like to go over these slides today with you too if that's ok20:05
* jcastro is looking for any excuse to do a G+ hangout. :p20:05
robbiewjcastro: heh...cool...got a 1:1 with jimbaker now...in about 30min?20:29
jcastrowhenever is fine for me!20:29
_mup_ensemble/expose-provision-machines-reexpose r295 committed by jim.baker@canonical.com20:31
_mup_Removed sleeps in ensemble.state.tests.test_base and added test for client being disconnected in a watch20:31
robbiewjimbaker: ping :)20:32
jimbakerrobbiew, hi20:33
robbiewjcastro: yo21:01
jcastrohowdy21:01
robbiewready to go, when you are21:01
jcastrorobbiew: sure, wanna hang out?21:03
jcastroer, "hangout"21:03
robbiewsure21:04
jcastrostarted21:04
robbiewjcastro: so this is my big problem with G+21:07
robbiewI can never figure out how to hangout21:07
robbiewbeyond hanging with a whole damn circle21:07
bcsalleroh, are we hanging out? brt21:08
bcsallerj/k21:08
SpamapSjcastro: hrm, why doesn't u1's little messaging indicator tell me when you have shared something with me? In this case, it only told me that I had accepted a share.. :-P22:07
SpamapSseems rather silly22:07
SpamapSjcastro: "Ensemble Manges Services, not Machines" .. how baout "Ensemble Manages Services, not Servers"22:11
jcastroooh, I like that22:12
jcastroSpamapS: I am heading to dinner, if you can just PM me your feedback that would be great and I can check it out when I get back22:12
SpamapSjcastro: Or in the morning.. no rush. :)22:20
adam_gthat reminds me... 22:24
adam_gim going to give a demo of ensemble at a local AWS users group. are there slides anywhere that might be of use?22:25
jcastroI've got some22:27
jcastrowhen is your talk?22:27
adam_gjcastro: thanks!22:30
adam_gtomorrow night :)22:30
adam_gSpamapS: regarding your comment on https://bugs.launchpad.net/ensemble/+bug/810808 , is there a way to run debug-hooks so that it can catch exec of the install hook of a yet-to-be-deployed unit  in time?22:42
_mup_Bug #810808: Formula install hook never completes <Ensemble:New> < https://launchpad.net/bugs/810808 >22:42
SpamapSadam_g: I think if you get debug-hooks going before the install hook it will work.. but that may be tricky as you probably can't run debug-hooks until ssh is working22:44
adam_gSpamapS: ssh isn't the tricky part, but deploying the service and getting debug-hooks to run before the install hook fires23:03
SpamapSadam_g: looks like we need a --debug-wait option to deploy/add-unit23:16
adam_gSpamapS: might be useful. i was actually able to catch the hook by looping while waiting on ec223:19
adam_gand it turns out, if i run the install hook manually it installs rabbit, exits and continues onto start after23:20
* adam_g puts on his strace goggles23:20
SpamapSHaha23:21
* SpamapS has a vision of a gunner in a Mad Max / Waterworld tank preparing to mow down the unfortunate syscalls..23:21
adam_ghehe. 23:23
adam_gwhich process actually execs the hooks? the machine agent or the unit agent?23:25
SpamapSunit23:26
SpamapSmachine execs unit agent..23:26

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