/srv/irclogs.ubuntu.com/2011/12/14/#juju.txt

nijabam_3: pong00:05
m_3nijaba: so in the peer relation hook, it doesn't look like the key's being gen'd00:06
nijabam_3: humm which one?  the ssh or des?00:06
m_3des00:07
* nijaba looks00:07
m_3I'm still testing, but gotta make some changes locally before I get further00:07
m_3config-changed barfs if you just use default config params (trying to do stuff with ssl certs even though do_https is off)00:08
nijabam_3: hmm. the des key should be generated the first time get-des-key gets called00:08
nijabam_3: uhhh did not do much test with default params, you are right.00:09
* nijaba juju bootstraps00:09
m_3wondering about a couple of strictly '-lt's in the peer hook00:09
SpamapSwe should offer Juju boot straps in the ubuntu store00:10
m_3doesn't look like that'd be called for the master... that the key's being gen'd from a set-des-key calling get-des-key00:10
nijabam_3: it is called the first time peer-relation-joinded is invoked, afaics00:12
m_3nijaba: adding a 'do_https' guard around 'set-ssl-cert' in config-changed to get it deployed00:13
nijabam_3: drat, you are right.  I should have guarded this.  do you want me to work on it with default params a bit more and signal you back.  I was a bit too much concentrated on distributing those certs that I forgot the basic test case00:16
m_3nijaba: the part I'm trying to get to test is the peer-relation-all in the master case.  I'm wondering if:00:17
m_3if  [[ $LOCAL_UNIT_ID -lt $REMOTE_UNIT_ID ]] && [[ $LOCAL_UNIT_ID -lt $FIRST_UNIT_ID ]] ; then00:17
m_3sorry for the bad paste, but I'm wondering if this is ever true00:18
m_3[[ "0" -lt $SOME_UNDEFINED_VARIABLE ]] && echo "yes" || echo "no"00:18
nijabam_3: it is, according to my logs.  done tests all the way, removing a master, middle and end nodes00:18
SpamapSlooks like we need a charm helper for peers and leader detection00:19
SpamapSI did something very similar in ceph00:19
m_3SpamapS: yes, agree... there're multiple impls already00:20
m_3nijaba: cool...  I'll bang on it00:20
* m_3 is sticking with my primary skills00:20
nijabam_3: the theory is that the unit I am on is never in the the list.  So if my id is less than the remote and the first unit id in the list, then I am elected master00:21
m_3nijaba: right00:22
SpamapSrelation-list shows all parties, IIRC00:23
nijabadrat, my chmods in set-ssl-cert are at the wrong place, hence the issue you found when they are not set00:23
* SpamapS honestly doesn't remember, but I think in ceph I had to account for my own ID being in the list00:23
m_3I'll test it carefully to see what's going on... my guess was that this wasn't executing, but the key was still generated 'lazily' by set-des-key00:24
nijabaSpamapS: I never ever saw this happen so far.  maybe implementation has changed?00:24
m_3set-des-key with and empty arg actually calls get-des-key which gens00:25
m_3s/and/an/00:25
SpamapS    relation-list > $units_file00:25
SpamapS    echo $JUJU_UNIT_NAME >> $units_file00:25
SpamapSnijaba: you are correct .. it is actually only the "other" units00:25
m_3totally need an i_am_leader helper fn00:27
nijabam_3: yes, this was intended.00:27
nijabam3: (set-des-key calling get-des-key when called with no param)00:28
SpamapSm_3: ch_peer_leader00:28
SpamapSand ch_peer_i_am_leader00:29
nijabam_3: that would have helped me A LOT.  had to fight a few hours to understand the logic00:29
SpamapSnijaba: as did I. We will have to combine the best of those two implementations into a charm helper version.00:31
nijabam_3: just pushed a fix for the config-changed set-ssl-cert that seems to work better :)00:32
m_3that's ok, I reimplimented facter while writing varnish... doh!00:32
m_3nijaba: I'll pull in a bit... I just commented them out to get to teh peer relations00:33
nijabaSpamapS: mine is actually already inspired from you ceph charm, but it did not look like we had exactly the same case.  ceph seems to need keys to all other peers, I just need to push the keys of the current master00:34
SpamapSnijaba: yeah there are two different things needed. One is a generic system for agreeing on who is the leader. The other one is a generic system for transferring a file from the leader to all non-leaders in a peer relation.00:34
nijabaSpamapS: right.00:35
nijabaI can try to genericize in ch_helper if you want.  It's quite fresh in my head atm00:37
SpamapSGo for it!00:37
SpamapSnijaba: please add tests for it in tests/helpers00:37
nijabaSpamapS: k00:37
SpamapSnijaba: I named the file 'helpers.sh' but I think it should have been 'net.sh'. Since what you are doing is really, I think, unrelated to net.sh, you should maybe call it peer.sh00:38
nijabaSpamapS: remind me where the branch is please00:38
SpamapSlp:charm-tools00:38
nijabam_3: I really did not test without cert sets. /me slaps myself00:40
m_3nijaba: peer keys seem to be generated just fine... sorry for the noise00:40
m_3pulling your latest00:41
* m_3 on to the next test scenario00:41
mchenetzyeah... Stackops server1 is up... Now for another compute node00:44
mchenetzor openstack00:46
nijabaSpamapS: I am not seeing any helpers.sh file, only helper/sh/net.sh...  not sure what you meant00:52
nijabaSpamapS: Can I use bash, or you tink sh is very important?00:53
SpamapSnijaba: in tests/helpers, there is helpers.sh00:56
SpamapSnijaba: write the tests first. ;)00:56
nijabaSpamapS: ah? really? I usually do the opposite...00:56
SpamapSnijaba: I use posix shell only, if you guys feel strongly that bash is important, we can make them bash specific, but they need to be called .bash, not .sh00:57
SpamapSnijaba: TDD, write test, then write code.00:57
nijabaSpamapS: aye sir00:57
SpamapSnijaba: you're welcome to do it your wya. :)00:57
SpamapSway even00:57
SpamapSbut typically tests written after the fact are more shallow and have more assumptions in them.00:58
nijabaSpamapS: good to know.00:59
SpamapSnijaba: to be fair, I do it "the right way" only about 50% of the time, because usually I'm too busy to write tests first. :)01:00
m_3the biggest thing that gets me with sh -vs- bash is the ${VARIABLE%%.xml} expasion stuff01:00
m_3saves having to exec cut01:01
SpamapSm_3: that stuff is awesome.. and available in all shells.01:01
SpamapS     ${parameter%%word}    Remove Largest Suffix Pattern.  The word is expanded to produce a pattern.01:01
m_3and really lots more than just cutting (regexp subs)01:01
SpamapSfrom man dash01:01
m_3was having problems in dash01:02
m_3in particular, the substitution one... ${VARIABLE//\/*}01:02
nijabaSpamapS: what were you expecting "ch_peer_leader"? return the leader unit name?01:02
SpamapSnijaba: echo $leader .. yeah01:03
m_3even unit sequence id would be great01:03
nijabam_3: which do you prefer?01:03
* nijaba put a param :)01:03
m_3but go with the whole unit name I'd think, it can be trimmed by the user01:03
SpamapSoh yeah another one that wouldn't be peer related at all is just "ch_my_unit_id" and "ch_unit_id"01:04
m_3with the ${//} above :)01:04
SpamapSEven though those are basically just 1 liners01:04
SpamapSm_3: I tend to go with ## or #01:04
SpamapSBut I can't explain why ;)01:04
m_3right01:04
m_3didn't know dash was supposed to impl it01:04
m_3I'll check and see if a bug is appropo01:05
m_3you'd think that'd be in the test suite tho01:06
SpamapSYeah I believe there's an actual POSIX test shell test suite somewhere out there01:07
* m_3 relocating... coffee shop -> home01:20
nijabam_3: drive safely :)01:22
nijabaSpamapS: how can I simulate a call to relation-list? relation-list is a bad function name in sh01:59
nijabaSpamapS: charm_tools waiting for a merge :)03:19
* nijaba -> bed03:19
SpamapSnijaba: alias relation-list=my_relation_list07:11
TheMuerog: Ready for a worklow question?08:15
rogTheMue: sure08:17
TheMuerog: In my past I've worked with svn and hg, so some questions about the workflow here with bzr.08:17
rogTheMue: go on08:18
TheMuerog: If I wonna start something new, like we yesterday talked about, I first create a branch with a kind of name describing what I'm doing?08:18
TheMuerog: E.g. bzr lp:juju/go go-add-state08:19
rogTheMue: yeah. actually i rarely know what the change will be until i'm nearly ready to submit, so i often just name it something fairly generic to start with08:20
TheMuerog: ok08:20
rogs/bzr/bzr branch/ but yes, that's right08:20
TheMuerog: Oh, eh, yes. ;)08:20
TheMuerog: So let's asume I've then got something I want to submit, what are the next stepts?08:21
TheMuesteps08:21
rogin your case, i think that rather than starting with a branch, i might write down how you envisage the API08:21
rogand put it forward for comments08:21
rogbut anyway08:21
rogok if you want to submit something08:22
rogyou'd use gustavo's lbox tool08:22
rog(have you installed that?)08:22
TheMueyep08:22
rogthere's been a new version very recently, so you might want to update, BTW08:22
TheMuedone this morning ;)08:22
rogok, so you'd commit your changes (bzr commit)08:23
rogthen you'd do lbox propose -cr -for lp:juju/go08:23
rogand that should get you to edit a file to which you can add the description08:24
rogof the changes08:24
rogand it'll put the merge request onto launchpad and codereview08:24
TheMueah, ic08:24
rogthen if you need to make some changes in response to the review, you commit and run lbox propose again (with no args this time)08:25
rogthen when you get a LGTM, it's time to do the actual merge08:26
rogto do that, i make sure that i have a trunk branch that's up to date (e.g. cd my-repo-dir/go-trunk; bzr pull)08:26
rogthen go to that directory and merge in your change08:27
TheMueok, got it08:27
rogbzr merge ../go-add-state08:27
rogthen build and make sure that everything tests ok08:27
rogthen, assuming that's all ok, you can do: bzr push08:28
rogto actually commit the changes08:28
TheMuewho's giving the LGTM? only gustavo or are always at least two people needed?08:28
TheMuefine, helps a lot, will write it down in my Getting Started document08:29
rogTheMue: only one LGTM is needed, but you might want to resolve discussions if there's some other comments08:29
TheMueso of anyone says it's ok that's enough. got it.08:30
rogthe other thing that caught me out was when i had some branches in a sequence08:30
rogTheMue: generally you want a LGTM from gustavo - he's the man08:30
TheMuerog: ok08:31
rogonce you've pushed a branch, if you want to work on the next branch in a sequence of changes, you'll want to merge trunk into that branch before continuing08:31
rogoh yes, once you've merged, you need to commit the merge08:31
TheMueok, sound reasonable08:32
TheMuethx for your help, will write it down now08:34
mplTheMue: jsyk the bzr online help pages + the tips on launchpad are pretty complete already.09:09
mplhi all09:09
TheMuempl: hi and yep, they are looking good.09:15
TheMuempl: justed wanted to know how we doing branching and merging here. had different policies in other companies.09:16
mplTheMue: ok. for now I've just followed gustavo's blog post about lbox, it was enough to get started.09:23
koolhead11hi all09:48
niemeyerHello all.. how's that jujuer life coming?11:00
jelmerit's.. charming11:03
niemeyer:-)11:07
rogniemeyer: mornin'11:10
niemeyerrog: yo11:10
niemeyerrog: How're things going there?11:10
rogniemeyer: not bad. distracted by watching that devops video this morning. lots of i have no idea about :-)11:11
rogs/lots of/lots of stuff11:11
niemeyerrog: It was pretty interesting indeed11:11
_mup_Bug #904201 was filed: need supporting code to model machine constraints <juju:In Progress by fwereade> < https://launchpad.net/bugs/904201 >11:12
niemeyerrog: After about the middle it got a bit boring, with the guy going over the history of a lot of people without much context for how it made any sense to bring these up11:12
TheMue..ooOO( Reminder: Look that video, too. )11:12
niemeyerrog: But otherwise really good11:12
rogyeah11:12
TheMueI'll participating a DevOps talk at the OOP too. Looking forward.11:13
TheMueniemeyer: Getting a better understanding of the existing state code. There's nothing yet like the state.State we yesterday talked about?11:16
niemeyerTheMue: You can see state.State a _bit_ like the sum of all the StateManager classes11:18
niemeyerTheMue: We should clean these interfaces up while joining, but that's the direction at least11:19
TheMueniemeyer: Understand, ok11:19
_mup_juju/trunk r432 committed by kapil.thangavelu@canonical.com12:00
_mup_[merge] robust-zk-connect,sshclient-refactor juju commands will now12:00
_mup_wait for juju to be running post bootstrap, so using juju commands immediately12:00
_mup_after bootstrap is viable. [a=jimbaker,hazmat][r=fwereade,jimbaker,hazmat]12:00
_mup_[f=849071]12:00
rogniemeyer: https://codereview.appspot.com/5444043/13:00
rogniemeyer: hopefully i've remembered everything13:00
niemeyerrog: Thanks!13:02
niemeyerrog: Before submitting cloudinit, would you mind to do a quick godoc test?13:48
niemeyerrog: I suspect that SetOutput will format improperly13:49
niemeyerrog: The documentation, that is13:49
rogniemeyer: i'll have a look13:49
niemeyerrog: Also, it'd be good to clarify AddRunCommand with smoser13:50
niemeyerrog: It's unclear (the "first?", and also which shell script)13:51
roggokpgdoc FTW: http://gopkgdoc.appspot.com/pkg/launchpad.net/~rogpeppe/juju/go-cloudinit/cloudinit13:51
niemeyerrog: Wow :-)13:51
niemeyerThis is awesome13:51
rogain't it just?13:51
rogniemeyer: yup, you're right about SetOutput13:52
niemeyerOk, I'll add the comments there13:52
=== sanderj is now known as Sander^work
smoserlink?13:54
smoserah. runcmd are only executed on first boot of an instance.13:55
rogsmoser: and bootcmd?13:55
smoseri have to check.13:56
smoseryou're adding them to cloudconfig, right?13:56
smoseras opposed to a multipart part13:57
rogsmoser: yup13:57
rog(erm, actually i don't know what you mean by "multipart part" there...)13:57
niemeyerrog: Sent another round13:58
niemeyersmoser: Yeah, cloud-config13:58
niemeyerrog: cloud-init actually supports multiple kinds of input13:58
smoserrog, cloud-inti can take multipart mime input. and one of the types is "boothook".13:58
smoserbootcmd runs every boot.13:59
niemeyersmoser: What's boothook?13:59
smoserwhich is actually not what was originally intended.13:59
niemeyerrog: ^ info will be useful for the review13:59
rogsmoser: ah, so the doc in that cloud-init.txt is misleading13:59
niemeyerrog: How so?14:00
smoserit should follow "Cloud Boothook" at https://help.ubuntu.com/community/CloudInit14:00
rogsmoser: it implies that the only difference between runcmd and bootcmd is the stage in the boot process that the commands get executed14:00
smoserbut right now, it doesn't even put the INSTANCE_ID in environment.14:00
smoseri will change it to have that in environment.14:00
smoserrog, i'll update that documentation also.14:01
smoserrog, that link there also hopefully describes multipart, but its probably information only for you. i think your approach with cloud-config is fine14:02
rogsmoser: it would be useful if you could take a brief look at the other comments in the docs linked above and let me know if they look right.14:02
rogsmoser: (if you have a moment, of course!)14:05
smoserSetDisableRoot: disables ssh login to the root account via the ssh authorized key found in metadata14:07
smoserrog, looks reasonable.14:09
rogsmoser: great, thanks a lot14:09
rogsmoser: when you say "the ssh authorized key found in metadata", do you mean one of the ssh keys specified with ssh_authorized_keys ?14:12
rogsmoser: or is there different key that this refers to?14:12
smoserdifferent.14:13
rogsmoser: which metadata is the key found in?14:14
rogsmoser: (i'd like to document it if i can)14:15
smoseronly the metadata source's [public-keys are put into both user and root14:15
smoserie, in ec2, the ec2 metadata service has a 'public-keys' entry (that is populated when you launch an instance with '--key mykey')14:15
rogah, the EC2 metadata!14:16
rogso i'd be correct if i said this:14:16
rog// SetDisableRoot sets whether ssh login is disabled to the root account14:16
rog// via the ssh authorized key found in the instance's EC2 metadata.14:16
rog// It is true by default.14:16
rog?14:16
rogsmoser: ^14:18
smoserthat is good. yeah.14:18
roggreat, thanks14:18
smoserbut it isn't necessarily EC2 metadata specific.14:18
roghmm14:19
smoseras there are multiple DataSources, EC2 is one of them.14:19
smoserthe others are "nocloud" (directory, and there is OVF).14:19
smoserwhich can also provide that stuff14:19
rogsmoser: what does SetDisableEC2Metadata do on non-EC2 cloud providers?14:20
rogsmoser: (and is that referring to the same metadata?)14:20
rogsmoser: does this make sense to you:?14:23
rog// SetDisableRoot sets whether ssh login is disabled to the root account14:23
rog// via the ssh authorized key associated with the instance.14:23
rog// It is true by default.14:23
rogmaybe "instance metadata" would be better there14:24
rogniemeyer: is there a way of running lbox propose that doesn't edit the description?14:30
niemeyerrog: Not at the moment.. feel free to save the text unchanged, though :-)14:30
niemeyerrog: I can add a flag if that bothers you14:30
rogniemeyer: yeah, i do. (well, i add a blank line because of my slightly strange editor set up)14:31
rogniemeyer: but it would be nice to be able to upload changes only14:31
rogniemeyer: i usually only edit the description once at the beginning14:31
niemeyerrog: Note that it doesn't actually upload the description if you don't change it14:31
rogniemeyer: sure. it's just i'd like to take out one more interactive step.14:31
niemeyerrog: I personally find it useful since its a nice reminder to update an out-of-date description after the changes made14:32
niemeyerrog: But I can add a flag if you don't care14:32
rogniemeyer: i do care - but i always check on codereview anyway14:32
rogniemeyer: a flag would be great, please.14:32
niemeyerrog: Will do14:35
niemeyerrog: I see submit worked for you! :-)14:37
rogniemeyer: yup, yay!14:37
rogniemeyer: BTW what things are fixed by the first call to propose? can i, for instance, change the prereq later?14:38
rogniemeyer: or the bug number, etc14:38
niemeyerrog: Launchpad doesn't allow changing the prereq, so there's nothing we can do about it14:39
niemeyerrog: -bug always works14:39
niemeyerrog: It doesn't _change_ the bug, though14:39
niemeyerrog: It associates the given bug with the merge proposal (and blueprint, in case it was used)14:39
rogniemeyer: if you use -prep, is the bug created then? or later?14:40
niemeyerrog: Works in either case14:41
niemeyerrog: Sorry14:41
niemeyerrog: I misinterpreted your question14:41
niemeyerrog: The bug is created and associated whenever -bug is used14:41
niemeyerrog: Erm14:41
niemeyerrog: The bug is associated whenever -bug is used14:41
niemeyerrog: The bug is created and associated whenever -new-bug is used14:41
rogniemeyer: -new-bug?14:41
rogcool14:41
niemeyerrog: So propose can be called repetitively at will14:42
niemeyerrog: and associate/create/update stuff as one goes14:42
rogniemeyer: if you do new-bug twice, will you get two bugs with the same text?14:43
niemeyerrog: You'll get as many bugs as you call -new-bug with, with whatever text was used14:45
rogniemeyer: cool, just checking14:45
niemeyerrog: This is probably a bad behavior, though.. we can do better14:45
rogniemeyer: presumably lbox propose doesn't remember the new-bug option14:46
niemeyerrog: We have metadata about it at the server side14:46
niemeyerrog: Since we associate with the merge proposal14:46
mchenetzGood morning14:53
SpamapSmchenetz: ahoy15:06
mchenetzSpamaps: Back at ya. :-)15:12
niemeyerI'm heading to lunch15:12
mchenetzIs there any diagram of the Juju solution? I am starting to integrate Virtualbox into Juju and i wanted to see if there was any good documentation on Juju dev15:23
TheMuemchenetz: You've already visited https://juju.ubuntu.com/docs/?15:35
TheMuemchenetz: Here you'll find many informations about juju.15:35
mchenetzTheMue: I was just wondering if there was a general flow diagram or something... But i will look through it15:36
TheMuemchenetz: And feel free to ask.15:39
mchenetzTheMue, thanks15:40
SpamapSmchenetz: at one point I had one that showed the architecture.. but I don't know if it will be all that helpful.15:41
mchenetzSpamaps: If it's still relevant then i would like to see it... If not, then don't worry about it.15:42
SpamapSmchenetz: for providers, you should only need to add a file to juju/providers and maybe config stuff in juju/environment/config.py15:42
mchenetzWhat about inside the virtualbox image? Any daemeons that i need to inject into the image on create? Or, do i pre-create images?15:43
SpamapSmchenetz: boot the cloud image, it will get things right15:43
m_3need to touch some other stuff throughout the code too (like unit/address.py)15:43
mchenetzThese are the things i need to know... I guess i will start and as i hit a roadblock, i will just ask questions. I will look at the local provider python code as an example of what i need to hook into15:44
SpamapSmchenetz: cloud-images.ubuntu.com15:45
SpamapSmchenetz: no, the local provider is going to confuse you a lot I think.15:45
SpamapSmchenetz: because the LXC stuff is "special" .. and isn't done as a provider, its done as a container technology to run inside VMs.15:45
mchenetzSpamaps: okay... Then i am not sure... I will just do my best15:46
SpamapSmchenetz: probably easier to copy the dummy provider actually. :)15:46
mchenetzSpamaps: Okay, i will do that... Thanks15:46
marcoceppiCould I use juju to deploy on Ubuntu Cloud Live?16:06
fwereademchenetz, just a note: I tried to make the docstrings for MachineProviderBase helpful, do take a look at those16:08
mchenetzfwereade: thanks, will do16:09
jimbakerhazmat, thanks for merging in the branches to enable juju commands immediately after bootstrap16:20
jimbaker(enable their effective, error free use)16:20
m_3whoohoo!16:24
jimbakerm_3, yes, it's a very nice change. glad that was able to make it in. also i'm feeling better today :)16:26
m_3jimbaker: good... missed you at the goat yesterday16:27
jimbakerunfortunately my wife is now sick with whatever i had earlier this week16:28
=== kapil_ is now known as hazmat
mpljimbaker: that's true love and dedication ;)16:37
jimbakermpl, indeed ;)16:38
drt24juju eureka isn't in the ppa yet?16:43
robbiewdrt24: I think it is...but SpamapS can probably answer best16:47
robbiewoneiric or precise?16:47
robbiew(ppa)16:47
drt24both16:47
drt24or I could be reading it wrong.16:48
drt24I suspect that I am wrong and was confused by the ppa not being linked from the juju project page but only form the juju hackers page.16:55
jcastrojuju logo sideways! http://www.stumbleupon.com/16:56
m_3yeah, I've seen a couple of pipes logos out there17:06
hazmatjimbaker, bcsaller, fwereade standup?17:11
jimbakerhazmat, sure17:11
fwereadehazmat, sounds good17:11
TheMueAargh, layer 8 error detected. Using the right command to do something is helpful. *sigh*17:30
TheMuerog: Why do we have an own log package instead using the Go log package?17:35
rogTheMue: i think it's so that we have a central place to set up logging (it's not possible to set up the normal log package so it prints to anything other than stderr, i think17:36
rog)17:36
TheMuerog: It can, log.SetOutput(w io.Writer)17:36
rogTheMue: also, we want to layer it on top of gocheck, but you can only layer log onto io.Writer17:37
rogTheMue: oh yes17:37
TheMuerog: The package is not yet optimal but quite flexible.17:37
rogTheMue: but the latter point remains17:37
TheMuerog: How about letting gocheck implement the Writer interface?17:38
rogTheMue: the writer interface is not really record-oriented17:38
TheMuerog: The Go log is standard and used by other packages too. How do we handle logging of used package that we don't develop on our own?17:39
TheMuerog: And an own writer impl could do intelligent stream parsing too.17:40
rogTheMue: i had this discussion with niemeyer before, and i lost. you'll have to convince him, not me.17:41
TheMueMaybe we should talk about it in Bud.17:41
niemeyerTheMue: Note that we're not replacing the log package in any way17:43
TheMuerog: Another topic. Currently we use Makefiles. You once talked about the migration to use goinstall. How is the status here?17:43
niemeyerTheMue: We're building on it17:43
niemeyerTheMue: rog had the same feeling originally, but it isn't the case17:43
rogTheMue: we use both Makefiles and goinstall17:43
TheMueniemeyer: OK, we will do so. Currently it's only fmt based.17:43
rogTheMue: currently you can't avoid Makefiles if you want to use gotest17:44
niemeyerTheMue: and I can certainly understand why both of you had that feeling.. the entry point of logging is a different function, and we now have a package named "log"17:44
niemeyerTheMue: Not really.. we don't format the actual log17:44
m_3marcoceppi: ping17:44
marcoceppim_3: pong17:44
niemeyerTheMue: What we do is trivial fmt.Sprintf17:44
TheMuerog: Yep, I hope this will be fixed soon, already before Go1.17:44
niemeyerTheMue, rog: => #juju-dev please17:44
rogi was just going to suggest that17:45
m_3marcoceppi: can you please change ownership of lp:charm/roundcube to ~charmers?17:45
marcoceppim_3: yes17:45
marcoceppiDid I progumate wrongly?17:45
m_3marcoceppi: dunno... needs to end up owned by charmers... perhaps it's a bug in charm promulgate17:46
m_3marcoceppi: it happens to me too.. have to go manually change ownership to charmers afterwards17:46
jcastromarcoceppi: it's god punishing us for creating a command called "promulgate"17:46
m_3rofl17:46
marcoceppim_3: haha, changed :)17:46
jcastroawesome, so roundcube is done?17:46
jcastroand phpmyadmin was mostly done right?17:47
m_3marcoceppi: gracias17:47
marcoceppijcastro: Yeah, I need to test the apt->upstream->apt->upstream to make sure there isn't anything ugly lurking17:47
marcoceppiOtherwise it was ready for review. So, if I get time today *crosses fingers*17:48
jcastromarcoceppi: nitpick on using "aptitude" in your function for installing from the archive btw.17:48
jcastroperhaps "repository" or something would make more sense? </bikeshed>17:48
marcoceppiAh, I was like NO WAY I USE APT I SWEAR17:48
marcoceppirepository would be better <317:48
m_3jcastro: roundcube is in... still have a couple of test scenarios, but they'll just be bugs against trunk if those fail17:52
* jcastro nods and will just give those a couple of days17:52
=== lamal666 is now known as lamalex
nijabaSpamapS: marcoceppi: could some of you have a look at lp:~nijaba/charm-tools/peer-scp and tell me how I can write a test function for it? alias scp and build a state test function?18:45
* marcoceppi recommends rsync <318:46
nijabamarcoceppi: already done with scp, easy to allow for the option18:46
SpamapSnijaba: or start your own sshd on a random port and actually do the scp. ;)19:27
SpamapSmarcoceppi: re ubuntu cloud live, yes that should work. I've been meaning to try juju against it for a while.19:28
SpamapSHmm, looks like there's a test that looks for a very specific error message which sometimes shows up differently...22:08
SpamapShttps://launchpadlibrarian.net/87459690/buildlog_ubuntu-oneiric-i386.juju_0.5%2Bbzr432-1juju2~oneiric1_FAILEDTOBUILD.txt.gz22:09
* hazmat peeks22:11
hazmathmm22:12
SpamapShazmat: when I run that test locally on precise it passes22:12
SpamapShazmat: so I'm wondering if its just something weird running in the buildd chroot22:12
hazmatSpamapS, there's no external interaction, the error is being setup by the test via a mock22:14
SpamapShazmat: so is this a case where something else is causing said error?22:14
hazmatSpamapS, no.. its the error reporting not matching the expected error text22:15
hazmatSpamapS, the error is coming back with some additional traceback information that the test doesn't like22:15
hazmatSpamapS, splitting the expected strings and asserting both are in the output would suffice to resolve and maintain the expectation22:16
* hazmat digs up a trivial patch22:16
hazmatit is odd that the error representation would change for buildd but not for local usage22:17
hazmathere's the trivial patch http://paste.ubuntu.com/770590/22:18
SpamapShazmat: I'm trying the test in a local sbuild chroot to see if it is different22:19
SpamapShazmat: fails in a clean chroot, so some python module is changing things on our local machines22:24
SpamapSor lxc maybe?22:25
hazmatSpamapS, interesting.. i'd suspect a change to the logging module or twisted22:25
SpamapS    test_watch_new_service_unit ... No handlers could be found for logger "juju.agents.machine"22:25
SpamapSI see that, but that is much earlier22:25
hazmatSpamapS, that's not particular indicative of anything in this context, except a test didn't care about log output, and didn't setup a default logger22:26
hazmatie. its harmless22:26
SpamapShazmat: in oneiric, none of the modules have changed...22:26
SpamapSwell shoot, WTF has been failing since 43122:27
hazmathmm22:28
hazmatoh..22:28
hazmatah22:28
hazmatand functional tests since 42922:28
SpamapShazmat: your trivial in 431 changed this text22:29
hazmatSpamapS, yup22:29
hazmati'll commit the trivial fix then22:29
SpamapSyeah22:29
SpamapSit looks good to me, +122:29
hazmatniemeyer, wtf functional tests are failing with.. Bootstrap aborted because file storage is not writable: Error Message: You have attempted to create more buckets than allowed22:29
hazmatfor the last few revs22:30
SpamapShazmat: wait, can you push it to a branch and I'll try it in a chroot?22:30
hazmatSpamapS, sure22:30
* SpamapS realizes its already been pastebinned..22:30
SpamapShazmat: if you haven't pushed it already, belay that.. I can do it here22:30
hazmatSpamapS, un momento new patch coming22:31
hazmatSpamapS, http://paste.ubuntu.com/770604/22:31
SpamapSyeah the 1st one didn't work ;)22:32
SpamapShazmat: confirmed, that fixes it22:33
SpamapShazmat: if you want to test in a chroot (highly recommended) its pretty easy.. install ubuntu-dev-tools, run 'mk-sbuild oneiric', and then 'schroot -c oneiric-amd64 -u root' to get a clean oneiric chroot to play in (that gets cleaned up on exit)22:34
SpamapSapt-get build-dep juju will pull in all the build deps22:34
SpamapS.. obviously ;)22:35
hazmatSpamapS, why not just lxc?22:36
hazmatSpamapS, thanks i'll try that out22:36
SpamapShazmat: because this is nearly identical to the buildd22:37
nijabaSpamapS: ok, will try, thanks22:38
nijabamarcoceppi: first version with rsync as an option: lp:~nijaba/charm-tools/peer-scp/22:38
nijabaSpamapS: (context: start my own scp)22:39
nijabasshd even22:39
_mup_juju/trunk r433 committed by kapil.thangavelu@canonical.com22:41
_mup_[trivial] fix provider unit test regression from r431, from overly exact error output check [r=clint-fewbar]22:41
niemeyerhazmat: I noticed that, and cleared them today22:42
niemeyerI'm heading out for the day.. cheers everybody!22:43
hazmatniemeyer, cheers22:43
* hazmat debates heading out to a nodejs meetup22:43
* SpamapS dist-upgrades his precise box with fingers firmly crossed22:51
hazmatsmoser, do you  know if cloud-init is installed on the rackspace cloud instances by default23:20
hazmatapparently not23:23
_mup_juju/ssh-known_hosts r439 committed by jim.baker@canonical.com23:37
_mup_Inject keys as part of cloud-init for ZK instances23:37
_mup_juju/ssh-known_hosts r440 committed by jim.baker@canonical.com23:43
_mup_Merged trunk & resolved conflicts23:43

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