=== txwikinger2 is now known as txwikinger | ||
imbrandon | http://www.brandonholtsclaw.com/blog/2012/how-not-to-fail-at-the-cloud/ | 00:56 |
---|---|---|
ajmitch | imbrandon: you're not allowed to just leave it hanging like that :) | 01:04 |
imbrandon | hahaha | 01:10 |
imbrandon | dude that alone took like 2 days to write | 01:11 |
imbrandon | heh | 01:11 |
=== izdubar is now known as MarkDude | ||
imbrandon | wow, my blogs starting to get a little traffic too, went to go check the numbers for last month ... 17,391 pageviews | 01:20 |
imbrandon | ( that cant all be me hitting refresh hahahaha ) | 01:20 |
jk- | hi all | 03:49 |
jk- | I'm messing around with juju using a local environment, is there any way I can specify which apt mirror to use? | 03:52 |
lifeless | no | 03:59 |
lifeless | the local provider brings up an apt-cacher-ng automatically | 03:59 |
lifeless | and there is AFAIK no knob to tweak this. | 03:59 |
lifeless | there is an experimental patch to let you set an explicit proxy, but it only affects the first node spawned, last I checked. | 04:00 |
lifeless | hazmat would know more, but hazmat should be sleeping right now ;) | 04:00 |
* hazmat should be sleeping :-) | 04:00 | |
jk- | lifeless: so i see smoser has done this: https://bugs.launchpad.net/cloud-init/+bug/897688 | 04:00 |
_mup_ | Bug #897688: cloud-init should support apt-proxy and hostname based mirror selection <cloud-init:Fix Released by smoser> < https://launchpad.net/bugs/897688 > | 04:00 |
jk- | but I have no idea where cloud-init fits in here | 04:01 |
hazmat | jk-, cloud-init is how juju initializes machines, but it doesn't directly expose all of cloud-inits config to the user | 04:01 |
hazmat | at the moment its not supported re mirror selection | 04:01 |
jk- | hazmat: ok, cool | 04:02 |
jk- | hm, what *is* cloud-init? I don't have any executable with that name. | 04:06 |
lifeless | it runs in cloud images only | 04:06 |
jk- | oh, right. | 04:06 |
lifeless | the cloud provider invokes it automatically right after the image comes up | 04:06 |
jk- | gotchya, thanks. | 04:07 |
lifeless | in principle, depending on the cloud it either calls back to get data from an instance metadata API, or has data injected into it via the filesystem | 04:07 |
lifeless | I think pragmatically they all use the same instance metadata API call though. | 04:07 |
lifeless | as doing heterogeneous file system injection is just messy | 04:07 |
lifeless | its responsible for things like setting the ubuntu users ssh key etc etc | 04:08 |
=== bcsaller1 is now known as bcsaller | ||
=== cereal_b1rs is now known as cereal_bars | ||
SpamapS | jimbaker: sorry I was afk way longer than I expected to be. Yes trunk has been open since 0.5.1 released | 04:33 |
SpamapS | imbrandon: the way mysql sets up replication is a bit naive, and not suitable for use on an insecure network (need to transfer the db snapshot via https) but the general idea is, I think, sound. | 04:34 |
=== almaisan-away is now known as al-maisan | ||
imbrandon | could someone fix the charmstore ( specificly charmload ) or at least be bothered to confirm the bug report that is reporduceable every single time ( even in the official store as we're missing charms ) | 10:51 |
imbrandon | its been reported over 3 weeks now and not even a "ok we'll get to it ... once someone else learns how to program in go" or anything ... kinda anoying the store has been broken all this time | 10:52 |
* imbrandon goes to piss-off time doing something else ... | 10:53 | |
=== al-maisan is now known as almaisan-away | ||
wrtp | imbrandon: which bug are you talking about? | 11:02 |
imbrandon | https://bugs.launchpad.net/juju-core/+bug/1015700 | 11:03 |
wrtp | imbrandon: how are you running it? | 11:20 |
imbrandon | there is only one way iirc "charmload 127.0.0.1" | 11:21 |
wrtp | imbrandon: the version of charmload i have here expects a config path as its first argument | 11:24 |
imbrandon | hrm ... | 11:24 |
imbrandon | i am using charmstore from ppa:juju/pkgs | 11:25 |
imbrandon | is there another ? | 11:25 |
wrtp | imbrandon: i'm just looking at it. there's a config file in the package dir which i'll try using | 11:25 |
imbrandon | kk | 11:26 |
imbrandon | root@server-1339205906-az-1-region-a-geo-1:~# charmload | 11:26 |
imbrandon | usage: charmload <mongo addr> | 11:26 |
imbrandon | wrtp: i can give you ssh to that box if it helps | 11:26 |
wrtp | imbrandon: i'm interested to see if i can reproduce your behaviour here. just need to work out how to run mongodb :-) | 11:27 |
imbrandon | heheh, kk , just run "mongod &" is simplest | 11:27 |
wrtp | imbrandon: is 60017 the default port number? | 11:28 |
imbrandon | yup | 11:28 |
imbrandon | err | 11:28 |
imbrandon | 27017 | 11:28 |
imbrandon | lemme look | 11:28 |
wrtp | imbrandon: ah, looks like i need to give it a data directory | 11:29 |
imbrandon | Wed Jul 11 11:29:42 [initandlisten] MongoDB starting : pid=7948 port=27017 dbpath=/data/db/ 64-bit host=server-1339205906-az-1-region-a-geo-1 | 11:30 |
wrtp | imbrandon: ok, seems to be running ok now. | 11:30 |
wrtp | imbrandon: i'll see if i see your issue | 11:31 |
imbrandon | cool kk, yea after that , the first charmload will finish | 11:31 |
imbrandon | and every attemot after will fail | 11:31 |
imbrandon | at that same place | 11:31 |
imbrandon | or should | 11:31 |
imbrandon | i has on 2 diff boxes here | 11:31 |
imbrandon | reliably | 11:31 |
imbrandon | btw the first charmload will take a good little while, so make some tea or get lunch | 11:32 |
imbrandon | hehe | 11:32 |
imbrandon | wrtp: btw thanks for poking at this :) | 11:33 |
imbrandon | it has been very very anoying | 11:33 |
wrtp | imbrandon: by "a good little while" do you mean an hour or 8 hours? | 11:33 |
imbrandon | like 2 | 11:33 |
imbrandon | just under 2 iirc | 11:34 |
wrtp | imbrandon: by "every attempt after", do you mean when you run charmload again? | 11:34 |
imbrandon | it downloading every charm and putting them into gridfs | 11:34 |
imbrandon | and yup | 11:34 |
imbrandon | when you rerun it its supose to update the charms with new ones if there are any | 11:34 |
imbrandon | when you re-run it , it only takes like 2 minutes | 11:35 |
imbrandon | only this first run takes a long time | 11:35 |
imbrandon | its using lp api to getBranchTips iirc | 11:36 |
imbrandon | and checks for new ones against that json return from what i understand | 11:36 |
wrtp | imbrandon: feels to me like it could be doing more stuff concurrently. but maybe it *is* maxing out my network. | 11:37 |
imbrandon | heh, no i agree | 11:37 |
imbrandon | i think its all serial | 11:37 |
imbrandon | not 100% certain tho | 11:38 |
imbrandon | when i run it , i run it on a HPCloud server with a fat pipe | 11:38 |
imbrandon | so i dont hink its network that makes it slow | 11:39 |
imbrandon | i think it just processes one at a time, for all 160ish of them | 11:39 |
imbrandon | wrtp: brb gotta run for like 1 hour, but i'll be round after that all day, should u need something else from me | 11:41 |
wrtp | imbrandon: k | 11:41 |
=== almaisan-away is now known as al-maisan | ||
=== al-maisan is now known as almaisan-away | ||
=== almaisan-away is now known as al-maisan | ||
* imbrandon returns | 12:23 | |
wrtp | imbrandon: ok, i've seen the bug. | 12:40 |
wrtp | imbrandon: i didn't need to run charmload twice | 12:40 |
wrtp | imbrandon: i will have a look into it | 12:40 |
wrtp | imbrandon: looks like it's something to do with the terracotta charm in particular | 12:41 |
imbrandon | wrtp: rockin | 12:42 |
imbrandon | thanks a ton | 12:42 |
wrtp | imbrandon: np. BTW i've now got a 15 line standalone program that reproduces the bug: http://paste.ubuntu.com/1086121/ | 12:46 |
imbrandon | oh cool | 12:47 |
imbrandon | that might help me learn a bit of go :) | 12:47 |
wrtp | imbrandon: it's not a hard language | 12:47 |
imbrandon | yea i've been poking at it the last 2 days or so | 12:48 |
imbrandon | just picking up the ultra basics so far, but most new langugues are just learning the packages | 12:48 |
imbrandon | synatax is syntax | 12:48 |
imbrandon | :) | 12:48 |
wrtp | imbrandon: yeah. actually the idioms are a bit different too - the lack of subtyping and the way packages are structured makes a significant difference | 12:49 |
wrtp | imbrandon: but, yeah, as always, the packages are the main thing | 12:49 |
wrtp | s/packages/standard packages/ | 12:49 |
imbrandon | hehe yea | 12:52 |
wrtp | imbrandon: ok, i've got a fix. will add a test and propose it soon. | 12:59 |
imbrandon | wrtp: wow, urock | 13:01 |
imbrandon | ty | 13:01 |
wrtp | imbrandon: np | 13:03 |
jml | juju deploy ubuntu | 13:27 |
jml | 2012-07-11 14:27:31,259 INFO Searching for charm cs:precise/ubuntu in charm store | 13:27 |
jml | 2012-07-11 14:27:31,942 ERROR Error processing 'cs:precise/ubuntu': entry not found | 13:27 |
jml | http://jujucharms.com/charms/precise/ubuntu | 13:27 |
jml | what am I doing wrong? | 13:28 |
imbrandon | jml: nothing | 13:28 |
imbrandon | its broken, you need to grab a local copy of the charm, that is part of the bug that wrtp just got a fix for | 13:29 |
jml | imbrandon: ok, thanks. | 13:29 |
imbrandon | in the charmstore and will be fixed $sometime but still needs code review etc | 13:29 |
wrtp | imbrandon, jml: proposal to fix the bug: https://codereview.appspot.com/6344105 | 13:51 |
imbrandon | wrtp: looks like already taped it too , i def owe ya a beer in copenhagen :) | 13:56 |
* wrtp is always willing to accept a beer :-) are you in copenhagen? | 13:58 | |
imbrandon | nope, but thats likely the next time i'll get to meetup with ya | 14:04 |
imbrandon | 12.10 uds | 14:04 |
wrtp | imbrandon: ok, the fix is in. i guess it'll take a while to propagate to the ppa. i haven't actually tested charmload again yet :-) | 14:04 |
imbrandon | np, i'm actually compiling it local how to try | 14:04 |
wrtp | imbrandon: cool, i didn't know the location had been confirmed | 14:05 |
imbrandon | well trying to if i can find glang-tip | 14:05 |
imbrandon | wrtp: ahh i'm not 100% for sure, thats what the consensus was last i heard tho | 14:05 |
wrtp | imbrandon: if you've got golang installed, you should be able to do: go get launchpad.net/juju-core/store/charmload | 14:06 |
imbrandon | ahh cool,i was trying to rebuild the package | 14:06 |
imbrandon | yup i do | 14:06 |
wrtp | imbrandon: or possibly: go get -u ... if you've already installed the juju stuff under Go. | 14:06 |
wrtp | imbrandon: (get -u goes to the web site even if there's already a local version) | 14:07 |
imbrandon | oh now thats cool | 14:08 |
* imbrandon forgives some of golangs verbosness :) | 14:08 | |
imbrandon | brb grabbing a soda, but i assume its compiling now | 14:10 |
imbrandon | brb | 14:10 |
=== zyga is now known as zyga-food | ||
imbrandon | wrtp: where did it put the binary | 14:14 |
imbrandon | heh | 14:14 |
SpamapS | "where'd WHO go!?" | 14:15 |
wrtp | imbrandon: if you've got $GOPATH set then it's in $GOPATH/bin | 14:16 |
wrtp | imbrandon: otherwise it's in $GOROOT/bin | 14:16 |
imbrandon | k | 14:16 |
wrtp | imbrandon: unless you've got $GOBIN set | 14:16 |
imbrandon | no likely | 14:16 |
imbrandon | not* | 14:16 |
=== salgado is now known as salgado-brb | ||
wrtp | imbrandon: what does go list -f '{{.Dir}}' launchpad.net/juju-core/store/charmload | 14:17 |
wrtp | print? | 14:17 |
imbrandon | root@server-1339205906-az-1-region-a-geo-1:~# go list -f '{{.Dir}}' launchpad.net/juju-core/store/charmload | 14:18 |
imbrandon | /usr/lib/go/src/pkg/launchpad.net/juju-core/store/charmload | 14:18 |
imbrandon | ahh ok | 14:18 |
imbrandon | yea i have no $GO* env set | 14:18 |
imbrandon | heh | 14:18 |
imbrandon | heya SpamapS :) | 14:18 |
imbrandon | wrtp: ok thats a dir | 14:20 |
imbrandon | with the src | 14:20 |
imbrandon | ahh got it | 14:21 |
wrtp | imbrandon: yeah. if you want stuff to be installed in your home, then set GOPATH to e.g. $HOME/src/go | 14:21 |
* imbrandon headdesks | 14:21 | |
wrtp | imbrandon: in your case, you can run /usr/lib/go/bin/charmload | 14:22 |
wrtp | imbrandon: i think | 14:22 |
imbrandon | ahh cool , yea i should set all that up today , zomg all my ram will be taken by env vars, you should see my "# env" printout | 14:22 |
imbrandon | heh | 14:22 |
wrtp | :-) | 14:22 |
imbrandon | yup, now i got to find that config | 14:22 |
wrtp | imbrandon: there's one in the charmload directory | 14:22 |
imbrandon | ahh rockin | 14:23 |
imbrandon | ok loaded up, looks good so far | 14:24 |
imbrandon | no idea why it dosent use the default 27017 port | 14:24 |
imbrandon | silly store | 14:24 |
=== salgado-brb is now known as salgado | ||
imbrandon | wrtp: woot works perfect | 14:25 |
wrtp | imbrandon: cool. | 14:25 |
wrtp | imbrandon: i've been chugging charmload along too, and it hasn't encountered any further problems... | 14:25 |
* wrtp checks | 14:25 | |
imbrandon | next question is SpamapS once that lands in the PPA how do get store.juju.ubuntu.com updated ? or whatever the url is | 14:26 |
wrtp | imbrandon: nope, still working | 14:26 |
imbrandon | sweet | 14:26 |
wrtp | imbrandon: no idea, sorry :-) | 14:26 |
imbrandon | no worries, liky its automatic OR justa simple IS ticket | 14:27 |
imbrandon | SpamapS: woot, looks like most if not all the ones on the MIA list are now loading | 14:29 |
imbrandon | i've seen a few come by already | 14:29 |
SpamapS | imbrandon: you made some fixes? | 14:29 |
imbrandon | not me, wrtp did | 14:29 |
SpamapS | ahh | 14:29 |
imbrandon | i just helped debug | 14:29 |
SpamapS | It needs to get merged into juju and then we have to get our IS people to deploy the new version | 14:30 |
SpamapS | wrtp: any chance you added HTTPS ? ;) | 14:30 |
imbrandon | yea its merged , already revied by gustavo | 14:30 |
imbrandon | reviewed | 14:30 |
SpamapS | ah ok we just have to bump IS then | 14:30 |
imbrandon | and should be in PPA soonish | 14:30 |
niemeyer | SpamapS: Btw, I apologize for being behind on the API to get errors | 14:30 |
wrtp | SpamapS: i just did the fix. no new features... | 14:30 |
niemeyer | SpamapS: I'll sort that out | 14:30 |
niemeyer | SpamapS: It's really me being lazy.. the errors are even in the database already | 14:31 |
imbrandon | oh speak of the devil 0/ | 14:31 |
imbrandon | SpamapS: but i did get a little peek into the go code world , so maybe that will nudge me to hunker down on it this week :) | 14:32 |
niemeyer | imbrandon: Oh, neat | 14:34 |
niemeyer | imbrandon: What's your take on it? | 14:34 |
imbrandon | niemeyer: much more verbose than i'm used to , but def something cool, i'm really looking forward into getting deep enough to play with some concurency | 14:35 |
niemeyer | imbrandon: Oh, interesting. Verbose in which sense? | 14:36 |
imbrandon | just than lang its self, i've been doing ruby,js,php far too long :) | 14:36 |
imbrandon | actually its seems alot like backwards js, but thats just a feeling, dont really know how to explain myself there | 14:37 |
imbrandon | not in a bad way tho :) | 14:37 |
=== zyga-food is now known as zyga | ||
imbrandon | as in the loops in logic seems reversed , much more like c | 14:37 |
niemeyer | imbrandon: Ah, yeah, one of the loop forms is close to C indeed | 14:39 |
=== al-maisan is now known as almaisan-away | ||
niemeyer | imbrandon: Anyway, happy to see you poking with that.. please ping if you need anything | 14:39 |
imbrandon | sure thing :) | 14:40 |
SpamapS | niemeyer: no worries. We're all behind on everything. If you could work on that thing to make the world turn slower so we get 25 hours a day that would help. ;) | 14:55 |
niemeyer | SpamapS: :-) | 14:57 |
=== zyga_ is now known as zyga | ||
jimbaker | SpamapS, doublechecking: is it ok to merge in branches into juju trunk at this time? | 15:51 |
SpamapS | jimbaker: lp:juju has been open since 0.5.1 released | 15:52 |
SpamapS | jimbaker: and there's no plan currently for honolulu's release | 15:53 |
jimbaker | SpamapS, ok | 15:53 |
SpamapS | jimbaker: still broken on natty and oneiric :( | 15:55 |
imbrandon | we care about natty and oneiric ? | 15:56 |
SpamapS | imbrandon: I don't know for sure. I think we probably should since AFAIK OMG is still on oneiric, isn't it? | 15:56 |
imbrandon | nah | 15:56 |
imbrandon | its on precise | 15:56 |
imbrandon | last major redo | 15:57 |
imbrandon | err redeploy | 15:57 |
SpamapS | I'd be happy to let go of natty.. but oneiric we still have an active charm series for | 15:57 |
imbrandon | yea i dont mind much either way. but just seems kinda odd as there isnt any uptodate charms for natty iirc | 15:58 |
SpamapS | natty is only about the client | 15:59 |
SpamapS | 0.5.1 works on oneiric.. | 16:00 |
SpamapS | and natty actually | 16:00 |
SpamapS | so we can just say those are the last supported releases on natty/oneiric | 16:00 |
imbrandon | but yea i moved it to precise a month or so ago when the last big redeploy in hopes there would be a stable php 5.4 i could toss on there at some point | 16:00 |
imbrandon | for precise | 16:01 |
SpamapS | imbrandon: there is.. | 16:01 |
imbrandon | but not moved to 5.4 yet, just was planning | 16:01 |
imbrandon | yea at the time there wanent tho | 16:01 |
SpamapS | https://launchpad.net/~ondrej/+archive/php5 | 16:01 |
imbrandon | that had no apc | 16:01 |
imbrandon | a month ago | 16:01 |
SpamapS | imbrandon: tho that may be somewhat experimental | 16:01 |
jimbaker | SpamapS, do you have the buildd log for natty/oneiric? | 16:01 |
imbrandon | yea apc segfaulted on that untill like 2 weesk ago | 16:01 |
SpamapS | jimbaker: https://launchpadlibrarian.net/109247690/buildlog_ubuntu-oneiric-i386.juju_0.5.1%2Bbzr555-0juju1~oneiric1_FAILEDTOBUILD.txt.gz | 16:01 |
SpamapS | jimbaker: https://launchpadlibrarian.net/109247508/buildlog_ubuntu-natty-i386.juju_0.5.1%2Bbzr555-0juju1~natty1_FAILEDTOBUILD.txt.gz | 16:02 |
SpamapS | imbrandon: you might consider a no-change rebuild of quantal's packages too | 16:02 |
imbrandon | yea thats exactly what i was planning once you told me you uploaded it | 16:02 |
marcoceppi | Is there any way to indicate a charm requires a subordinate? | 16:02 |
jimbaker | SpamapS, so the common failure is this one, juju.unit.tests.test_lifecycle.UnitLifecycleTest.test_remembers_relation_removes | 16:03 |
SpamapS | looks like we need to merge w/ Debian actually. hm | 16:03 |
imbrandon | heya marcoceppi 0/ | 16:03 |
jimbaker | ok, that's a useful place to start | 16:03 |
marcoceppi | o/ imbrandon et al | 16:03 |
imbrandon | marcoceppi: umm would requires: charmname scope: container | 16:03 |
imbrandon | not work ? | 16:03 |
marcoceppi | not sure | 16:04 |
SpamapS | jimbaker: install ubuntu-dev-tools, use 'mk-sbuild oneiric' to create a buildd-like chroot. Use 'schroot -c oneiric-amd64 -u root' to enter the chroot and you can install build-deps, try the test suite, etc. etc. | 16:04 |
imbrandon | i dont think its enforced but i think that would be the way | 16:04 |
marcoceppi | haven't tried, wasn't sure if there was a way to indicate that a "main charm" required a sub-ordinate | 16:04 |
jimbaker | it looks like the problem with natty is that the yaml format is slightly different (presumably libyaml difference) | 16:04 |
SpamapS | marcoceppi: ahoy! | 16:04 |
marcoceppi | or at least make that more obvious aside from descriptions | 16:04 |
imbrandon | right | 16:04 |
SpamapS | marcoceppi: there are no required subordinates. | 16:04 |
negronjl | 'morning all | 16:04 |
imbrandon | yea i'm not sure either, but that seems like it right off the top of my head | 16:05 |
marcoceppi | SpamapS: Okay, so if a charm requires a suboridnate you're doing it wrong? | 16:05 |
SpamapS | marcoceppi: part of the way it figures out which side is primary/sub is the provides (primary) and requires (subordinate) | 16:05 |
marcoceppi | SpamapS: ah, that makes a lot more sense | 16:06 |
SpamapS | marcoceppi: possibly, but subordinates are a little clunky for anything except their intended use case (container-aware monitoring/management).. can you provide more details? | 16:06 |
marcoceppi | Multi-site wordpress via subordinates | 16:06 |
imbrandon | SpamapS: so like requires: loggin interface: blah scope: container ? is not right | 16:06 |
SpamapS | marcoceppi: I'm starting to think we should think about "building" charms using my splice tool for inheritance. | 16:06 |
SpamapS | oh hm | 16:07 |
SpamapS | no thats different | 16:07 |
imbrandon | marcoceppi: ahh i ran into the same issue with nginx and sub sites | 16:07 |
jimbaker | SpamapS, oddly, i cannot run juju.unit.tests.test_lifecycle.UnitLifecycleTest.test_remembers_relation_removes by itself on precise | 16:07 |
SpamapS | imbrandon: right, I don't know what that would do, but probably not what you think. :) | 16:07 |
jimbaker | so that's a pretty good sign something is wrong with that test | 16:07 |
imbrandon | not found a good DRY solution | 16:07 |
SpamapS | jimbaker: very interesting | 16:08 |
SpamapS | imbrandon: the only (poor) DRY solution is to stuff everything in a package in a PPA | 16:08 |
marcoceppi | SpamapS: what I was thinking, if there's no subordinate then just roll-out with wordpress, but the problem is preserving that "one instance" when you start adding more subordintaes of wordpress sites | 16:08 |
marcoceppi | which leads me to believe I should be doing a wordpress and wordpress-mu charm | 16:08 |
SpamapS | imbrandon: and even then you still have to RY on the metadata | 16:08 |
imbrandon | yea | 16:08 |
jimbaker | SpamapS, when i tried the juju.lib.format tests, i was doing this on oneiric. i wasn't even thinking of natty! :) so i will revisit with natty, but the buildd log basically tells me what i need to know, there's a slight incompatibility there | 16:09 |
SpamapS | marcoceppi: another way to go is to just have the charm morph itself from single -> multi on attachment to the mu relation | 16:09 |
imbrandon | marcoceppi:oh yea, thats right its not like drupal where yoy can just drop a new site in the config dir | 16:09 |
imbrandon | SpamapS: no, wordpress its self | 16:09 |
marcoceppi | SpamapS: right, but then the problem is preserving that one first install. Then how do you update the themes and plugins for it, it's not in a charm repo anywhere | 16:09 |
SpamapS | marcoceppi: I have the same problem with ceph actually. Its hard to know what something is intended to be until after all the hooks (relations, et.all) have fired at least once | 16:09 |
marcoceppi | I think I'm going to skip multi-site for now | 16:10 |
marcoceppi | It was a cool idea, but it's really starting to cause logic circles for me | 16:10 |
SpamapS | jimbaker: if we need to just run a subset of tests on natty thats fine | 16:10 |
SpamapS | jimbaker: Ideally the test would detect the incompatibility and skip itself tho | 16:11 |
SpamapS | marcoceppi: probably a good idea | 16:11 |
marcoceppi | cool, I'll strip that out in to a new branch | 16:11 |
jimbaker | SpamapS, yeah, let's just fix the test | 16:12 |
jimbaker | or better yet fix the code | 16:12 |
jimbaker | i'm sure i can workaround this minor incompatibility | 16:12 |
SpamapS | jimbaker: the idea is not to spend too much time fixing server-only code for natty | 16:13 |
SpamapS | jimbaker: we only want natty users to be able to use juju as a client.. :) | 16:13 |
SpamapS | in lucid I don't even run the test suite | 16:14 |
SpamapS | the client "might" work ;) | 16:14 |
SpamapS | but juju is basically python 2.7 only | 16:14 |
jimbaker | SpamapS, this possibly can impact client-level code | 16:15 |
jimbaker | since they can observe the yaml formatting being used | 16:15 |
SpamapS | jimbaker: ok, let me be more clear. Priority == low | 16:16 |
jimbaker | SpamapS, but on the other hand it does seem unlikely since it only fails here, not in similar tests that actually ensure what the client sees | 16:17 |
jimbaker | SpamapS, so given that those tests are robust and cover this case at the client level, i think we can skip this test on natty | 16:17 |
jimbaker | in any event, i'm more concerned about the lifecycle test, since that seems to be broken across the board, but in a weird way | 16:18 |
jimbaker | most likely it's impacted by a data race | 16:19 |
=== salgado is now known as salgado-lunch | ||
SpamapS | jimbaker: thanks for looking | 16:23 |
jimbaker | SpamapS, np, sorry it took so long to coordinate on the specifics here | 16:23 |
imbrandon | wrtp: charmload completes 100% | 16:26 |
imbrandon | woot | 16:26 |
imbrandon | when did you say it would hit the ppa ( so i know when to bug SpamapS to bug IS ) heh | 16:27 |
wrtp | imbrandon: yeah, it completed for me too | 16:28 |
imbrandon | rockin | 16:28 |
wrtp | imbrandon: niemeyer would be a better person to ask about the ppa | 16:28 |
imbrandon | kk, but its in the trunk now so if ppa were to build it would go ? | 16:28 |
imbrandon | niemeyer: ^^ ? | 16:28 |
SpamapS | I suspect this recipe needs to be run: https://code.launchpad.net/~niemeyer/+recipe/charmstore | 16:28 |
SpamapS | Built on request | 16:29 |
SpamapS | niemeyer: ^^ | 16:29 |
imbrandon | ahh cool, please :) | 16:29 |
SpamapS | oh wtf google.. [tab] on results page should not take me to nav bar.. 1st result *please* | 16:31 |
imbrandon | heh | 16:32 |
imbrandon | SpamapS: i suspect IS will need more than a bump too, as before ( as in the current package ) runs with "charmload <mongo ip>" and the new one runs with "charmload <config path>" config = yaml with mongo ip:port | 16:33 |
SpamapS | imbrandon: *DOH* | 16:37 |
marcoceppi | What's charmload? | 16:49 |
=== salgado-lunch is now known as salgado | ||
imbrandon | marcoceppi: the charmstore | 16:57 |
imbrandon | well what loads the charms from LP into the charmstore | 16:57 |
niemeyer | SpamapS, imbrandon: Will do | 16:59 |
dpb___ | Can juju associate reserved ips to instances? | 17:25 |
SpamapS | dpb___: no it hasn't abstracted that yet | 17:26 |
SpamapS | dpb___: but you can use the API to do that | 17:26 |
SpamapS | dpb___: this does cause some issue if 'public-address' is used in the charms. but that is actually fairly rare | 17:27 |
dpb___ | SpamapS: oh? Is there a pointer for how to do that? | 17:27 |
SpamapS | dpb___: euca-associate-address (or ec2-associate-address if you prefer big slow tools ;) | 17:29 |
dpb___ | SpamapS: ooh, I see what you mean, ok | 17:37 |
=== fenris_ is now known as Guest10826 | ||
=== Guest10826 is now known as ejat | ||
jcastro | adam_g: http://askubuntu.com/questions/161731/using-juju-with-private-openstack-cloud-deployment | 17:47 |
jcastro | or anybody? | 17:47 |
adam_g | jcastro: answering.. i think the IP address issue should be resolved once he's attached a floating IP, but the ability to insert user defined config into juju nodes' cloud-config would solve his second issue | 17:54 |
jcastro | cool | 17:54 |
=== bkerensa_ is now known as bkerensa | ||
tncardoso | Is there a way to increase the virtual machine HD size when running with -e local? | 18:03 |
bkerensa | adam_g: I guess Ill be seeing you next week ;) | 18:04 |
jcastro | negronjl: hey does drawbridge use mongo or mysql in the backend? | 18:08 |
MarkDude | Is there a wiki page for Juju on Fedora? | 18:09 |
* MarkDude is heading to OSCON and CLS- | 18:09 | |
MarkDude | you gonna be there jcastro ? | 18:09 |
jcastro | yeah | 18:09 |
MarkDude | Cool | 18:09 |
adam_g | bkerensa: ya, for sure | 18:09 |
SpamapS | tncardoso: local is not a VM, its a container.. | 18:10 |
SpamapS | tncardoso: you can mount /var/lib/lxc somewhere larger if you want | 18:10 |
MarkDude | Lets get a photo op for it, I want to go next step and get publicity, and maybe have Nixie Pixel put sumthin' about it in one of her videos she is making there :) | 18:10 |
* SpamapS would love to be at OSCON.. one of the best confs | 18:10 | |
bkerensa | MarkDude: I'm trying to find someone to take over the Ubuntu Booth for me 90% of the time ;) | 18:10 |
MarkDude | Get you in front of Fedora booth, | 18:10 |
MarkDude | Phil will be there, he is sleeping on the floor of our Fedora room | 18:11 |
bkerensa | lol | 18:11 |
MarkDude | We could also just have some Fedorans in front of Ubuntu Oregon booth | 18:11 |
bkerensa | your water and towels will be gone | 18:11 |
bkerensa | :) | 18:11 |
MarkDude | Whatever | 18:12 |
bkerensa | MarkDude: Finn is coming to and Nathwill | 18:12 |
bkerensa | so it should not be a problem | 18:12 |
MarkDude | He will be our *token Ubuntu guy* | 18:12 |
tncardoso | SpamapS: If I log in the container and run 'df' I get 20Mb filesystem, this is making it harder to test my charms | 18:12 |
MarkDude | We will order him extra towels and water- remember we are NOT staying at Motel6 | 18:12 |
MarkDude | :D | 18:12 |
MarkDude | Despite your urging during funding meeting- which was pretty EPIC trolling on your part. | 18:13 |
MarkDude | Good stuff, people were amused | 18:13 |
* MarkDude too | 18:13 | |
MarkDude | If you do prank the Fedora booth, make sure we get a good photo op | 18:14 |
MarkDude | We are planning to sorta troll you by offering you a bit of our table space to put some Ubuntu SWAG | 18:14 |
MarkDude | Since we have some space that is | 18:14 |
MarkDude | :D | 18:14 |
SpamapS | tncardoso: that means /var/lib/lxc is on a 20Mb filesystem | 18:17 |
SpamapS | tncardoso: mount -o bind /mnt/somewhere/big /var/lib/lxc | 18:17 |
tncardoso | SpamapS: Ok, I will try that, thanks | 18:18 |
jcastro | MarkDude: there's no wiki page for it, there's a page for it we point to on github tho | 18:21 |
MarkDude | Fair enough, ty | 18:21 |
MarkDude | Looking forward to seeing you there- CLS also? | 18:22 |
jcastro | I'm in the middle of planning a booth so I can't do CLS, really wanted to though | 18:22 |
jcastro | er, a move. | 18:22 |
jcastro | MarkDude: hey those RPMs look fresh, anyone test these lately? | 18:23 |
jcastro | other than brandon I mean | 18:23 |
MarkDude | Well no | 18:23 |
MarkDude | thats the part of publicity | 18:23 |
MarkDude | Honest answer is F17 sorta sucks right now | 18:23 |
MarkDude | So many are still on F16- or even F14 | 18:24 |
MarkDude | :) | 18:24 |
MarkDude | True story. | 18:24 |
jcastro | ok so we just keep pushing these and when you guys are set you'll let us know? | 18:24 |
MarkDude | Yep | 18:24 |
jcastro | or are you basically doomed until F18? | 18:24 |
MarkDude | Thats WHY I want to get some publicity | 18:24 |
MarkDude | Or maybe F19 | 18:24 |
MarkDude | We are in the process of killing Gnome 3 | 18:25 |
MarkDude | That will take a while ago | 18:25 |
bkerensa | SpamapS: You know about LP Team running into issues with charm-tools? https://code.launchpad.net/~yellow/charm-tools/trunk/+merge/101554 | 18:25 |
SpamapS | bkerensa: yeah, I really need to just sit down and do this. Perhaps today | 18:26 |
bkerensa | SpamapS: yeah I think they thought I was the guy for that | 18:27 |
bkerensa | ;) | 18:27 |
bkerensa | which is clearly not the case | 18:27 |
dpb___ | I'm trying to do some hook debugging. https://juju.ubuntu.com/docs/write-charm.html But when I run something like config-get, I'm not in a juju context (no environment vars set). How do I load all that correctly? | 18:42 |
dpb___ | i.e., I ran juju debug-hook, I'm in the remote byobu session in terminal 0, and I don't have any environment set. | 18:43 |
SpamapS | dpb___: 0 is not really useful | 18:47 |
SpamapS | dpb___: you need to change a config setting | 18:47 |
SpamapS | dpb___: so config-change is executed | 18:47 |
SpamapS | config-changed rather | 18:47 |
dpb___ | oh I see, and then I will get in real time something. | 18:47 |
* SpamapS thinks we should print that out in window 0 actually | 18:47 | |
dpb___ | let me try | 18:47 |
dpb___ | SpamapS: ok, and this leads me to wonder how I debug the initial install attempt? | 18:57 |
imbrandon | SpamapS: i think we should just setup an environment there | 19:00 |
SpamapS | dpb___: juju deploy foo ; juju debug-hooks foo/0 | 19:01 |
SpamapS | dpb___: there's a need, IMO, to have a juju deploy --debug-hooks foo | 19:01 |
SpamapS | imbrandon: there's context missing in the agent tho | 19:01 |
dpb___ | SpamaS: got it. makes sense. thanks much. | 19:01 |
SpamapS | imbrandon: its possible that config-get and unit-get can be made to work w/o context | 19:01 |
imbrandon | refire the config-changed, or make a special context for it | 19:01 |
imbrandon | yea | 19:01 |
SpamapS | imbrandon: the env being up for things that make sense would be useful tho | 19:02 |
=== fenris is now known as Guest42115 | ||
imbrandon | right | 19:02 |
imbrandon | really there could be a "dead" hook | 19:02 |
imbrandon | or something | 19:02 |
imbrandon | or hell a hook/debug | 19:03 |
* imbrandon waits for another gold star. or a green one | 19:03 | |
SpamapS | actually I do think we should be able to know when debug is set somewhere so we can increase charm log verbosity | 19:03 |
SpamapS | but juju-log is supposed to help w/ that | 19:03 |
imbrandon | it does a little, but like the case i always find myself in ... | 19:04 |
imbrandon | i want to work on a charm, everything is deployed nice | 19:04 |
imbrandon | i run debug-hooks | 19:04 |
imbrandon | i cange a config | 19:04 |
imbrandon | thats about useless | 19:04 |
imbrandon | then i give up and just put the hook i'm | 19:05 |
imbrandon | working on at the bottom of upgrade charm | 19:05 |
imbrandon | and run upgrade charm over and over tuill i get what i want | 19:05 |
imbrandon | pain in the A** but it does the trick | 19:05 |
imbrandon | not really found a better workflow | 19:06 |
imbrandon | would be super cool if i could run debug hooks as now | 19:06 |
imbrandon | but THEN | 19:06 |
imbrandon | maually fire any hook i wanted | 19:07 |
imbrandon | from juju | 19:07 |
imbrandon | so juju --retry install | 19:07 |
imbrandon | or whatever | 19:07 |
imbrandon | from another console | 19:07 |
SpamapS | imbrandon: the upgrade-charm loop isn't all that awful. I put myself in it all the time. ;) | 19:08 |
SpamapS | imbrandon: you can at least juju resolved --retry to get a failed hook to try again | 19:08 |
imbrandon | it is as there is no context | 19:08 |
SpamapS | imbrandon: thats ok, because you can then write your relation hooks to use relation-ids and be more useful :) | 19:09 |
imbrandon | right, but i want to fire specific hooks | 19:09 |
imbrandon | hahah yea NOW i can | 19:09 |
SpamapS | imbrandon: but yeah, I think window 0 should be able to force fire a hook | 19:09 |
SpamapS | run-hook foo | 19:09 |
imbrandon | yea | 19:09 |
* SpamapS opens a wishlist bug for that | 19:09 | |
imbrandon | i would kiss whom coded that ( its a threat ) | 19:09 |
imbrandon | hahah | 19:09 |
imbrandon | SpamapS: think we could rangle jitsu into doing it ? | 19:11 |
SpamapS | imbrandon: no | 19:11 |
imbrandon | k | 19:11 |
_mup_ | Bug #1023565 was filed: debug-hooks window 0 should be able to force hooks to execute <juju:New> < https://launchpad.net/bugs/1023565 > | 19:11 |
SpamapS | imbrandon: perhaps, but I don't think we should get too fond of having jitsu poke zk to do things | 19:11 |
negronjl | SpamapS: why not? | 19:11 |
imbrandon | hahah but its the crazy ground | 19:11 |
SpamapS | because ZK will be hidden from us | 19:12 |
imbrandon | :) | 19:12 |
SpamapS | and may change layout | 19:12 |
SpamapS | or even turn into something else.. like mongodb ;) | 19:12 |
imbrandon | thats the case with anything , the api may change too | 19:12 |
negronjl | SpamapS: lol | 19:12 |
imbrandon | i youd rather not see jitsu do it i'm good with that but yea thats kinda the point i was told jitsu was for , crazy stuff that shouldent be done :) | 19:13 |
imbrandon | heya negronjl 0/ | 19:13 |
negronjl | imbrandon: o/ | 19:14 |
SpamapS | imbrandon: no, the API will not change once it is set | 19:14 |
SpamapS | imbrandon: its about time investment tho | 19:14 |
SpamapS | imbrandon: investing time in that is investing in something that will die soon | 19:14 |
jcastro | hey SpamapS | 19:15 |
jcastro | SpamapS: http://omttd.blogspot.com/2012/07/configuring-nfs-on-ubuntu-in-amazon-ec2.html | 19:15 |
imbrandon | well ok , was kinda joking till now, but here is my take, good or bad or whatever, no matter what ppl say Go is not ready, its not even in an alpha state to be used by nuts-o-ppl and so time investment imho isnt an issue | 19:15 |
imbrandon | not from this side of the fence | 19:15 |
jcastro | SpamapS: this would be a nice thing to blog about, doing it the juju way, what do you think? | 19:16 |
SpamapS | imbrandon: its your time, do what you want with it :) | 19:16 |
SpamapS | I, however, am not on my own time.. ;) | 19:16 |
imbrandon | SpamapS: right :) | 19:16 |
SpamapS | jcastro: thats short enough... there's no real win for juju there | 19:16 |
jcastro | booo subordinates ftw. | 19:17 |
imbrandon | there already is a juju nfs suborinate and honestly the juju way would be longer:) | 19:17 |
imbrandon | maybe better in the long run for them but longer | 19:18 |
jcastro | it wouldn't be longer, just the first time, after that if there's a relationship in place, automatic | 19:18 |
imbrandon | right, thus long run better | 19:18 |
jcastro | but I see what clint is saying, find something more complicated to care about than NFS. | 19:18 |
SpamapS | the juju way is only better for everything *after* that blog post | 19:18 |
imbrandon | yea, see the bottom of my last blogpost | 19:18 |
imbrandon | wanna help ? | 19:18 |
SpamapS | like after that you probably want to use it to store uploads | 19:19 |
SpamapS | but you also probably want HA | 19:19 |
SpamapS | so juju could help setup drbd | 19:19 |
SpamapS | and help add proper exports for each client you associate | 19:19 |
SpamapS | jcastro: NFS is ripe for juju help.. but the bits this person blogged about are.. frankly.. the obvious things | 19:20 |
imbrandon | oh i'm going to a special place in hell .... | 19:20 |
imbrandon | http://api.websitedevops.com/bin/hello.go | 19:20 |
jcastro | SpamapS: well with juju I don't need the first 4 steps at all | 19:21 |
imbrandon | #!/usr/lib/go/bin/gorun | 19:21 |
imbrandon | package main | 19:21 |
imbrandon | func main() { println("Content-Type: text/html") println("") println("<h1>Hello from GO!</h1>") | 19:21 |
imbrandon | } | 19:21 |
imbrandon | ^^ seat right next to satans daughter at the dinner table | 19:22 |
imbrandon | jcastro: yea you replace those 4 steps with http://juju.ubuntu.com/docs/getting-started.html | 19:23 |
imbrandon | jcastro: to paraphrase SpamapS "deployment is *boring*" and in this case it shows, now "juju set memcache engine=twememcache" for a runing environment is sexy | 19:25 |
jcastro | hey so what do they change | 19:25 |
jcastro | like, do people need to change their apps and stuff | 19:25 |
jcastro | they don't really say "drop in replacement", probably on purpose | 19:26 |
imbrandon | so far nothing , its the infrstucture that is changed | 19:26 |
imbrandon | not the front end | 19:26 |
imbrandon | and the infra changes is what juju is good at :) | 19:26 |
imbrandon | jcastro: yea and one thing about twitter they are good about using standard open source stuff , no embrace extend extenguish, so it makes sense its a dropin | 19:29 |
imbrandon | and they wouldve changed the name more like Riak2 or something :) | 19:29 |
* SpamapS feels like he missed some context | 19:30 | |
* SpamapS goes to ponder that at lunch | 19:30 | |
jcastro | SpamapS: twitter has a new memcached fork | 19:30 |
imbrandon | SpamapS: you did , i'll fill you in when you get back | 19:30 |
jcastro | http://engineering.twitter.com/2012/07/caching-with-twemcache.html | 19:31 |
jcastro | so the idea is, wouldn't it be cool if you could play with it right now with juju | 19:31 |
imbrandon | SpamapS: and i'm attempting at making the "juju set memcache engine=twememcache" "just work(tm)" | 19:31 |
jcastro | but it looks like a drop in replacement so I figure a config option on the memcached charm | 19:31 |
imbrandon | there is also a new memcache proxy that sits infront , or can sit infront of memcache/twememcache | 19:32 |
imbrandon | and let it scale in the same way my nginx-proxy does or mysql-proxy does | 19:33 |
imbrandon | guess its name ? heh twememproxy iirc or something similar | 19:33 |
imbrandon | heh | 19:33 |
imbrandon | jcastro: have you looked at all the kick ass projects that twitter pops out tho ? hold on there is a slick list .... | 19:34 |
jcastro | I know, they do release a ton of stuff | 19:34 |
imbrandon | http://twitter.github.com/ | 19:34 |
imbrandon | color coded by prog lang even :) | 19:35 |
imbrandon | 30 public repos | 19:35 |
imbrandon | oh wow, you know that blogger dude is a ex-canonical employee | 19:36 |
imbrandon | jcastro: ^ | 19:36 |
jcastro | yeah he is | 19:36 |
imbrandon | so he should know of juju | 19:37 |
imbrandon | I'm a Linux geek. I previously worked for Canonical, which is the corporate sponsor of Ubuntu. (It's an incredible place to work, and they're always hiring! Despite the fact that I'm not there any longer, I have nothing but good things to say about them. They rock.) | 19:37 |
imbrandon | jcastro: btw the NFS isnt a good story, but he is obviously on aws, obviously uses ubuntu, lets see if we can talk to him about the whole Libboo env | 19:38 |
jcastro | true dat | 19:39 |
imbrandon | if its a one man show, or close to it, it may fly | 19:39 |
imbrandon | When Libboo migrated from hosting everything ourselves to using Amazon's Elastic Compute Cloud (EC2), we decided to do a bit of rearchitecting at the same time to make scaling easier in the future. | 19:39 |
imbrandon | ohhh yea | 19:39 |
imbrandon | we need to have a chat with him :) | 19:39 |
imbrandon | you wanna email him ? your better at that kinda stuff than me, but o | 19:40 |
imbrandon | i'll defiately take the torch from there if he bites | 19:40 |
imbrandon | and show him the ropes etc | 19:41 |
jcastro | Yeah I'm on it. :) | 19:45 |
imbrandon | rockin i'm messing with twememcache, i dont think it will be that hard at all | 19:45 |
imbrandon | doing it now, well and a bit of playing with go | 19:46 |
imbrandon | jcastro: when is your next "showoff" day | 19:46 |
jcastro | this tuesday | 19:46 |
jcastro | 7 days from now | 19:46 |
imbrandon | oh yea, we're golden then | 19:47 |
imbrandon | i'll have this tongiht or tomarrow mroning if i hit snaggs | 19:47 |
jcastro | imbrandon: if not depending on our time, etc. we can just blog it when it's ready, I think it's cool enough on it's own to begin with | 19:49 |
jcastro | imbrandon: do you happen to have anything using memcached anywhere? | 19:49 |
jcastro | it'd be cool to see someone putting it through it's paces, etc. | 19:50 |
SpamapS | interesting | 19:50 |
SpamapS | dormando, the current memcached maintainer, is an ex-twitter employee | 19:50 |
SpamapS | I wonder if they disagreed | 19:50 |
imbrandon | heh | 19:50 |
imbrandon | maybe, memcache powsers ALL of twitter | 19:51 |
imbrandon | they use it like most use RDBMS | 19:51 |
imbrandon | as in persistant and for everything | 19:51 |
SpamapS | weird, I know upstream memcached has the slab reallocation | 19:51 |
imbrandon | like user info, tweets etc | 19:51 |
SpamapS | so surprising that they forked that | 19:52 |
imbrandon | yea, i have a feeling it may have been proior or a diff implmentation | 19:52 |
SpamapS | Lock-less Stats Collection | 19:52 |
SpamapS | Why aren't they just feeding this back into memcached? | 19:52 |
SpamapS | this is all t3h awesome | 19:52 |
imbrandon | but the one thing that can be said is its battle tested | 19:53 |
imbrandon | SpamapS: i think they offered | 19:53 |
imbrandon | but upsream was moving to slow or something | 19:53 |
SpamapS | Ah | 19:53 |
imbrandon | i'm thinking its similar to the situation of the new shiney lands in ubuntu first sometimes when really debian should get it first | 19:54 |
imbrandon | same type of vibe | 19:54 |
SpamapS | Yeah I would bet Alan incorporates it rapidly | 19:54 |
SpamapS | Heh, dormando in #memcached already responding to some of it.... | 19:55 |
SpamapS | 09:42 <@dormando> dsal: no... they benched something that moves at most one slab per 30 seconds vs somethign that moves slabs triggered by out of memory events | 19:55 |
SpamapS | 09:42 <@dormando> if they'd bothered to read the documentation I'm not sure why they did that | 19:55 |
SpamapS | reading docs is way less fun than coding | 19:55 |
imbrandon | hehe nice /me joins | 19:55 |
imbrandon | so really the real memcache will be better once a few hotness is incorperated ? | 19:56 |
imbrandon | niemeyer: is there a way ( short of chagning the code ) that I can have the compile dir for gorun use something other than /tmp or $TEMP , like can it use $GOTEMP ? | 19:58 |
imbrandon | i'm trying to get a date with the devils daughter by #!gorun as a cgi script , but apache/nginx want the actual binary to live in the ExecCGI dir so i'd like to set it to like /var/www/cgi-bin/.temp but not the $TEMP evn var as other apache temp files would then live there as well | 20:00 |
SpamapS | imbrandon: I have to think go has a fastcgi library by now | 20:02 |
imbrandon | SpamapS: it does | 20:02 |
SpamapS | imbrandon: or even just a light weight http service | 20:02 |
imbrandon | i like the ability to drop any exec in my /bin dir tho | 20:02 |
imbrandon | its how i run python | 20:02 |
SpamapS | ah | 20:02 |
imbrandon | SpamapS: http://api.websitedevops.com/bin/json.py?callback=cb | 20:03 |
imbrandon | stuff like that, but /bin is setup so anything that output correctly will work | 20:03 |
imbrandon | that way i dont need like a whole django env or ruby env etc, i setup the main server as php, and then /bin as all the "misc" stuff | 20:04 |
imbrandon | that i may want to use like a json.py in that case there etc | 20:05 |
imbrandon | and i have a hello.go that works from the cli "./hello.go" but niemeyer wrote gorun in a way that it compiles the .go with #!gorun on the fly and then replaces the process ( not fork ) with the compiled bin from $TMP/$hostname-$username/binary | 20:07 |
imbrandon | or something similar | 20:07 |
imbrandon | so it almost works except /tmp is not +ExecCGI and i'm thinking that might be a bad call | 20:08 |
imbrandon | :) | 20:08 |
imbrandon | so yea i'm turning a .go into a 1995 .pl script thus the special place in hell | 20:09 |
imbrandon | SpamapS: http://golang.org/pkg/net/http/cgi/ yup :) | 20:10 |
imbrandon | SpamapS: and for completeness hello.go src http://paste.ubuntu.com/1086796/ | 20:12 |
imbrandon | heh | 20:12 |
imbrandon | SpamapS: can i tell LP that i want to build the DSC from quantal without downlaoding and dputing it | 20:14 |
imbrandon | for php 5.4 | 20:14 |
imbrandon | hrm i guess that would be a recipe , /me looks how those are made on LP | 20:15 |
niemeyer | imbrandon: Hmm | 20:15 |
niemeyer | imbrandon: What are you trying to do there? | 20:16 |
imbrandon | niemeyer: http://paste.ubuntu.com/1086796/ | 20:16 |
imbrandon | works great from cli, but i want to use it as a poor mans cgi | 20:16 |
niemeyer | imbrandon: hah :) | 20:17 |
imbrandon | thus the TMP where the gorun bin is compiled needs to live under the same dir :) | 20:17 |
niemeyer | imbrandon: I suggest compiling it in that case | 20:17 |
imbrandon | :) | 20:17 |
niemeyer | imbrandon: Btw, http://golang.org/pkg/net/http/cgi | 20:17 |
imbrandon | yup, ok yea, it was/is more of a excercise than pratical | 20:17 |
niemeyer | imbrandon: It's really not difficult to compile it.. | 20:17 |
niemeyer | imbrandon: export GOPATH=$HOME | 20:18 |
niemeyer | imbrandon: mkdir -p $GOPATH/src/mycgi | 20:18 |
niemeyer | imbrandon: cd $GOPATH/src/mycgi; vi main.go; <hack hack>; go build | 20:18 |
niemeyer | imbrandon: You have a binary | 20:18 |
imbrandon | cool , yea that is probably the way to go than try and recreate 1995 anyhow :) | 20:19 |
imbrandon | then makes using external packages much easier too | 20:19 |
niemeyer | imbrandon: Right | 20:22 |
niemeyer | imbrandon: This is a huge plus I appreciate too.. I just copy s3up around, for example, and it Just Works | 20:23 |
niemeyer | (labix.org/s3up) | 20:23 |
imbrandon | yea , lifeless and me were just talking about that aspect of go the other night | 20:23 |
imbrandon | i was going to use it for the OSX juju installer just for that reason | 20:23 |
imbrandon | niemeyer: you might like http://cl.ly/Htjg ^^ mentioned installer | 20:24 |
SpamapS | imbrandon: btw, yes you can. The recipe would just be 'lp:ubuntu/php5' as the branch.. should "just work" | 20:37 |
SpamapS | imbrandon: of course.. if there are build-deps that need backporting.. you are in for more recipes :) | 20:38 |
imbrandon | sweet, i like simple | 20:38 |
SpamapS | I'm wondering if we should have a repo for charms to backport things they need into it | 20:39 |
SpamapS | My nagios charm needs 'pynag' which doesn't exist yet even in quantal.. | 20:39 |
imbrandon | yea i think we mentioned that the other day | 20:40 |
SpamapS | ppa:charmers/backports or something like that | 20:40 |
imbrandon | yea | 20:40 |
SpamapS | I wonder if we can be that general though | 20:40 |
SpamapS | Like I don't want to accidentally pull crazy-crack into a nice conservative charm that just wants a few python modules | 20:41 |
imbrandon | sure anything that isnt general enough for the package if its shard can be edited in the chatrm | 20:41 |
imbrandon | charm* | 20:41 |
imbrandon | hrm | 20:41 |
imbrandon | true | 20:41 |
SpamapS | I think its a PPA per backport focus | 20:42 |
imbrandon | i like the idea of a repo per charm but not tied to a person, so others could update it same as the charm | 20:42 |
SpamapS | like, we can have one for PHP54 | 20:42 |
SpamapS | and one for nagios | 20:42 |
SpamapS | yeah | 20:42 |
SpamapS | repo per set of charms tho | 20:42 |
SpamapS | repo per interface maybe?! | 20:43 |
imbrandon | yea ppa:charmers/nginx ppa:charmers/nginx-proxy | 20:43 |
SpamapS | ok I really should have eaten back when I said I was going to eat | 20:43 |
imbrandon | i like per charm, it keeps the namespace nice and clean | 20:43 |
imbrandon | and identifiable | 20:43 |
SpamapS | indeed | 20:43 |
imbrandon | thing about how many things use the http interface | 20:43 |
SpamapS | tho with arch: all stuff we can just embed debs in the charms for that use case | 20:43 |
imbrandon | i'm likeing files in the debs less and less | 20:44 |
SpamapS | which may be what I do just to get this nagios stuff out and done | 20:44 |
imbrandon | other than config templates | 20:44 |
imbrandon | these huge downloads and uploads on deploy kinda suck | 20:44 |
SpamapS | but they're predictible | 20:45 |
SpamapS | far more predictible than ppa.launchpad.net or archive mirrors. | 20:45 |
SpamapS | reliable.. not sure | 20:45 |
imbrandon | they are just as prdictable if they check out from git /bzr | 20:45 |
SpamapS | but they either work, or they don't | 20:45 |
SpamapS | no way, this is a zip file in your s3 | 20:45 |
SpamapS | if s3 goes down, the whole world goes down | 20:45 |
SpamapS | on add-unit.. if github is hiccuping.. some charms will fail | 20:45 |
SpamapS | others won't | 20:45 |
SpamapS | but those with embedded files will always work or not work. | 20:46 |
imbrandon | erm | 20:46 |
SpamapS | we actually identified the appropriate way to do this a long time ago | 20:46 |
SpamapS | caching really is what we need | 20:46 |
SpamapS | file-get http://... would cache said file in s3 for the next add-unit | 20:46 |
imbrandon | yea because a pile of files in my charm is so a step back from vcs | 20:46 |
SpamapS | and upgrade-charm would poke that cache for a refresh | 20:47 |
SpamapS | anyway, food | 20:47 |
imbrandon | or just a call to refresh caceh | 20:47 |
imbrandon | ok yea me too | 20:47 |
imbrandon | bbiab | 20:47 |
tncardoso | Is it possible to run multiple machines of the same service? When I try deploying the same charm twice I get the following error: ERROR Service name 'crawler' is already in use | 21:23 |
=== salgado is now known as salgado-afk | ||
tncardoso | add-unit | 21:34 |
SpamapS | tncardoso: not quite | 21:52 |
SpamapS | tncardoso: add-unit is multiple machines of the same "service" | 21:52 |
SpamapS | tncardoso: note that they will share configs entirely (so relationships will be established to all machines of a service) | 21:52 |
SpamapS | tncardoso: there's an optional "service name" parameter for deploy.. so 'juju deploy mycharm mycharm-service-id-1' works too | 21:53 |
tncardoso | SpamapS: Ok, so relations are shared | 21:53 |
tncardoso | SpamapS: In my case it will be ok | 21:53 |
tncardoso | SpamapS: Thanks | 21:54 |
adam_g | jimbaker: ping | 23:02 |
jimbaker | adam_g, hi | 23:22 |
adam_g | jimbaker: hey, was finally messing around with trying to isolate juju usage to a foreign $HOME. i was running into trouble, but it looks like an ssh client issue more than anything juju related. | 23:37 |
jimbaker | adam_g, you do need to have a .ssh directory in this $HOME dir | 23:39 |
jimbaker | otherwise my experience was that it worked well | 23:39 |
adam_g | jimbaker: bootstrapping works, its the ssh client connection to ZK that keeps checking the original $HOME/.ssh | 23:43 |
jimbaker | adam_g, hmmm | 23:43 |
adam_g | i haven't yet looked too deeply into it, but it seems reassigning $HOME isn't enough to change ssh's default | 23:44 |
jimbaker | adam_g, right, not juju, but ssh itself. certainly looking at juju.state.sshforward, looks like os.path.expanduser, etc are used properly | 23:47 |
jimbaker | adam_g, although ssh's docs definitely seem to be clear that it uses $HOME as would be expected | 23:49 |
jimbaker | adam_g, i'll retry on my end | 23:49 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!