/srv/irclogs.ubuntu.com/2012/04/25/#juju.txt

jimbakeri will say whitespace separated does has some wiggle room. the spec states "The output is a whitespace separated list of relation ids, if any."00:02
jimbakerreading     http://docs.python.org/library/stdtypes.html#str.split, it discusses the whitespace separation issue as well00:02
hazmatjimbaker, newline and whitespace separation aren't commonly understood as the same thing00:02
hazmatjimbaker, that doesn't talk about newlines00:03
hazmatjimbaker, i'm fine with it being newlines if thats what we're already using elsewhere and its easy for shell usage, but please update the docs to reflect it as newline separated00:04
jimbakerhazmat, it doesn't explicitly. but split does split on newlines as whitespace00:04
jimbakeras does the shell00:04
hazmatjimbaker, then its rather ambigious00:04
hazmatjimbaker, if you google around for common usage you'll see most people make a distinction00:05
jimbakerhttp://tldp.org/LDP/abs/html/special-chars.html#WHITESPACEREF00:05
hazmatjimbaker, yes its part of the definition, but its ambigious00:05
hazmatyour outputting something specific, be specific in describing what it is00:06
jimbakerhazmat, should we adjust the spec accordingly? because it is ambiguous there00:07
jimbakerpresumably, it should say "space separated" or "newline separated"00:07
jimbakernot "whitespace separated"00:07
jimbakerif only we chose to CSV, that's a format that's completely unambiguous ;) (and i'm of course completely joking)00:08
jimbakerhazmat, anyway, reading the review, i think the best thing to do is update the docstring to say "newline separated" and maybe add a comment this implies whitespace per our above conversation00:13
hazmatjimbaker, sounds good00:19
_mup_juju/relation-ids-whitespace-separated r534 committed by jim.baker@canonical.com00:20
_mup_Update docstring/comments to describe more precisely relation-ids, when using smart formatting, outputs newline separated ids; and that this is also whitespace separated00:20
SpamapSimo, newline separated is more consistent w/ the other tools00:55
SpamapSrelation-list and relation-ids should basically work the same00:55
_mup_Bug #988115 was filed: upgrade-charm fails to change a symlink to a regular file <juju:New> < https://launchpad.net/bugs/988115 >01:07
* SpamapS rings the bell01:15
SpamapScharm promulgated: loggerhead01:15
=== Furao_ is now known as Furao
=== nteon_ is now known as nteon
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== amithkk is now known as defocus
=== defocus is now known as Guest50099
=== Guest50099 is now known as quantal_quetzal_
=== quantal_quetzal_ is now known as amithkk
=== amithkk is now known as ubuntu
=== ubuntu is now known as amithkkl
=== amithkkl is now known as amithkk
* SpamapS tinkers w/ the mysql charm07:31
imbrandonmorning SpamapS07:56
SpamapSimbrandon: you wake up with the roosters or just back from the karaoke bar?07:59
SpamapSthe mysql charm is so F***'d ..08:01
SpamapSI should just rewrite it08:01
imbrandonjust back from blondies's08:01
imbrandonworking on the nginx charm i dident finish last night08:02
SpamapSimbrandon: which one is blondie, Bo or Luke? :)08:02
imbrandonhahaha08:02
imbrandoncooter08:02
imbrandoni like the overhauls08:02
imbrandonbut it was Beau really :) /me careses the 1/8th scale diecast "General Lee" on his bookshelf08:04
* imbrandon loves old moopars, general probably got me started but , '71 Cuda ... orignal "plumb crazy purple" with polished chrome hood pins shine against a flat black hood so you dont see the cowl induction only the numbers 427 in red along the ridge , chrome lined steel "fish gill" air vents just infront of the door seams on the front quarter , original black vynal interior and foe wood trim on the dash and wheel, 8 track with KISS detroit rock cit08:10
imbrandonand the body #'s and engine #'s gotta match, no throwin a Hemi in the other one with some sickers later, had to be original rebuild :)08:11
imbrandonahhh i found one, .... /me sets his wallpaper for the day08:13
imbrandonhttp://3.bp.blogspot.com/_gfXupHOEhH0/SzkT2Urio5I/AAAAAAAANxo/D0pnw7csTPk/s640/1971+Plymouth+Hemi+Cuda.jpg08:13
SpamapSlooks like a batmobile08:14
imbrandonthat one has a full blower and widend drag wheels, but puretty much that car08:14
imbrandonis my dream car08:14
SpamapSa redneck batmobile :)08:14
imbrandonsince i was like 1508:14
imbrandonlol08:14
imbrandondude you ever stand next to one, thats pure stock not some crap some guy did to make it loud08:15
imbrandonand it will for real make your body shake from the low rumble at idle08:15
imbrandon427 hemi with a huge carb and basicly no muffler stock08:16
SpamapSI was traumatized by my father's love of racing as a child, so I kind of hate all big motors08:16
imbrandonheh08:16
imbrandoni only like mopar08:16
imbrandonno idea why really08:16
SpamapSso nice of my dad to add half of the drag strip he owns as part of my inheritance when he kicks the bucket08:16
imbrandonbut like 67ish to 73ish mopars of any kind08:16
imbrandonheh08:17
imbrandonsell it out, its what i did with my dads computer shop last year, i dont wanna run a repair shoow08:17
SpamapSFitting, since its in "Clint" Texas08:17
imbrandonshop08:17
SpamapShttp://elpasomotorplex.com/Home/08:17
=== almaisan-away is now known as al-maisan
imbrandonoh wow, i think i been there08:18
SpamapSWow, gotta get dad to fix that08:18
imbrandoneast tex08:18
imbrandonlike near longview and kilgore ?08:18
imbrandonoh wow, default wordpress pagelines theme08:18
SpamapShttp://elpasomotorplex.com/08:18
SpamapSahh thats the real page08:18
imbrandonwell almost default08:18
imbrandonheh08:18
SpamapSok :)08:18
imbrandonahh much better08:19
imbrandonheh i seen the leaf logo at the bottom of the other and was like ohhhh pagelines, i know their themes08:19
imbrandonheh infact i own the same one08:19
imbrandonnot the "right one" the wrong one08:19
imbrandonheh08:20
SpamapShttp://elpasomotorplex.com/images/igallery/resized/801-900/IMG_8260-886-500-400-80.JPG08:20
SpamapSThere's my dad's car08:20
imbrandonmmmm summit08:20
SpamapSalcohol :)08:20
imbrandonSWEET08:20
SpamapSYeah, my sons love it08:20
imbrandonyea those frakers are nuts08:20
SpamapSI'm like, meh :-P08:20
imbrandonthey are worse than bull riders08:20
SpamapS0-200mph before you can blink twice08:21
imbrandonyea i love it too, well when there i dont follow it at all08:21
imbrandonand cant stand nascar08:21
imbrandonbut funnycars and stuff like that or drag bikes08:21
imbrandonthose are all fun to watch08:21
imbrandonin person08:21
imbrandontv , meh08:22
SpamapSyeah I feel the same way about hockey :)08:22
imbrandonyou got to feel the engines as the roar oir it dont count, and smelll the fuel08:22
imbrandonyea i'm probably the strangest dude you will ever meat sports wise, i was all into it up till i graduated HS, no i never even watch ANY on tv, not football, baseball, dont keep up , no march madness08:23
imbrandonetc08:23
imbrandoni'll PLAY baseball, but thats the extent, seriously08:23
imbrandonlike i get adgitated at the bar and everyone is into the football game, i just go home08:24
imbrandonheh08:24
imbrandonno idea, why but like i just am , meh about them all, all my buddies are like , "are you gay" ..... even the gay ones !! hahaha08:25
imbrandonthey mean it with love those before someone gets upset :)08:25
SpamapSso, moodle has to be the most sigusting, sad, slow php app ever made08:25
SpamapSsigusting.. worse thand disgusting08:26
imbrandonhahah ever run stock drupal 6 with no mods?08:26
imbrandonabout 20 second page load times08:26
imbrandonlike ootb, default content08:26
imbrandongive moodel some apc and a bit of tweaking i bet it could hum tho, i've always ment to get deeper into it, i've installed it like 5 times over the years but never finish using it/filling it out08:27
imbrandonmoodle*08:27
SpamapSI'm just poking at the half-done charm somebody submitted to see if I can make it go08:28
imbrandonahh08:28
SpamapSso far.. no luck08:28
SpamapShttp://ec2-50-112-14-19.us-west-2.compute.amazonaws.com/login/index.php#maincontent08:28
imbrandon:)08:28
SpamapSthats as far as I've gotten08:28
imbrandoncrap this is slow as hell08:29
imbrandonits not a micro is it08:29
imbrandonhhe08:29
imbrandonahhh08:29
imbrandonit loosk like08:29
imbrandonlet me check08:29
imbrandonone sec08:29
SpamapSm1.small08:30
SpamapStrying apc now08:30
imbrandonoh yea with no apc even phpinfo will be slow08:30
imbrandonbut there is something up with the config and the current domain08:31
SpamapSyeah08:31
imbrandonits missing an include it looks like08:31
imbrandonor something08:31
SpamapSlinks are wrong or something08:31
imbrandoncant spot it tho08:31
imbrandonwonder if they do it like wp, idiots08:31
SpamapSyeah I'm reading the code08:31
* imbrandon was glad i could bypass it in wp without a core hack08:31
imbrandonprobably cant in moodle08:32
imbrandonand holly mother of jesus , look at the way yui is loading with inc in cdata08:33
imbrandonthat another reason its takin so long to render08:33
SpamapS"render"08:33
imbrandonheh08:33
SpamapSthats an overstatement :)08:33
imbrandonright08:33
imbrandonhehe08:33
* imbrandon opens dev console08:34
imbrandonin dev console one of the styles.php is empty and one javascript.php is08:35
SpamapSno errors of course08:35
SpamapSwe wouldn't wnat it to be easy to track this down08:36
imbrandonmight have something to do with it or lead ya where does if you care that much08:36
imbrandonlol yea08:36
imbrandonone javascript.php fills, and all the yui-combos do but one php css dont and oen php js dont08:36
imbrandonafk a few, gotta get a little fruity pebbles or something brb08:37
SpamapSjust doing one page hit pegs the CPU08:39
SpamapSeven w/ apc08:39
imbrandondid you restart the php after installing it08:39
imbrandone.g is it actually caching08:39
imbrandoni goof that part regularly08:39
imbrandonquick phpinfo is the easy way to tell08:40
SpamapSyeah it is08:40
imbrandonor php-cgi -m on the cli08:40
imbrandonbut it will segfault08:40
imbrandonhrm08:40
SpamapShttp://ec2-50-112-14-19.us-west-2.compute.amazonaws.com/phpinfo.php08:40
imbrandonhrm, nice08:41
SpamapSI set error_reporting to E_ALL08:41
SpamapSand display_errors On08:41
imbrandonfskin sousin is enabled that might screw with it, gotta kill it with drupal , well drupal contrib08:42
SpamapSugh but they abuse error_reporting all over08:42
imbrandonheh08:42
imbrandonerror_reporting.scream08:42
imbrandoni thing08:42
imbrandonthink*08:42
imbrandonwill overide all of them if you set it to 108:43
SpamapS[Wed Apr 25 08:42:58 2012] [error] [client 76.94.217.164] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /usr/local/share/moodle/lib/moodlelib.php on line 783708:43
imbrandoni *think* its been foreever since i used it08:43
SpamapSYAAAY08:43
imbrandonahhh08:43
imbrandonyea08:43
imbrandonthat would make it slow as hell too08:43
imbrandonbump that bad boy to 512 like it should be08:43
imbrandonand i bet things get better08:43
imbrandonor atleaste show an error08:43
SpamapS24082 www-data  20   0  463m 139m  23m R 92.2  8.4   0:06.88 apache208:44
SpamapSso awesome08:44
SpamapSI forgot how much fun it was to watch PHP eat your server08:44
imbrandonheh thats only 23m08:44
imbrandonresident08:44
SpamapS[Wed Apr 25 08:44:50 2012] [error] [client 76.94.217.164] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /usr/local/share/moodle/lib/setuplib.php on line 36708:45
SpamapSdebug is for winning!08:45
imbrandonHAHA08:45
SpamapSI set the moodle debug = 1 flag08:45
imbrandonwow thats got to be an infinate look08:45
SpamapSThis yak is just about bald08:45
imbrandonloop08:45
imbrandonwhat version is that , i'm gonna grab it clean and try on my server08:46
imbrandonjust to see08:46
SpamapSgit08:46
SpamapSHere I'll push the charm up08:46
imbrandonoh no wonder, git branch or tag ?08:46
imbrandonkk08:46
SpamapSstable tag I thin08:47
SpamapSk08:47
SpamapSforgot to check ;)08:47
imbrandonbtw dont bother reviewing the drupal one yet, decided to go ahead and tear it down to use the nginx base server as a sub08:47
SpamapScool!08:47
SpamapSremember tho..08:47
imbrandonif ya get there today08:48
SpamapSsubs can't open ports08:48
imbrandonk08:48
SpamapStho you can work around that by making the primary open ports for the sub08:48
imbrandonthats fine, i was gonna have the nginx actualy control the whole 80 and 8080 configs08:48
imbrandonand just dropa drupal specific in sites/enabled08:48
SpamapSlp:~clint-fewbar/charms/precise/moodle/slow08:48
imbrandonno need for ports in ther08:48
SpamapSgit checkout MOODLE_22_STABLE08:49
imbrandon, even so though couldent we kinda cheat and do like on relation-join , drupal config set nginx ineedport80 , nginx config-changed notices and does it ?08:49
imbrandonhehe08:49
SpamapSyeah thats how you do it08:50
imbrandonahh kk08:50
SpamapSas long as primary service opens port, its all good08:50
SpamapS(and devs are working on fixing this)08:50
imbrandonerm08:50
imbrandonwait only the primary08:50
SpamapSwhy oh why doesn't php have a real debugger yet? :-P08:51
SpamapSI mean I know it does08:51
SpamapSbut I want it to be easy to use08:51
imbrandonfudge, i really wanted to do this set on jeos. even if its not for all charms it kinda makes sense here08:51
* SpamapS installs xdebug to see what havoc it plays08:51
imbrandonSpamapS: xdebug08:51
imbrandonSpamapS: thats ok, the jeos will just have the job of manageing all the ports then, not giving that up, cuz i'm dropin them all in the store at once TODAY i hope08:52
imbrandonall being the jeos-webbase with either zend-server-ce 80 and spdy OR nginx with phpfpm for 8008:53
imbrandonthats 308:53
imbrandonthen another sub of jeos for the nginx rev prox 30s cache08:54
imbrandonto one of those others08:54
imbrandonthen drupal or wp base with no default site, just install screen08:54
imbrandonand then my blog or omg or something on top of that ( but sub of jeos )08:55
imbrandonthats how i got it worked out08:55
jamespagemorning folks08:55
imbrandonand then others can be added and removed too but that is some nice default options08:55
imbrandonmorning jamespage08:55
jamespagehi imbrandon08:55
jamespagebit of late night charming SpamapS :-)08:56
imbrandoni'm rubbin off on him, soon he'll be going on 3 hours sleep 4 or 5 nights a week :)08:56
imbrandonlol08:56
SpamapSjamespage: indeed.. not sure why I'm poking at moodle when the real problem is mysql :-P08:57
jamespagelol08:57
SpamapSimbrandon: I'm training up for having an infant in the house08:57
imbrandonoh SpamapS been watching the omg load and such, it hit 10.x earlier for almost an hour, it was pushing 25Mb/s out and 13Mb/s in said byobu08:58
jamespageSpamapS, it will be a real test to see if you can charm whilst settling a baby at 2am!08:58
imbrandoni allllllllllmost did a juju add-unit08:58
SpamapSjamespage: I may need Siri to help w/ that. :)08:58
imbrandonbut it calmed back down, was just before you poped in08:58
SpamapSimbrandon: hah cool08:59
imbrandonfunny thing was tho with the 10.x load , i still it the page fine08:59
imbrandonwithout any extra lag, so thats why i dident rush to add a unit08:59
imbrandonif it starts to creep tho i will, running one extra for a day or two wont be much09:00
* imbrandon is suprised its holding up on two smalls as well as it has been09:00
SpamapSjamespage: I may have fixed the problem hive had w/ mysql actually09:01
imbrandoni mean i know this cruft is good but damn i'm thinking about starting a shared host on a m1.small and selling 100000000 accounts at $109:01
SpamapSshould probably abandon moodle and try hive instead :-P09:01
imbrandonand come out ahead09:01
imbrandonlol09:01
imbrandonSpamapS: did you see a small patch from marcoceppi for mysql charm09:02
imbrandonhe said he had one for you to fix some utf8 things we got to fix wevery redeploy09:02
jamespageSpamapS, I'll have to read - that was at least a month about and my ringbuffer memory has looped a few times since :-)09:02
SpamapSjamespage: I poked at the hive charm in new-charm .. looked good to me09:03
* SpamapS officially gives up on moodle09:03
jamespageSpamapS, sweet - i'll promulgate it then09:03
jamespageSpamapS, as hadoop, hbase, zookeeper and hive will all be in the charm store I was going to do a trivial update to all of their readme's to stop using a local repo09:04
SpamapScool09:04
SpamapSI am not so excited about cs:* until we get an ability for people to fork a running service's charm09:05
SpamapShttps://code.launchpad.net/~clint-fewbar/charms/precise/mysql/add-binlog-format/+merge/10342709:05
SpamapSThere's the fix09:05
jamespageSpamapS, nice09:06
SpamapSimbrandon: I don't see anything from marco, I'll ping him tomorrow09:06
SpamapSsad.. us-west-2 seems to be more laggy than us-east-1, despite being baout 1000 miles closer to me. :-P09:07
SpamapSimbrandon: mysql and charsets is always a nightmare. :-/09:07
imbrandonyea, he said the fix is in that shelr.tv prov feed he gave me and you09:08
SpamapSok, sleep09:08
imbrandonjust fyo09:08
imbrandongnight09:08
imbrandonsee ya in a few hours /me will still be here09:09
jamespagehive charm promulgated - thanks bbcmicrocomputer!09:28
bbcmicrocomputerjamespage: ah no problem :)09:29
=== al-maisan is now known as almaisan-away
=== mrevell_ is now known as mrevell
jcastroimbrandon: you're working on the nginx subordinate right?14:46
imbrandonjcastro: yea15:57
imbrandonlike right now15:57
imbrandonwill be done before lunch15:57
imbrandonjcastro: and an apache zend server one too that will be done same time as it shares 90% of config15:58
jcastroimbrandon: so what I was thinking about, is to make an nginx ppa for 1.2.0 an option in the charm, for people who want to use it, that would be sweet.16:10
imbrandonyea i'm definaly using the upstream nginx ppa16:11
imbrandoni do on my site and depends on some of the new stuff16:11
jcastro<316:11
imbrandonits packaged by upstream and stable release16:11
imbrandonso should be good too16:11
imbrandonand i've been using it since it came out on my site16:11
imbrandon( i have the daily ppa on )16:12
=== carif_ is now known as carif
=== elopio_ is now known as elopio
=== al-maisan is now known as almaisan-away
=== carif_ is now known as carif
SpamapSjimbaker: so, I'm experimenting with relation-ids18:40
jimbakerSpamapS, cool18:40
SpamapSI can getthe relation id..18:40
SpamapSbut I want to re-run a hook as if it was changed again18:40
SpamapSso I need to set, like, JUJU_REMOTE_UNIT18:41
SpamapSany idea?18:41
jimbakerSpamapS, you can only do settings on the local unit18:42
SpamapShm, so do I do relation-list ?18:43
SpamapSahh relation-list is what I want. :)18:43
jimbakerSpamapS, good :)18:43
SpamapSjimbaker: basically I want to write a "refresh *everything*" script18:44
jimbakerSpamapS, that's a bit challenging in the scope of what is provided - you would need to ensure this runs in some hook on a service unit for every relation18:45
jimbakerbut if you can use "jitsu do" (which i will merge in shortly to juju-jitsu), it's pretty straightforward18:46
jimbakergiven it's rather powerful capabilities ;)18:46
jimbakermy feeling is that this would be a good place to start at least18:46
SpamapSjimbaker: jimbaker http://paste.ubuntu.com/946143/18:46
SpamapSjimbaker: there's my first attempt18:47
* SpamapS tries it18:47
SpamapSjimbaker: note that is the whole upgrade-charm hook18:47
SpamapSdoh, have to enumerate the relation name myself18:48
jimbakerSpamapS, yes, there's no generic support for getting relation names from juju itself. the expectation is that charms know the relation name. leaving this issue to some sort of charm tooling that can work with the metadata.yaml18:50
SpamapSwhich is what I'm writing right now :)18:51
SpamapSactually18:51
SpamapSno18:51
SpamapSI only have one relation18:51
SpamapSI can be explicit in this case18:51
jimbakerSpamapS, sounds good18:52
jimbakerSpamapS, re line 14 of that paste, does that exec the script?18:52
SpamapSyes18:53
SpamapSbut I think it may fail because it doesn't do what I would have expected, which is that the presence of JUJU_RELATION_ID would be enough to give me a context18:53
jimbakerSpamapS, right, the overall script has that flaw18:54
jimbakerit needs to make changes on relation settings, which is restricted to the local unit18:55
SpamapShuh?18:55
SpamapSIt actually just needs to do a few relation-get's18:56
jimbakerSpamapS, if that's the case... then fine, you can do that on remote units of course18:56
SpamapSyeah I think I just need to add an explicit '-r $JUJU_RELATION_ID' to the hook it is calling18:57
SpamapSwhich, seems like a bug18:58
SpamapSif I have no context, but I do have $JUJU_RELATION_ID .. that should be equivilent to passing -r $JUJU_RELATION_ID18:58
SpamapSjimbaker: jitsu do seems too general. I don't know exactly what it is for.19:02
jimbakerSpamapS, the way to think about jitsu do is that it allows you to execute the command + args as if it were a hook19:03
jimbakerso for example, $ jitsu do mysql/0 relation-get -r db:0 -19:04
jimbakerthis is as if this were called as a nonrelational hook (a relational hook automatically gets an implied relation, including $JUJU_RELATION, $JUJU_RELATION_ID)19:04
SpamapSso, I had hoped that implied relation would simply be carried in the env vars mentioned...19:05
SpamapSthat would make things more self contained.. I don't want to included jitsu in charms just so they can do the right thing and refresh their relations on upgrade-charm19:06
SpamapSactually IMO juju should do it automatically.. but .. baby steps19:06
SpamapSjimbaker: here's the diff I'm adding to the munin charm..19:09
SpamapSjimbaker: http://paste.ubuntu.com/946171/19:09
jimbakerSpamapS, agreed on that. jitsu do for now should be considered a useful backdoor for trying out things19:09
SpamapSjimbaker: I shouldn't need the '-r' .. its implied by the environment.19:09
SpamapSthis works btw19:10
SpamapSits just that it shouldn't need to be so invasive19:10
jimbakerSpamapS, i understand your perspective re not needing -r if JUJU_RELATION_ID is specified *or* changed19:13
jimbakerthis could be done in a reasonable way. right now, the implied relation is special since the invoker knows it's in a relation  hook context19:14
hazmatm_3, jamespage you guys have talks in already for strata ny+hadoopworld?19:52
hazmatjust got  a reminder that their due on may719:53
* hazmat finishes up his presentation for openstackdc meetup19:53
jcastrohttp://podcast.ubuntu-uk.org/live/20:05
jcastroI am on this podcast talking about juju!20:05
jamespagehazmat, sure have21:00
jamespagearosales and m_3 are working on a charm school as well21:00
arosalesya, hopefully we can have a tutorial session at Strata/Hadoop world on how to build off James' Haddop charms, and also use the charms in different deployments.21:02
arosalesHope to have that submitted by end of the week.21:03
=== carif_ is now known as carif
jcastroAnnouncing the UDS Charm Contest!22:17
jcastrohttp://cloud.ubuntu.com/2012/04/announcing-the-uds-juju-charm-contest-for-uds-attendees/22:17
imbrandon^^22:17
imbrandonso mine22:17
=== jcastro changed the topic of #juju to: Coming to UDS? Write a charm for a chance to win one of 3 Dell XPS 13 ultrabooks! http://goo.gl/uTGU2 || Charms at http://jujucharms.com || Want to write a charm? http://juju.ubuntu.com/Charms" || OSX client: http://jujutools.github.com/"
SpamapShey22:21
SpamapSsomebody put a dell logo on my laptop22:21
imbrandonheh22:22
* imbrandon is soooooooooooooooooooooo got one of those this time22:22
* imbrandon polishes more turds to combine them alll22:22
imbrandon:)22:22
imbrandonand if not least i lost fair and square from the start this time :)22:23
imbrandonheh22:23
* imbrandon gets food22:23
jimbakerthat xps 13 looks rather rather nice22:30
SpamapShrm.. poking at making an autoscaler w/ munin+juju .. one real pain is that you have to know *all* of the SSH keys that you want to be able to use to talk to juju before you bootstrap22:39
jcastroSpamapS: Got ~5 for G+?22:40
jcastroI have quick questions22:40
SpamapSbut22:41
SpamapSthe daisies22:41
SpamapSthe pirates will be sad22:41
SpamapSwill try.. fighting pink eye onset and lacking a headset :)22:41
imbrandonsteal a patch from on of dem pirates22:43
lifelessSpamapS: pink eye... what have *you* been up to ?23:12
SpamapSlifeless: no good23:14
RichardRaseleyI have a question regarding scaling things like mongodb or cassandra via juju. If you look at the command juju add-unit -n 2 cassandra its purpose is clear - but how does it know what computers to configure those two additional nodes on?23:33
RichardRaseleyIs that specified after the fact (I haven't actually ran these commands, FYI)?23:34
RichardRaseleyOr rather, as part of the input asked for after the command?23:34
SpamapSRichardRaseley: it decides where to scale onto the same way it decides when you run 'deploy'23:39
SpamapSRichardRaseley: the only difference is that there is already one unit in that service.23:40
SpamapSRichardRaseley: so, it uses a combination of the placement policy and constraints23:40
RichardRaseleyIf I am SSH'd into "server00" and I do a cassandra deploy - it won't go to that particular server? Where are those policies defined?23:41
SpamapSRichardRaseley: the default is to place everything on an "available" machine, or to ask to have one provisioned if there are none. The default constraints are different per provider but basically mean "any machine"23:41
RichardRaseleyI am just looking over the juju.ubuntu.com site and I don't see that information...23:41
SpamapSRichardRaseley: juju is in charge of provisioning, so by the time you can ssh in, its too late. :)23:41
RichardRaseleyObviously if I have 1000 production machines in an environment - I don't want JuJu grabbing a mailserver and make it a mongodb node.23:42
SpamapSRichardRaseley: since juju's use case is more "cloud like", it expects to be able to install a new OS on a clean machine every time.23:42
RichardRaseleyWhat controls those placement policies?23:42
SpamapSRichardRaseley: the provider defines the constraints that are available.. and there are only two placement policies right now.. the "available machine" and "local". Local is used for doing local dev.23:43
RichardRaseleyWhat does "provider" define in this context.23:43
RichardRaseley?*23:43
SpamapSwell realistically, ec2, or maas23:43
RichardRaseleyIf I want to deploy Keystone on the server to which I am currently logged into via JuJu, I cannot do that?23:44
SpamapSno, juju does not do that currently23:44
RichardRaseleySimilarly - if I want to create a mongodb deployment, then extend it to server00 and server01, I cannot do that?23:44
RichardRaseleyOh, wow - that is hugely dissapointing.23:45
SpamapSRichardRaseley: why's that?23:45
SpamapSThose machines are already busy23:45
SpamapSIf you have clean machines23:45
SpamapSuse MaaS23:45
RichardRaseleyNo, they aren't - I just created them.23:45
RichardRaseleyThey aren't physical machines.23:45
SpamapSAhh, well if you create them w/ MaaS, then yes you can do that. :)23:45
SpamapSAnd if they're VM's, then let juju create the VM's.23:45
SpamapSRichardRaseley: It would not be hard to write a juju provider which SSH's to boxes and runs juju's agent.23:46
RichardRaseleyThat just doesn't make sense to me. I mean, that is awesome that it supports that but it seems a no-brainer that I should be able to specify (IP, FQDN, etc.) the machines that I want to extend the services to.23:46
RichardRaseleyNot hard for a developer. =]23:46
SpamapSRichardRaseley: Why exactly are you so interested in creating the VM's yourself?23:47
RichardRaseleyDoes it matter why?23:47
RichardRaseleyThere could be any number of reasons.23:47
SpamapSyeah, it might motivate me to advocate for that use case :)23:47
RichardRaseleyWell, for example we are using a combination of VMware & Hyper-V so I don't know if Juju hooks into that.23:48
RichardRaseleyThere are change control issues with allowing an automated script to hook into production infrastructure.23:48
SpamapSNo, it doesn't. It needs an API to talk to, and right now, it only speaks EC2 and MaaS23:48
SpamapSRichardRaseley: only one machine, the juju provisioning agent machine, has access to the infrastructure.23:48
SpamapSRichardRaseley: and those change control issues are handled by keystone and nova if you use OpenStack.23:49
RichardRaseleyRight, but it is an "unknown" as far as most people would be concerned. Our process for provisioning VMs is "X" and deviation from that is painful for operations to overcome (that is a whole other issue).23:49
SpamapSWhatever access creds you're using can be limited to numebr of nodes and types and such.23:49
SpamapSRichardRaseley: So you'd like to manually define the VM's that are available to juju. I think thats a worthy goal, you're the 3rd person to ask for that functionality.23:50
RichardRaseleyYes, it *could* be done that way - but that isn't the way I would want to use it in this case. I think having the ability to interface with MaaS or with EC2 or OpenStack is awesome, but also being able to say something like "juju mogodb deploy --server server00"23:51
SpamapSRichardRaseley: one option is to make those VMs owned by MaaS, so they act more like real servers. The only requirement is that they be able to PXE boot from the network where MaaS is.23:51
RichardRaseleythen "juju add-unit -n 2 mongodb --server server01, server02"23:52
SpamapSugh23:52
RichardRaseleyPXE and WoL, right?23:52
SpamapSRichardRaseley: the WoL isn't required, just makes things easier23:52
RichardRaseleyWhat if you have existing PXE servers in the environment doing other things (WDS for example)?23:53
SpamapSRichardRaseley: --server is a bit of a problem. You are limiting the scale quite a bit. How about when you deploy, you say 'deploy --constraints mem=10G,cpu=10' and then add-unit will find the machines that suit that?23:53
RichardRaseleyI don't recall if you can define multiple PXE servers in a DHCP option.23:53
SpamapSRichardRaseley: you can tell DHCP servers to only respond to known MAC's23:53
SpamapSRichardRaseley: or just --constraints class=mongoserver .. and then have the machines classified arbitrarily23:54
RichardRaseleyBut what is creating the pool of available machines?23:54
SpamapSRichardRaseley: the reason --server server01 is in your head is that you are limited by your organization's unwillingness to actually meter their infrastructure with a real cloud-like solution.23:55
SpamapSRichardRaseley: the success of amazon comes largely from letting go of "but we can't let just anybody take one of our precious compute units!" and instead just billing everybody who uses things.23:55
RichardRaseleyWe aren't "billing" anyone - it is all internal use.23:55
RichardRaseleyAnd they don't use a chargeback model.23:56
SpamapSSo why would you be so concerned about letting services that need resources take the resources they need?23:56
SpamapSAnd then putting governor's on.. a-la "that environment only gets X compute and Y ram"23:56
SpamapSRichardRaseley: I'm not trying to change your business model, but rather, let you know the business model we've targetted first w/ juju.23:57
RichardRaseleyNot going to disagree with you in principal - but I think having that flexibility would speed adoption of Juju which will have a net effect of moving things faster towards that model.23:57
RichardRaseleyI can say "Look what Juju can do Mr. Manager" "Holy, crap really?" Yes, and if I deployed Maas (etc.) it could do that +X and +Y"23:58
SpamapSPerhaps, but at what cost? Instead of migrating to OpenStack, users now have this clunky juju thing on top of their old servers that can't scale.23:58
SpamapSRichardRaseley: MaaS is laserbeam-targetted at making it really easy to deploy a "seed" openstack cloud.23:59
SpamapSRichardRaseley: something where you take a few real boxes and throw openstack up and then show how juju can manage apps easily ontop of openstack.23:59
SpamapS(in theory.. :)23:59

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