[04:29] <SpamapS> imbrandon: thats fantastic news about newrelic!
[04:47] <lifeless> SpamapS: what news?
[04:56] <imbrandon> lifeless: http://www.brandonholtsclaw.com/blog/2012/free-newrelic-for-aws-and-azure/
[05:08] <imbrandon> dude, like tons of VIPs showing up tonight at the downtown ( smaller ) airport :)
[05:08]  * imbrandon forgot the All Star game is only a day away, heh
[05:22] <SpamapS> lifeless: newrelic is a really nice example of a perfect subordinate charm. Just piggy backs onto PHP and/or others and makes it better
[05:23] <SpamapS> well.. measures it better anyway :)
[05:23]  * SpamapS is biased since they gave him a t-shirt :)
[05:23]  * SpamapS is trying out install roundcube from EPEL on a CentOS 6 box just to see how much more annoying the old way is than juju deploy roundcube
[05:23] <imbrandon> heh i have a t-shirt AND a book :) heh
[05:24] <imbrandon> they gave away "the lean startup" too at one time
[05:24] <imbrandon> ugh rpms'
[05:25] <imbrandon> SpamapS: you see this ? http://cl.ly/Htjg
[05:25] <imbrandon> ^^ my next blog-post will be featuring that i think
[05:34] <lifeless> SpamapS: I knew what it was, didn't know it was made into a subordinate yet ;)
[05:34] <imbrandon> ahh yea, that was like the firast sub i made, like the day they landed
[05:34] <imbrandon> first*
[05:42] <SpamapS> lifeless: both the generic system monitor and the php version are in the official list and maintained by imbrandon :)
[05:42] <SpamapS> imbrandon: VERY nice on the installer
[05:43] <imbrandon> :)
[05:44] <lifeless> imbrandon: NICE
[05:44] <lifeless> bah
[05:44] <lifeless> nice.
[05:44] <lifeless> ECAPSLOCK
[05:44] <imbrandon> nice and tidy too, at under 100k uncompressed
[05:44] <imbrandon> :)
[05:45] <imbrandon> https://github.com/downloads/jujutools/jujutools.github.com/Install%20juju.zip
[05:46] <SpamapS> Hrm ok why won't dovecot log my auth failures.. :-/
[05:50] <lifeless> its not in authlog ?
[05:57] <imbrandon> can go binarys be staticly linked ?
[05:58] <imbrandon> e.g. if i was to redo that installer ( less than 100 loc ) in go, could i staticly link the binary so that i dont need to ensure the go runtime is on the osx box ?
[05:58] <lifeless> wrong question
[05:59] <lifeless> 'can go use shared libraries' - yes, if you try hard.
[05:59] <imbrandon> hrm ok i'll bite
[05:59] <imbrandon> hum not sure i follow worded like that but ok /me digs a little
[06:00] <lifeless> its modelled after Google deployment requirements, which is single monolithic blob with no floating dependencies, to permit fine grained 'what rev was involved' in diagnosing failures.
[06:00] <imbrandon> ahh i think i see now
[06:02] <lifeless> opinions vary on whether this is a good thing or a bad thing.
[06:02] <imbrandon> yea i'm thinking before i unleash it on the masses that python or go will be the way , the main reason i had waited a few days is its in umm ... php now :)
[06:02] <lifeless> Its certainly very different to the general move to shared everything in the Linux space over the last 20 years ;)
[06:03] <imbrandon> ya but very similar to the apple world
[06:03] <imbrandon> thats how all apps are on apple, well 90% of them
[06:03] <imbrandon> everything needed to run the app, even full ruby or python runtimes are in the .app
[06:04] <imbrandon> they CAN use the system version but to be included in like the App store, the app must include even the runtime
[06:04] <lifeless> yah
[06:04] <imbrandon> even python apps etc, so its very normal there
[06:04] <lifeless> the linux world has been building up the value of the distro
[06:04] <lifeless> for security fixes etc
[06:04] <imbrandon> yea
[06:04] <lifeless> app stores push that back on the vendor, not the distributor
[06:05] <imbrandon> i totaly see both sides, has ups and downs
[06:05] <lifeless> I don't think any distro has really understood that yet, not at a deep level
[06:05] <imbrandon> yea
[06:05] <imbrandon> a .app like thing for linux would be kinda cool
[06:05] <imbrandon> infact i think the .app spec its self actually can work
[06:05] <imbrandon> ala gnustep
[06:05] <imbrandon> iirc
[06:06] <imbrandon> just not done much
[06:07] <imbrandon> on apple it really shows with MacRuby, as there are alot of app store apps that use it
[06:08] <imbrandon> nice thing is its lightning fast compared to the normal ruby runtime tho so its a nice target VS learning ObjectiveC + coca
[06:08] <imbrandon> but its like 100+mb added to the .app
[06:08] <imbrandon> heh
[06:12] <imbrandon> ok, so back to the go, your saying that is the norm ?
[06:12] <imbrandon> lifeless: ^
[06:12] <lifeless> yes
[06:12] <lifeless> but not 100mb :P
[06:12] <imbrandon> ahh :) nice ok that will make it easy then
[06:12] <lifeless> its a bit stronger than norm in fact
[06:13] <lifeless> as far as I know there still aren't shared libraries for go components themselves.
[06:13] <imbrandon> cool, i like that idea
[06:13] <lifeless> but IMBW, if you use gccgo for instance
[06:14] <imbrandon> yea i noticed there was a gccgo infatc the newest XCode ( preview version for 10.8 ) has support for it
[06:14] <imbrandon> not looked into it tho
[06:15] <imbrandon> well this might be a good dip my toe in go then, since its likely to be a) used by others so i'll get feedback and b) its less than 100 loc in PHP so its a small project
[06:17] <imbrandon> i could always go hipster and write it in node :) hahaha
[06:17]  * imbrandon sticks with go 
[06:31] <imbrandon> so ... func add(x int, y int) int { ...
[06:31] <imbrandon> the last int is the returned type ?
[06:34] <imbrandon> wtf is :=
[06:34] <imbrandon> oh wow, this si going to be intresting ...
[06:41] <imbrandon> mmm gobomb
[06:41] <imbrandon> func main() { for { }
[06:41] <imbrandon> }
[06:48] <imbrandon> Goose! I feel the need, the need for speed ...
[06:48] <imbrandon> deb https://region-a.geo-1.objects.hpcloudsvc.com/v1.0/73450381287323/mirror quantal main restricted universe multiverse
[06:48] <imbrandon> :)
[06:58] <imbrandon> holly crap golang is hard to read, i thought that was one of the goals was to make the source readable
[07:00] <imbrandon> jcastro: btw i'm fairly certain the disk io is crap ...
[07:00] <imbrandon> # time ./mnt/scripts/mirror.sh
[07:00] <imbrandon> real    95m45.364s
[07:00] <imbrandon> user    0m30.710s
[07:00] <imbrandon> sys     2m14.328s
[07:54] <SpamapS> yaaay selinux just wasted another hour of mine
[07:54]  * SpamapS wonders if its worth knowing how annoying it is to run his IMAP server on CentOS
[07:55] <imbrandon> heh apt-get purge selinux && apt-get purge apparmor
[07:55] <imbrandon> ?
[07:55] <SpamapS> CentOS
[07:55] <imbrandon> doh
[07:55] <imbrandon> rm -rf /
[07:55] <SpamapS> And I want to use it "as it is intended"
[07:55] <imbrandon> :)
[07:55] <SpamapS> more about learning than having a rocking IMAP server
[07:56] <imbrandon> i hear ya
[07:56] <imbrandon> still sux
[07:56] <imbrandon> heh
[07:56] <SpamapS> selinux is denying roundcube (apache) from connecting to port 143 on ::1 and 127.0.0.1
[07:57] <imbrandon> nice, use a 192 class a on a diff interface ?
[07:58] <imbrandon> oh and yea go is nogo for the installer, i started the boilerplate code and its more than the whole app is currently
[07:58] <SpamapS> it has nothing to do with the IP
[07:59] <SpamapS> apache is not allowed connect() at all
[07:59] <imbrandon> oh nice
[07:59] <SpamapS> well I take that back, its allowed 3306
[07:59] <imbrandon> nothing below 1024 likely
[08:00] <imbrandon> dude, btw you see the 95m real above ?
[08:00] <SpamapS> or it may be dovecot protecting itself.. I can't tell yet because I don't understand selinux
[08:00] <SpamapS> do people even bother leaving it on?
[08:00] <imbrandon> i dont
[08:00] <imbrandon> honestly
[08:01] <SpamapS> AppArmor is prety straight forward
[08:01] <imbrandon> i figure thats what firewals are for, if there is malicious code ON my box, i'm already hosed
[08:01] <SpamapS> it squawks, you edit /etc/apparmor.d/something .. you move on
[08:01] <SpamapS> imbrandon: well thats a weak security model you're talking about, but as long as you accept that its fine
[08:01] <SpamapS> imbrandon: defense in depth requires that there be something beyond firewalls
[08:02] <imbrandon> well yea, but i dont run un sandboxed code either
[08:02] <imbrandon> there is more to it, but i find selinux more a pita than a help
[08:02] <imbrandon> as long as the other bits are in place
[08:02] <SpamapS> imbrandon: Yeah, PITA security is no security because it gets turned off
[08:02] <SpamapS> which selinux is about to here
[08:03] <imbrandon> right, esp with mail servers, should be no running of code there anyhow
[08:03] <imbrandon> external that is
[08:03] <SpamapS> Its a webmail server
[08:04] <SpamapS> and procmail runs some gnarly stuff for me there too :)
[08:04] <imbrandon> php-fpm is designed to run as a user
[08:04] <imbrandon> unlike before mod_php
[08:04] <imbrandon> so the web part is safe(er)
[08:04] <imbrandon> now procmail hehe
[08:04] <SpamapS> hrm yeah
[08:05] <SpamapS> not realy tho
[08:05] <SpamapS> mod_php never runs as root
[08:05] <SpamapS> so that bit is equal
[08:05] <imbrandon> right but it runs as www-data
[08:05] <imbrandon> and alot of times thats got far more permissions that a dedicated php user
[08:06] <SpamapS> thats pretty weak
[08:06] <imbrandon> its the falling point of many shared php setups :)
[08:06] <SpamapS> I see your point, but its really not a big deal or a reason to use fpm
[08:06] <SpamapS> shared PHP is the failing point of many shared php setups
[08:06] <imbrandon> hahaha true
[08:07] <SpamapS> in this day and age with several container technologies available...
[08:07] <imbrandon> yea, seriously :)
[08:08] <imbrandon> i just learned today that you can embed perl code into the nginx.conf files ... my wheels been spining on that one
[08:08] <imbrandon> suprised its not uses/abused more
[08:08] <imbrandon> used*
[08:12] <imbrandon> well perl or lua, but i never really _got_ lua, maybe because thats what World of Warcraft UI and addon's are coded in ( lua )
[08:15] <imbrandon> SpamapS: ok if you wanted to in the simplest but fairly foolproof way to execute a shell script , wait for it to exit, then goto 10 ( e.g. loop continusly ) , what comes to mind, a small python wrapper mainloop run my upstart or ...
[08:15]  * imbrandon is drawning a blank but seems like this should be fairly simple
[08:15] <SpamapS> huh?
[08:16] <imbrandon> i want to exe a shell script over and over
[08:16] <imbrandon> but not before the last exe stops
[08:16] <imbrandon> run , wait for exit, run wait for exit, etc etc etc
[08:16] <SpamapS> while script ; do true ; done
[08:17] <imbrandon> hrm, yea see told ya i was being dumb
[08:17] <SpamapS> maybe do sleep 0.1 to keep it from going berzerk
[08:17] <imbrandon> right in front of me
[08:17] <imbrandon> heh yea
[08:17] <SpamapS> oh man
[08:17] <SpamapS> berzerk
[08:17] <SpamapS> just had an atari flashbac
[08:17] <imbrandon> hahaha
[08:17] <imbrandon> i LOVE that game, demon attack too
[08:17] <imbrandon> i can hear the little dudes lazers
[08:18] <imbrandon> dont hit the walls :)
[08:18] <imbrandon> dude your old ... hahaha j/k
[08:19] <SpamapS> yeah I'm old and I need to go to bed
[08:19] <SpamapS> but this is pissing me off
[08:19] <imbrandon> :)
[08:28]  * SpamapS gives up and reboots with selinux disabled
[08:31] <SpamapS> well that fixes basically everything
[08:31] <imbrandon> hah
[08:31] <SpamapS> *arg*
[08:32] <SpamapS> damn, except roundcube
[08:32] <imbrandon> heh
[08:32] <SpamapS> helps if you start the imap service
[08:32] <imbrandon> find a rails webmail ?
[08:32] <imbrandon> lol
[08:32]  * imbrandon runs
[08:33] <SpamapS> roundcube is great
[08:33] <SpamapS> I found it a while ago
[08:33] <imbrandon> yea it actually is, i used it use it pre gmail
[08:33] <imbrandon> very slick ui
[08:34] <SpamapS> I need webmail about once every 6 months
[08:34] <imbrandon> damn google owns everything ... heh
[08:34] <SpamapS> sup takes care of me otherwise
[08:35] <imbrandon> yea i use Sparrow or gmail web ui , more sparrow than gmail until reciently
[08:35] <imbrandon> no sparrow for Ubuntu :(
[08:36] <SpamapS> Keeping email in console has kept me more focused with it
[08:36] <SpamapS> less shiny things
[08:37] <imbrandon> yea i tried mutt a while back, then quickly went to pine/alpine ... then back to sparrow
[08:37] <imbrandon> sparrow is like iOS mail for the desktop, so its real sparce but great for multi accounts/unified inbox
[08:38] <SpamapS> sup is what you'd get if you married mutt to gmail
[08:38] <imbrandon> hehe :)
[08:39] <imbrandon> i never got used to the keybindings, kept doing crap wrong when i just wanted to write a email
[08:39] <imbrandon> heh
[08:39] <imbrandon> ( in mutt )
[08:39] <imbrandon> pine worked out well due to the same keybindings as pico/nano
[08:39] <imbrandon> already muscle memory
[08:40] <SpamapS> sup has the gmail keybindings
[08:40] <SpamapS> but
[08:40] <SpamapS> its author has bailed
[08:40] <imbrandon> but no inline attachments and such kinda sucked for me, i get alot of screenshots and ui mockups in email
[08:40] <SpamapS> and there's no fork/resurrection
[08:41] <SpamapS> yeah if I didn't anything visual I'd probably go insane w/ sup
[08:41] <imbrandon> its ok if there is like 1 per email, but that never works out in reality
[08:42] <SpamapS> wow finally I think I can turn off my old centos 5 Xen after 6 months of procrastinating
[08:45] <imbrandon> heh
[08:46] <imbrandon> SpamapS: http://cl.ly/HwVE sparrow
[08:46] <SpamapS> looks very busy
[08:46] <SpamapS> I liked apple's regular mail client actually
[08:46] <SpamapS> I feel like Thunderbird has just been driving more toward working like it for the last year
[08:47] <imbrandon> its not good at multi account unified inbox, but actually apples iOS client is
[08:47] <imbrandon> and sparrow takes after that
[08:48] <imbrandon> also the faces and color coding is nice, but thats avail in the gmail web ui too
[08:49] <imbrandon> SpamapS: yea , alot of that too is i get ALOT of email , so its hard not to be busy
[08:49] <imbrandon> looking
[08:50] <SpamapS> I have about 4000 unread, unkilled emails right now
[08:50] <SpamapS> and I intend to 0 it all by noon tomorrow :)
[08:50] <imbrandon> ouch
[08:50] <imbrandon> i try to keep my inbox at 0 , the rest 0 be weeks end or they get killed
[08:53] <SpamapS> Yeah I got way behind last week
[08:53] <SpamapS> but sup is pretty damn efficient
[08:53] <SpamapS> so I expect I'll kill 75% of those threads quickly
[08:53] <imbrandon> :)
[08:57] <SpamapS> ok, not sleeping now would be foolish
[08:58]  * SpamapS bids the internets adue
[08:58] <imbrandon> gnight
[09:01] <jamespage> morning all!
[09:01] <imbrandon> mornin :P
[10:35] <jamespage> jcastro, video of juju talk at europython now up - http://www.youtube.com/watch?v=HlGDP92dlfY
[10:35] <imbrandon> ohhh /me goes to peep it out
[10:40] <jamespage> imbrandon, enjoy my accent :-)
[10:42] <imbrandon> :) cant be worse than mine when excited heh
[10:42] <imbrandon> jamespage: btw you may like this, looks similar to what your using http://bholtsclaw.github.com/html5slides/templates/ubuntu/index.html
[10:43] <imbrandon> hahaha and i wrote the php one ( just got to that part ) :P
[10:44] <jamespage> imbrandon, nice
[10:44] <jamespage> I know who to blame now :-)
[10:44] <imbrandon> :)
[10:47] <imbrandon> jamespage: http://bazaar.launchpad.net/~imbrandon/charms/precise/nginx/trunk/view/head:/hooks/lib/install
[10:47]  * jamespage shudders
[10:47] <jamespage> lol
[10:47] <imbrandon> heh
[10:47] <imbrandon> :)
[10:48] <imbrandon> is quite nice once abstrated like that heh
[10:48] <jamespage> reminds me - I'm mid review on that one
[10:48] <jamespage> must complete this week
[10:48] <imbrandon> :) i just merged the only other thing that was in the queue
[10:48] <imbrandon> a few minutes ago
[10:49] <imbrandon> jamespage: btw if you did not see http://www.brandonholtsclaw.com/blog/2012/free-newrelic-for-aws-and-azure/
[10:49] <jamespage> imbrandon, just ready
[10:50] <imbrandon> cool, okies foooooood brb :)
[14:53] <jcastro> adam_g: whoa cool, new incoming charm, RIAK!
[14:53] <jcastro> adam_g: it's your week this week btw.
[15:12] <SpamapS> Mmmmm Riak
[15:31] <jimbaker> the riak charm looks nice; curiously in the juju tests, riak is the standard peer service we use there (all dummy of course)
[15:42] <SpamapS> I'd be willing to bet that juju's peer relations are not sufficient to do it fully automatic
[15:43] <SpamapS> without some kind of "leader" election ability, it just doesn't work.
[15:43] <jimbaker> SpamapS, agreed, really need to add that functionality
[15:43] <SpamapS> ceph suffers from this too
[15:43] <jimbaker> almost having it is sadly not sufficient
[15:43] <hazmat> hmm.. not sure if riak needs that
[15:44] <SpamapS> the only answer is to deploy the first node as one service, and then a second service for all the rest
[15:44] <hazmat> i ended up using riak in the tests for all peers, because its nice
[15:44] <jcastro> hazmat: you're back at work this week?
[15:44] <hazmat> jcastro, i am
[15:44] <SpamapS> hazmat: does it have its own ability to sort out which of the known nodes bootstraps the data store?
[15:44] <jcastro> hazmat: excellent ... hey so .... openstack provider ... *whistles*
[15:44] <jimbaker> hazmat, riak does its own leader election (or otherwise just works)?
[15:45] <hazmat> jcastro, its also our first upstream nosql charming
[15:45] <jcastro> yep, I noticed that too
[15:45] <jcastro> hopefully the review goes smooth and I can send them shirts soon. :)
[15:45] <jcastro> looks like they don't have an https source either. :-/
[15:46] <hazmat> SpamapS, as long as they all agree on the ring name and know each others addresses
[15:46] <hazmat> SpamapS, dunno
[15:47] <jimbaker> jcastro, my only concern when i looked at the codebase is that the readme.md was really just a stub
[15:47] <jimbaker> but i didn't do a full review
[15:47] <SpamapS> hazmat: the problem I've run into with a few of the services is that they need a few bootstrap things to happen only one time...
[15:48] <SpamapS> hazmat: the only answer has been to just not add-unit until that is done.
[15:48] <jimbaker> SpamapS, which is not a very good answer
[15:49] <SpamapS> agreed
[15:49] <SpamapS> with the MPI charm I tried to make, I just have a 'master' service and 'slave' service.
[15:50] <SpamapS> and I think I'll do the same w/ ceph
[15:50] <SpamapS> it works, but it sucks because it makes that one special
[16:06] <jcastro> hazmat: hey so ... openstack provider. :)
[16:18] <hazmat> jcastro, virtual sprint atm
[16:18] <hazmat> jcastro, but noted
[16:18] <jcastro> hazmat: ah ok, no worries then
[16:26] <bkerensa> jimbaker: looking forward to your talk next week :)
[16:39] <jimbaker> bkerensa, thanks :)
[16:40] <jimbaker> are you a jython user by chance? or simply curious about the capabilities of the jvm?
[16:42] <bkerensa> jimbaker: simply curious :)
[16:43] <jimbaker> bkerensa, sounds good to me!
[16:44] <negronjl> 'morning all
[16:47] <jimbaker> negronjl, good morning!
[16:47] <negronjl> jimbaker: 'morning
[17:06] <jcastro> hey so is the verbosity of the ec2 and s3 api calls being not authenticated necessary?
[17:15] <jcastro> jamespage: etherpad-lite works great, thanks for the look.
[17:15] <jcastro> I think I'm going to demo this one
[17:26] <benji> Hey all.  I found the "ubuntu" charm very helpful for a project I'm working on, but not having it available in the charm store is a bummer.  Any chance of getting it back in there?
[17:27] <jcastro> benji: it's a problem with the store, someone is investigating, but yeah, I find that I would love to use it more and more
[17:27] <SpamapS> jcastro: its a bit more verbose than it should be. There's an open bug to resolve that..
[17:27] <jcastro> benji: it's like a great "I need an ubuntu server now" command
[17:29] <benji> jcastro: exactly; we're using it to run integration tests for some software that wants to make system changes and it is great to be able to conjure up a fresh box to run them on
[17:29] <SpamapS> jcastro: bug 1012497
[17:29] <_mup_> Bug #1012497: Juju should only give security warnings on bootstrap <security> <juju:Confirmed> < https://launchpad.net/bugs/1012497 >
[17:29] <jcastro> SpamapS: taa
[17:29] <jcastro> SpamapS: yeah I am just concerned during demos it spams the console
[17:30] <SpamapS> jcastro: it only does that when you're doing things unsafely
[17:31] <jcastro> I am doing things default-y
[17:31] <SpamapS> jcastro: and I hope in the Go version we'll change the default of ssl-hostname-verification from false to true.
[17:31] <jcastro> unless I am missing something in my config?
[17:31] <SpamapS> perhaps even in pyju since we're moving toward "0.6"
[17:31] <SpamapS> jcastro: if you create a new environments.yaml, it adds 'ssl-hostname-verification: true'
[17:32] <SpamapS> jcastro: and yes you have forgotten to specify ssl-hostname-verification. :)
[17:33] <jcastro> wow, you sent the mail in april
[17:33] <jcastro> I've been bad
[17:33] <SpamapS> jcastro: it should have been accompanied by a docs update. I don't know that the docs even have ssl-hostname-verification mentioned
[17:34] <jcastro> nope
[17:34] <jcastro> it does not according to a google search
[17:35] <jimbaker> and not in docs source
[17:35] <jimbaker> yes, that definitely would be a good thing to add
[18:43] <SpamapS> jcastro: done. r53 :)
[19:15] <SpamapS> and fixed formatting, r54 ;)
[19:30] <jcastro> ok so I made a new juju video
[19:30] <jcastro> that is easy and explains what we are
[19:30] <jcastro> chopping it up now and editing it ....
[19:30] <SpamapS> we
[19:30] <SpamapS> are
[19:30] <SpamapS> SPARTA!!!!!!!
[19:32] <jimbaker> that's quite the image i now have for the new juju video ;)
[19:52] <cereal_bars> hi all, am I the only one with issues with the css on juju.ubuntu.com?
[19:53] <cereal_bars> http://d.pr/i/B4zv http://d.pr/i/iove
[19:53] <SpamapS> no
[19:53] <SpamapS> its under investigation
[19:54] <SpamapS> cereal_bars: ^
[19:55] <cereal_bars> aok, great :)
[21:38] <robbiew> SpamapS: hazmat: so with jitsu+juju+maas, is it possible to deploy a service to the bootstrap node...or does that cause a paradox thrusting me back in time
[21:43] <SpamapS> robbiew: I think the deploy-to command hazmat wrote can do that
[21:43] <robbiew> SpamapS: yeah, I mean I used it already...just wasn't sure if the bootstrap node was "special"
[21:43] <robbiew> guess there's one good way to find out! :P
[21:44] <SpamapS> its only special because zookeeper runs there
[21:44] <robbiew> yeah
[21:44] <SpamapS> so just don't deploy zookeeper to it ;)
[21:44] <robbiew> lol
[22:03] <hazmat> robbiew, its not
[22:04] <hazmat> er. 'local' or deploy-to works for that case
[22:04] <robbiew> coolio
[22:55] <imbrandon> SpamapS: how did the nginx-proxy relations look ? had a chance ?
[22:56] <SpamapS> imbrandon: I did not. Looking now.
[22:56] <imbrandon> cool cool
[22:57] <SpamapS> imbrandon: they look simple enough. What is http-proxy though?
[22:57] <SpamapS> imbrandon: shouldn't that also just be http ?
[22:58] <imbrandon> well i guess, thats kinda what was messing me up
[22:58] <imbrandon> so the website relation should only fire when new lets say wordpress to make this easy
[22:58] <SpamapS> imbrandon: proxies will almost always require/provide the same thing unless they are a translating proxy
[22:58] <imbrandon> get related
[22:59] <imbrandon> so my upstream loop will add wordpresses pub ip's the way its setup and ignore other nginx-proxies
[22:59] <imbrandon> right
[22:59] <imbrandon> ?
[22:59] <SpamapS> imbrandon: yeah, you probably want to use just changed/departed/broken there btw, joined is a bit irrelevant since you're not doing any relation-set's
[22:59] <imbrandon> yea gonan symlink them
[22:59] <imbrandon> gonna*
[22:59] <SpamapS> imbrandon: also broken is tricky because relation-get doesn't work anymore
[22:59] <imbrandon> oh
[23:00] <SpamapS> imbrandon: the trick is to name any state files using $JUJU_RELATION_ID
[23:00] <SpamapS> so you can rm -f /etc/nginx/conf.d/$JUJU_RELATION_ID* on broken
[23:00] <imbrandon> well relation id is  set in common
[23:00] <imbrandon> and service name
[23:00] <SpamapS> relation-list also doesn't work in broken
[23:01] <SpamapS> and broken is what is called when somebody does 'remove-relation' or 'destroy-service'
[23:01] <imbrandon> doh, so much for symlinking then
[23:01] <SpamapS> imbrandon: you can do the symlink thing if you do a full-regen every time, which you appear to do
[23:01] <imbrandon> yea
[23:01] <imbrandon> based on the template
[23:01] <SpamapS> imbrandon: you just need to loop over all the relation-ids too
[23:02] <SpamapS> since in theory you might want to proxy to multiple backends
[23:02] <imbrandon> right, well thats what the units do
[23:02] <imbrandon> i thought
[23:02] <SpamapS> (this is where we need some new fields in the http interface so you can identify a frontend hostname, btw)
[23:02] <imbrandon> or did i miss something
[23:02] <SpamapS> you can have multiple collections of units related to one relation
[23:03] <imbrandon> ohh
[23:03] <imbrandon> well not really
[23:03] <imbrandon> they would serve diffrent content
[23:03] <imbrandon> that cant happen
[23:03] <SpamapS> for relation in `relation-ids` ; do for unit in `relation-list -r $relation` ; do relation-get -r $relation - unit ; done ; done
[23:03] <SpamapS> They might serve different content..
[23:04] <SpamapS> but how would you select it without knowing the Host: header to choose?
[23:04] <SpamapS> hence my point.. http needs a new field
[23:04] <imbrandon> roght thats why there is only one block
[23:04] <SpamapS> right, so you can just say "behavior is undefined with multiple relations to website"
[23:04] <imbrandon> it needs to assume that they all serv same
[23:05] <imbrandon> right
[23:05] <imbrandon> well that was my thinking , adding something like that to the readme
[23:05] <imbrandon> that all relations need to serve the same content
[23:06] <imbrandon> so you could stick say 4 instances of summit behind it
[23:06] <imbrandon> or whatever
[23:06] <SpamapS> So yeah, in that case, since you're writing everything to the default site, you need to regen all relations, not just all units
[23:06] <SpamapS> I do think at some point relations will need a 'max relationships' spec of some kind so you can say 1 or many.
[23:07] <imbrandon> not sure i see what you mean then
[23:07] <SpamapS> since it makes no sense to give wordpress two dbs
[23:07] <imbrandon> what does all relations give me vvs all unity
[23:07] <imbrandon> right but thats handeled by the wpcharm
[23:07] <imbrandon> this isnt a sub
[23:08] <imbrandon> err
[23:08] <SpamapS> imbrandon: juju deploy nginx-proxy ; juju deploy wordpress --constraints mem=8g fat-wordpress ; juju deploy wordpress --constraints=2g skinny-wordpress ; juju add-relation skinny-wordpress nginx-proxy ; juju add-relation fat-wordpress nginx-proxy
[23:08] <SpamapS> imbrandon: what would you expect that to do?
[23:08] <imbrandon> add both public ips to the backend {} block
[23:08] <imbrandon> of skinny and fat
[23:08] <SpamapS> in your example, it would not
[23:08] <imbrandon> ahh ok
[23:08] <SpamapS> it would be a race
[23:09] <SpamapS> whoever changed last
[23:09] <imbrandon> ahh ok thats wheve i messed up then
[23:09] <SpamapS> hence needing to loop over `relation-ids` *or* use $JUJU_RELATION_ID in a file and concat them together.
[23:09] <imbrandon> $units = split(trim(`relation-list`),' ');
[23:09] <imbrandon> ^^ ??
[23:09] <SpamapS> thats fine
[23:09] <imbrandon> ?
[23:09] <SpamapS> you need one more loop
[23:10] <SpamapS> $relationships = split(trim(`relation-ids`),' ');
[23:10] <SpamapS> and you need to pass -r $relid to relation-list and relation-get inside your loop
[23:10] <imbrandon> ok, i'm stull not really sure on why tho is the twister
[23:10] <SpamapS> see my example above
[23:11] <SpamapS> because "relations" can have multiple "relationships"
[23:11] <imbrandon> ohhh ohhh ohh
[23:11] <imbrandon> ok clicked*
[23:11] <SpamapS> which are confusingly identified by "JUJU_RELATION_ID" .. should have been "JUJU_RELATIONSHIP_ID" imo
[23:11] <imbrandon> ok crap
[23:11] <imbrandon> hrm yea i see exactly what ya mean now
[23:12] <SpamapS> imbrandon: to be fair, I'm pretty sure 99% of charms do this wrong because relation-ids only landed in March. :)
[23:12] <imbrandon> wow that is a mess
[23:12] <imbrandon> heh
[23:13] <imbrandon> ok so i need to loop relations , relation get all the units inside of THAT loop then write out with the combined results
[23:13] <imbrandon> to do how i said i wanted
[23:13] <SpamapS> imbrandon: I really do want to add an 'endpoint-host' field to http, or something like that, so backend servers can inform the frontend of their intended endpoint, and vice-versa,
[23:13] <imbrandon> yea that would make this much easier
[23:13] <SpamapS> imbrandon: right makes it a bit more tricky but you got it. :)
[23:14] <imbrandon> maybe it can be the posterboy for testing that later
[23:14] <SpamapS> I'm trying to focus on this generic monitoring solution right now
[23:14] <SpamapS> I got it sort of working but in too complex of a way last week, so I'm starting over with a simpler design.
[23:14] <imbrandon> rockin, i'm gonna change that up and toss this up for full review
[23:15] <imbrandon> nice
[23:15] <imbrandon> yea that will be very nice
[23:15] <SpamapS> imbrandon: sweet (also remember to change that http-proxy interface to 'http', and relation-set hostname/port on it)
[23:15] <SpamapS> imbrandon: that way you could put something else in front of this proxy.. and chain them
[23:15] <imbrandon> ahh ok
[23:15] <imbrandon> good call
[23:15] <SpamapS> like say a mod_security proxy
[23:16] <imbrandon> yea or that nginx firewall thing
[23:16] <SpamapS> (tho I'd guess that mod_security would go behind nginx.. not the other way around. :)
[23:16] <SpamapS> ok time to go afk for a bit
[23:17] <imbrandon> kk ty ty
[23:18] <jimbaker> looks good re relation ids
[23:28] <imbrandon> there we go, once i understood that was simple enoguh to add
[23:28] <imbrandon> SpamapS: http://paste.ubuntu.com/1083617/
[23:28] <imbrandon> :)
[23:29] <imbrandon> no for the other bits
[23:29] <imbrandon> now*
[23:50] <imbrandon> wow whats up with juju.ubuntu.com ?