/srv/irclogs.ubuntu.com/2012/07/04/#juju-dev.txt

davecheneyniemeyer: thanks for the review02:05
niemeyerdavecheney: np!02:05
davecheneyi have in the back of my mind the request to rename those packages02:05
davecheneyworker/agent/etc sound like good solutions, but I'd liek to give it a little more thought02:06
davecheneymaybe go for a walk and a sit before proposing anything02:06
niemeyerdavecheney: "worker" seems the best option so far02:11
niemeyerdavecheney: We already use agent nowadays with a different meaning02:12
davecheneyniemeyer: yeah, all the good options are taken02:12
davecheneyniemeyer: lbox has just started to panic on me02:12
davecheneypls hold for the paste02:12
davecheneyhttp://paste.ubuntu.com/1074143/02:13
davecheneyis this related to the issue you raised in the mailing list ?02:13
niemeyerdavecheney: Can you please update it?02:15
niemeyerdavecheney: It is related indeed02:15
niemeyerdavecheney: I've backported it from tip to stable for now, though, so we can continue moving forward while Brad fixes it02:15
davecheneyniemeyer: will do02:19
niemeyerAlright, bed time here02:25
fwereade_davecheney, since you have been doing Provisioner lately, I was wondering whether you had wisdom to impart re handling of environ configs06:57
davecheneyfwereade_: possibly, what are you trying to do ?06:57
fwereade_davecheney, because I'm getting very uncomfortable with the usage of naked ConfigNodes06:58
fwereade_davecheney, I'm not *quite* sure yet what I'm aiming for -- I'm working on getting Initialize to set up the environment node07:00
fwereade_davecheney, and it seems to me that Initialize alone should be responsible for "name" and "type", which should otherwise be unsettable07:01
davecheneyfwereade_: i see your concern07:03
davecheneyfor the moment we've solved it via contract, by saying the environs should refuse to update those keys07:04
fwereade_davecheney, yeah, I just can't really articulate it further in a useful way07:04
davecheneyonce set07:04
davecheneyfrom my point of view, i'm happy with ConfigNode providing a very simple interface07:05
davecheneybut, i'm not the architect of this project :)07:05
fwereade_davecheney, ah, sorry, totally missed your important point -- what is it that enforces those non-changes?07:07
davecheneya loose agreement inside the environ itself07:08
davecheneybacked entirely by a comment07:08
fwereade_davecheney, ok, gotcha07:08
davecheneyenvirons/ec2/ec2.go#SetConfig07:09
fwereade_davecheney, the trouble is that EnvironConfig is acessible to any numpty with a State ;)07:09
davecheneyi would be less concerned with people changeing the name of the environ than pinching the secrets which are stored in the same key07:09
fwereade_davecheney, sure, that too ;p07:09
davecheneyfwereade_: are you protecting against a back actor, or a well meaning, but misguided mistake ?07:13
fwereade_davecheney, well-meaning mistakes are my primary concern really07:13
fwereade_davecheney, I am just generally concerned that which-environ-to-use is a subtler problem than it may at first appear07:14
fwereade_davecheney, this is mainly on the client side07:14
davecheneyfwereade_: i concur07:14
davecheneyfwereade_: but I have a plan to un fuck it a bit07:14
fwereade_davecheney, I would like a clean way to express the stuff we need to do on first access to an env07:15
davecheneyi'm going to figure out, in cloudinit, what the real internal IP of machine/0 is, so we can write it into the state then and there07:15
davecheneyfwereade_: on a related note, how does jujutest come up with the dnsname for the first machine as i-3.example.com ?07:16
fwereade_davecheney, er, not sure I'm afraid07:16
fwereade_davecheney, continuing above I feel that it should be obvious and easy to use a juju.Conn in such a way that:07:16
fwereade_davecheney, on bootstrap, we use the environments.yaml config exclusively07:17
fwereade_davecheney, on subsequent operations, we push the missing keys from environments.yaml into state, and subsequently use only the config from state07:18
davecheneyfwereade_: gotta fly -- tonight is my night to help out at the bowls club07:18
fwereade_davecheney, np, have fun, take care :)07:18
davecheneycatch you on the other side07:18
fwereade_heya TheMue08:27
TheMuefwereade_: Hi08:32
TheMuefwereade_: Successfully get your branch in? ;)08:34
fwereade_TheMue, yeah, thanks :)08:41
fwereade_TheMue, hope the merge doesn't hurt too much :)08:41
TheMuefwereade_: So far my new code is totally outside, it only uses state. So it should be no problem when merging it into my branch.08:42
jamespagemorning juju dev's09:55
jamespageis anyone able to help me diagnose why one of the charms in launchpad is not accessible in the charm store?09:55
james_wjamespage, you know about http://jujucharms.com/tools/store-missing ?10:01
jamespagejames_w, no I did not - thanks10:01
james_wbut unless you're asking about shelr.tv that's probably not going to be very useful10:01
jamespagejames_w, no - my query is with reference to the 'ubuntu' charm10:02
james_wah10:02
james_windeed, not very useful10:02
james_wI've no more ideas, sorry, I'll return you to waiting for a dev10:03
niemeyerHey there!10:09
TheMueHeya niemeyer10:26
fwereade_niemeyer, heyhey10:37
james_whi niemeyer10:54
james_wjamespage, has a question about why ubuntu isn't in the charm store: http://jujucharms.com/tools/store-missing10:55
niemeyerjames_w: In a meeting, will be with you on a sec11:06
Aramhey all.11:33
niemeyerAram: Heya11:33
niemeyerjames_w: Okay, so how can I help?11:51
james_w<jamespage> is anyone able to help me diagnose why one of the charms in launchpad is not accessible in the charm store?11:51
james_w<jamespage> james_w, no - my query is with reference to the 'ubuntu' charm11:51
niemeyerjames_w: Which branch is that?11:53
james_wlp:charms/ubuntu11:54
niemeyerjames_w: We've debugged this problem before, actually12:04
niemeyerjames_w: Clint asked me about it back in May12:04
niemeyerjames_w: This was the issue: https://pastebin.canonical.com/66332/12:04
james_whah12:04
james_wniemeyer, where did you find that output?12:05
niemeyerjames_w: From Tom12:05
james_wit would be great to have it on http://jujucharms.com/tools/store-missing12:05
niemeyerjames_w: This is supposed to be integrated in the charm-store proper12:05
niemeyerjames_w: In the API12:05
james_wniemeyer, I suspect that's a bug in the bzr freshness check for package branches12:05
niemeyerjames_w: So anyone can query it and put wherever12:05
james_wniemeyer, aside from fixing the bug you can disable that check12:05
niemeyerjames_w: How do you mean?12:06
james_wniemeyer, I assume it's the MISSING line that is throwing it off?12:07
niemeyerjames_w: It's the fact it's outputting an error, yeah12:08
james_wniemeyer, so anything on stderr causes the import to bail?12:08
niemeyerjames_w: No, but this certainly does:12:09
niemeyer% bzr checkout --lightweight lp:~charmers/charms/precise/ubuntu/trunk12:09
niemeyerMost recent Ubuntu version: MISSING12:09
niemeyerMost recent Ubuntu version: MISSING12:09
niemeyerMost recent Ubuntu version: MISSING12:09
niemeyerjames_w: Well, or maybe I'm lying12:09
niemeyerjames_w: Let me check reality12:09
niemeyerjames_w: The command is really failing12:11
james_wnon-zero exit code?12:11
niemeyerjames_w: No, I'm lying again, sorry.. I did something silly that resulted in echo $? == 112:12
niemeyer[niemeyer@gopher ~/trunk]% bzr revision-info12:12
niemeyerMost recent Ubuntu version: MISSING12:12
niemeyerMost recent Ubuntu version: MISSING12:12
niemeyer2 clint@ubuntu.com-20120522222745-k46xvcynebiva0xd12:12
niemeyer[niemeyer@gopher ~/trunk]% echo $?12:12
niemeyer012:12
* niemeyer checks implementation12:12
james_wok12:12
niemeyerjames_w: It's getting the combined output12:13
niemeyerjames_w: I'll fix that and invite Tom to redeploy12:13
james_wniemeyer, fix it to do what?12:14
niemeyerjames_w: To get stdout12:14
james_wok12:14
james_wwe can also make the message go away12:14
niemeyerjames_w: It's slightly worse for debugging12:14
niemeyerjames_w: But I'd rather have it working instead ;-)12:14
niemeyerjames_w: That's certainly a better option overall for bzr12:14
niemeyerjames_w: Having every command spitting out an arbitrary number of irrelevant messages sounds bad12:15
james_wright, bzr shouldn't activate the check for that url12:15
james_wbut we can also have the charm importer tell bzr to just never even bother thinking of doing the check12:15
niemeyerjames_w: How do we do that?12:15
james_wI'm looking12:15
niemeyerjames_w: Cheers12:15
james_wbazaar.conf: launchpad.packaging_verbosity = off12:19
james_wthere may be a way to set it on the command-line, but I don't think so12:20
james_wand you can escalate https://bugs.launchpad.net/bzr/+bug/1020935 if you like12:27
james_wah, https://bugs.launchpad.net/bzr/+bug/888615/comments/412:30
james_wthat's presumably better than the config file12:30
niemeyerjames_w: I'll probably just pick stdout12:34
james_wniemeyer, that harms debugging?12:34
niemeyerand  let it complain12:34
james_wcan you capture stderr and include it if the command fails or something so that you can have both?12:34
niemeyerjames_w: It could, because interleaving stderr/stdout means errors are in context, but in practice this seems to have made more harm than good, so I'm happy to adapt to reality12:35
james_wyeah12:35
james_wI've always found doing both to be tricky, I wish more libraries allowed for getting at both individually and an interleaved stream12:35
niemeyerjames_w: Yeah, it's seldomly done because one can't actually do it perfectly unless it's done at the kernel level due to buffering12:42
niemeyerjames_w: The correct way to interleave is to use a single fd, and then the individual streams are gone12:43
james_wniemeyer, yeah, agreed it's not easy12:57
james_wI still want it though :-)12:57
niemeyerjames_w: +1 :)13:09
niemeyerLunch time16:01
niemeyerQuiet day20:22

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