/srv/irclogs.ubuntu.com/2012/05/02/#juju.txt

SpamapSFYI, there's a new charm-tools in the PPA now00:06
SpamapSincludes 'unpromulgate'00:07
=== imbrando1 is now known as imbrandon
SpamapSimbrandon: did you get your newrelic-php charm to deploy?00:20
SpamapSimbrandon: the metadata is a bit confusing00:20
SpamapSimbrandon: no interface: juju-info ..00:20
imbrandonSpamapS: i was about to try in in just a few minutes00:20
imbrandonno i did it blind so far00:20
imbrandonuntill a few ago no to deploy it00:20
SpamapSimbrandon: I think you need interface: juju-info00:20
imbrandoni thought i put it00:20
* imbrandon looks00:21
imbrandonSpamapS: i can give you a valid key00:21
imbrandonif you wanna try it too00:21
imbrandonthe one i use for brandonholtsclaw.com so the numbers dont matter if a little skewed00:21
imbrandonetc00:21
SpamapSwell I'd think juju would just refuse00:22
lifelessnewrelic have a free account for low traffic sites IIRC, so you can get a key easy.00:23
SpamapSyeah that should go in the README of the charm :)00:23
imbrandonlifeless: yea for the system monitor only00:23
imbrandonlifeless: not the lang ones like php00:23
imbrandonthis is a php one00:24
lifelessimbrandon: wait, what ?00:24
lifelessthat sucks00:24
SpamapSimbrandon: copyright: This charm is not endorsed or affiliated with the Locker project and the Locker source is the respective work of its author.00:24
imbrandonyea the free only does like cpu memory and disk and like that00:24
lifeless$pointless00:24
imbrandonSpamapS: whoop00:24
imbrandonSpamapS: sounds like an old push00:24
imbrandonSpamapS: let me make sure bzr is uptodate00:24
SpamapSbzrhater00:25
imbrandonsubordinate: true00:25
imbrandonrequires:00:25
imbrandon  juju-info:00:25
imbrandon    scope: container00:25
imbrandonprovides:00:25
imbrandon  logging:00:25
imbrandon   interface: newrelic-php00:25
imbrandonis that not right ?00:25
SpamapSnope00:25
SpamapSat the same level as scope: container, you need 'interface: juju-info'00:25
SpamapSat least, thats how I read the docs00:25
imbrandonok and leave the other too00:25
imbrandonso two juju-infos00:26
imbrandon?00:26
SpamapSsame level as scope00:26
SpamapSrequires:00:26
SpamapS  juju-info:00:26
imbrandonright but do i leave the other00:26
SpamapS    interface: juju-info00:26
imbrandonok00:26
SpamapS    scope: container00:26
imbrandonkk yea thats what i was asking if i left both00:26
* imbrandon fixes00:26
SpamapSno files dir either00:27
imbrandonlifeless: yea "system" monitoring is free for unlimited servers, "application" monitoring is now00:27
imbrandonnot*00:27
imbrandonyea bzr was out dates00:28
imbrandonbholtsclaw@ares:~/Projects/local/charms/precise/newrelic$ bzr add .00:28
imbrandonadding files00:28
imbrandonadding files/548C16BF.gpg00:28
imbrandondoh00:28
* SpamapS suspends review00:28
lifelessimbrandon: I think you are wrong00:28
imbrandon3 seconds and i'll have it pushed00:28
lifelesshttp://newrelic.com/pricing/details00:28
lifelesslite00:28
lifelessfree00:28
imbrandonright but thats for the newrelic-sysmon00:29
lifelessincludes basic db and app monitoring00:29
lifelessanyhow00:29
imbrandonahh yea00:29
imbrandonwhen theysay basic they mean BASIC00:29
lifelessoops gathers more data :)00:29
imbrandonas in is it running00:29
lifelessand is always free00:30
imbrandonbut yea00:30
* imbrandon will add a bit about that in the readme00:30
SpamapSimbrandon: you need a start/stop hook00:30
SpamapScontrary to popular belief, having an init.d installed in runlevel 2 is not enough00:30
imbrandonSpamapS: k00:31
SpamapSeventually juju will use stop/start to support migrating services, and possibly snapshotting.00:31
imbrandonSpamapS: also if you do grab a lite key while i push this, and the "deploy" it to test the charm, they count that as a depooy and will send ya a data-nerd t-shirt :_00:32
SpamapSI am starting to think more and more that we should take the debhelper 7 approach and try to get this all down to one hook file that just calls out to various helpers00:32
imbrandonheh00:32
SpamapS99% of charms are doing the same things00:32
SpamapSNo revisions or tags to pull.00:33
imbrandonpush00:34
imbrandoned00:34
imbrandonshould be rev 300:34
imbrandonon bzr00:34
imbrandonSpamapS: PM with key if you wanna try without hassle of signing up, just a convience00:37
imbrandonjust added a line in the readme too about getting a ( free ) newrelic account00:40
imbrandonty lifeless , i mis-understood00:40
SpamapSoh nice , I get a data nerd shirt00:40
imbrandonyup yup, i got two from them , nice shirts actually00:40
imbrandonand i got a book "The Lean Startup" hard cover they was giviing away a few weeks ago00:41
imbrandonthey are always giving some kinda swag out to twitter followers00:41
SpamapSOk I'm going to point it at my thinkup instance00:42
imbrandonkk00:42
imbrandoni'm after testing and prom etc i'm gonna deploy it to omg instead of how its done by hand now00:43
imbrandonomg is using cloudflare now too00:43
imbrandon:)00:43
SpamapS2012-05-01 17:43:44,651 unit:newrelic-php/0: hook.output ERROR: /var/lib/juju/units/newrelic-php-0/units/newrelic-php-0/charm/hooks/install: line 13: syntax error near unexpected token `else'00:44
imbrandoncrap00:44
* imbrandon looks00:44
SpamapSforgot ; after ]00:44
imbrandondamn i was gonna say this is like the simplest chamr00:44
imbrandonlol00:44
imbrandonpushed00:45
SpamapSyeah I just haxored it in and I'm rerunning the install hook now00:45
imbrandonkk00:45
imbrandon:)00:45
* SpamapS hugs juju resolved --retry00:45
SpamapSI think we should just alias that to 'juju retry'00:45
SpamapSI almost always want --retry anyway00:46
SpamapS2012-05-01 17:46:09,907 unit:newrelic-php/0: hook.output ERROR: /var/lib/juju/units/newrelic-php-0/units/newrelic-php-0/charm/hooks/install: line 10: md5: command not found00:46
SpamapSha-ha00:46
SpamapSmd5sum00:46
SpamapSimbrandon: man u suck at this! ;-)00:46
* SpamapS hides00:46
imbrandoni am so gonna make the error and info functions in juju to be "ohai = info " "ohnoe = warn" "ohpoo = error"00:46
imbrandonwow00:46
lifelessimbrandon: misunderstood what ?00:46
imbrandonlifeless: the free leel00:47
imbrandonlevel00:47
imbrandonSpamapS: no md5sum on base install ?00:47
imbrandonfrak00:47
SpamapSno *md5*00:47
SpamapSmd5sum is there00:47
SpamapSwell, it might be00:47
SpamapSnot entirely sure actually00:47
imbrandonph, frakin osx thin00:47
imbrandonthere is here00:48
imbrandonnot sure on linux00:48
lifelessimbrandon: ah, so it does do more than you thought ?00:48
imbrandonbholtsclaw@ares:~/Projects/local/charms/precise/newrelic$ md5 -q files/548C16BF.gpg00:48
imbrandonbe9704aa1e7001d855a60c4c05d7598b00:48
imbrandonbholtsclaw@ares:~/Projects/local/charms/precise/newrelic$00:48
SpamapSmd5sum is in coreutils00:48
imbrandonlifeless: yup, not a lot , i'd still pay,. but yea00:48
SpamapSimbrandon: realistically, that check doesn't add any security. If a bad actor could change that, it could change install00:49
imbrandontrue00:49
* imbrandon just drops it00:49
SpamapS2012-05-01 17:49:21,939 unit:newrelic-php/0: hook.output ERROR: /var/lib/juju/units/newrelic-php-0/units/newrelic-php-0/charm/hooks/config-changed: line 12: /ect/newrelic.cfg: No such file or directory00:49
imbrandonjesus i am bad00:49
SpamapSimbrandon: I am your debugger00:49
SpamapSimbrandon: perhaps consider variables rather than repetitive hard coding as a strategy to mitigate mt. dew induced type-o impact00:50
SpamapSimbrandon: or maybe Mavis Beacon? :)00:50
* SpamapS will stop going all alpha-dog on imbrandon now :)00:51
imbrandonall pushed00:51
imbrandonheheh00:51
imbrandonnp00:51
imbrandoni deserve it most of the time :)00:51
imbrandonincluding now00:51
SpamapS2012-05-01 17:51:24,404 unit:newrelic-php/0: hook.output INFO: Starting New Relic Proxy Daemon: newrelic-daemon00:51
SpamapS2012-05-01 17:51:25,412 unit:newrelic-php/0: hook.output INFO:  FAILED00:51
imbrandonno lic key00:51
imbrandonlikely00:51
SpamapSI did set one, I think00:52
SpamapSperhaps not in the confusion00:52
bkerensaSpamapS: Would you like to share some examples of your ninja variables work in a charm? :D00:52
bkerensaexamples accepted00:52
SpamapSA=speling00:53
imbrandonlol00:53
SpamapSecho "I suck at $A even when I'm competing in a $A bee"00:53
SpamapSStarting New Relic Proxy Daemon: newrelic-daemon OK00:54
imbrandonshaweet00:54
SpamapSimbrandon: one weakness..00:55
SpamapSimbrandon: it doesn't restart apache00:55
imbrandonyea i thought about that00:55
SpamapSimbrandon: seems like you could just restart any that are running.00:55
imbrandoni would need tro know any way php could be installed and start apache nginx php-fom00:55
imbrandonetc00:55
SpamapSimbrandon: thats what the scope: container relationships are for00:56
imbrandon?00:56
imbrandonit stil dont help me to know the type i need to restart00:56
SpamapSimbrandon: you can have one interface: php-app-server ... and then the charms that implement it can feed back things like what service to restart00:56
imbrandonoh yea00:56
imbrandonthat way00:56
imbrandonyea that was the "comming soon" thing we mentioned00:57
imbrandonbtw you should be able to refresh the page once or twice and it start feeding data00:57
imbrandonits almost realtime00:58
SpamapSI don't see any data yet01:00
SpamapSbut, it appears to be working basically01:00
imbrandonmake sure your on the apps tab01:01
imbrandonand not the system one01:01
imbrandonat the top left01:01
SpamapSimbrandon: thats pretty impressive01:01
imbrandon:) the sysmon one will fill in the system tab01:01
imbrandonetc01:01
imbrandonthen ruby and python01:02
imbrandonet al01:02
SpamapSimbrandon: I wonder if we shouldn't just make a "newrelic" subordinate and have each different app type installable via relation or config01:02
imbrandonwell i thought about that for the apps but figured it would be configin01:02
imbrandonconfusing*01:03
SpamapSthe reason I like doing it that way is that you can have one place for your key.. one place to upgrade01:03
SpamapSoh also, I'd recommend calling the config option just 'key'01:03
imbrandonstil all uses /etc/newrelic.cfg01:03
imbrandonor whatever01:03
imbrandonkk01:03
SpamapSno reason to prefix it when it is already namespaced into the charm01:04
imbrandonk01:04
imbrandonso in theory01:04
imbrandonthen as long as i do them all the same01:04
imbrandonif you installed the python one now01:04
imbrandonyou would not need to mess with the key01:04
imbrandonsince i put it in the if/else01:04
imbrandonon config-change only01:05
SpamapSright01:05
imbrandonso kinda the same just not said expliositly01:05
imbrandonbah01:05
SpamapSInteresting, it seems like it held off feeding back the massive spike that my siege created until I let the load drop01:05
imbrandonits a little behind01:05
imbrandonnot 1000% realtime01:06
imbrandonbut almost01:06
SpamapSdamn tho01:06
SpamapSdrilling down now01:06
SpamapSWe'd have been able to fire 3 people at my last place w/ this01:06
imbrandon:)01:06
SpamapSnot because they wouldn't have work to do01:06
imbrandonyea dude it rocks, and thats just the default settings01:06
SpamapSbut we'd finally be able to prove that their code was causing all the suck01:06
imbrandonif you get into the api you can set some treally cooll stuff01:07
imbrandonhttps://newrelic.com/docs/php/the-php-api01:07
SpamapSwow01:08
SpamapSwhat a PoS thinkup is01:08
imbrandonhttps://newrelic.com/docs/php/php-agent-phpini-settings#inivar-tt-top10001:08
SpamapSevery hit to index.php does show tables like '?'01:08
imbrandonheh nice01:09
SpamapSthis app wouldn't even work on mysql 5.0 .. it takes a table lock (briefly) to do that01:09
imbrandongood thing for mysql query cache01:09
imbrandonlol01:09
SpamapSbunch of lazy load insanity here01:09
imbrandonnewrelic.framework = ""01:10
imbrandonScope: PERDIR01:10
imbrandonType: String01:10
imbrandonNew Relic tries hard to automatically detect the frameworks it supports, but it can get it wrong if you are using experimental new versions or you have customized the framework. This setting can be used to manually set the framework if the auto-detection fails. This must be one of "cakephp", "codeigniter", "drupal", "joomla", "kohana", "magento", "mediawiki", "symfony", "wordpress", "yii", "zend" or "no_framework" to force no framework even if one was detec01:10
imbrandon^^ very nice01:10
SpamapSimbrandon: the mysql QCache is also a problem.. though they've finally got it working ok by splitting it up into multiple mutexes01:10
imbrandonSpamapS: yea an ppl often make it huge thinking it will help01:11
imbrandonand iit  burries them01:11
SpamapSyeah, I went through the thrashing up and down for a while at my last place before I realized turning it *OFF* actually made things better :)01:13
imbrandonand yea in like a day or so you'll get an email from $sales saying "we sent ya a tshirt, enjoy" but then takes like 2 weeks to show :)01:13
imbrandonjust fyi01:13
SpamapSI didn't give them an address yet01:13
SpamapSbut thats cool01:13
imbrandonahh ok01:13
SpamapSI'll gladly wear it, this is cool stuff01:13
imbrandon:)01:13
SpamapSSET time_zone = '?'01:14
imbrandonHAHAHA01:14
SpamapStheres one that just runs into concurrency problems01:14
SpamapS1,483 ms01:14
imbrandonwow01:14
SpamapSimbrandon: here's one thought. What about just restarting apache2 and php5-fpm .. those two would cover 99.9% of the cases where a daemon is serving PHP01:15
imbrandongood call01:15
imbrandonuntill something better01:15
imbrandonis done01:15
* imbrandon adds it01:15
imbrandonis the service apache or aoache2 ( /me dont have it installed )01:16
SpamapSapache201:16
imbrandonk01:16
SpamapSand use the service command01:16
SpamapSthat way it works even if we move it to upstart01:16
imbrandonyea i do01:16
SpamapSactually, /etc/init.d/apache2 works that way too.. so.. :-P01:16
imbrandoncuz php5-fpm will restart its self that way01:16
SpamapSbut, service > /etc/init.d/oldcrap01:16
imbrandonyea i like upstart works liek god01:17
imbrandongod == the bomb tho01:17
SpamapSimbrandon: ok, so thats my review. Change the name of the config option to 'key' and restart the services. Everything else can stay as a TODO for the future. Well done. :)01:18
imbrandonty ty and i'm pushing herer in a 30 seconds01:19
SpamapSalso what do you think about calling it newrelic01:19
imbrandonnah, its the php one , there is another that will be just newrelic01:20
SpamapSOk01:20
imbrandonthis installs the newrelic.so01:20
imbrandonsysmon will be just newrelic01:20
SpamapSWe need to grow 'replaces' and 'provides' like capabilities for charms so when we consolidate those or rename something users can get it on an upgrade-charm01:20
imbrandonas i needs absolutely nothing else01:20
SpamapSheh, 'juju dist-upgrade'01:20
imbrandonlol01:20
* SpamapS is not sure he likes the implications there01:20
SpamapSOk time to go01:21
SpamapSimbrandon: will promulgate later tonight01:21
imbrandonbrew upgrade all01:21
SpamapSfamily is home01:21
imbrandonSpamapS: ty ty01:21
imbrandonkk01:21
imbrandonSpamapS: ok pushed, for when you do get back round01:25
* imbrandon grabs some late dinner01:25
nathwillis there a no-cache option to forcibly reload a charm from the repository?01:29
nathwillwhen doing a deployment ^01:29
imbrandonhrm not sure, i think it just looks at the revision01:30
nathwillok. too bad, that would be handy01:31
imbrandonSpamapS: how far behind is the go client, as in is it useable _at all_ now and not upto feature parady or ...02:06
=== ahs3` is now known as ahs3
imbrandonSpamapS: zomg sexy .... love; why cant this be unity .... me want .... https://plus.google.com/u/0/100530892038948253747/posts02:47
SpamapSimbrandon: as I understand it, a week or two ago the go client was able to spin up ec2 instances03:40
SpamapSimbrandon: and some details about how the bootstrap will differ from the python client are being worked out03:40
SpamapSimbrandon: so, its still quite far behind, but the foundations are laid03:40
SpamapSimbrandon: FYI, there is a --upgrade option to deploy that satisfies what nathwill was asking earlier03:40
imbrandonahh03:43
imbrandonSpamapS: kk, i was thinkning about compiling the go here local and trying to kick the tires a bit , nothing serious really just see what works and dont03:44
SpamapSI tried that about 2 months ago and there was nothing, but I'm told there is at least something to play with now03:51
SpamapSimbrandon: you can also start up your own charm store ;)03:51
imbrandonoh ?>\03:59
imbrandonwith go or ?03:59
imbrandonjust in general ?03:59
SpamapSimbrandon: the charm store backend is written in go04:17
SpamapSand is in lp:juju/go/store04:17
SpamapSimbrandon: still have that bit about Locker in the copyright04:28
SpamapSoh wait no04:28
SpamapSit says newrelic now, never mind :)04:28
imbrandon:)04:29
SpamapSimbrandon: so, the provides ..04:29
SpamapSthat needs to go04:29
SpamapSunless you're going to add a hook, or explain who will require: that04:29
imbrandon... um i wantthat later04:29
SpamapSis it going to be purely for private-address/public-address ?04:29
imbrandonprobably04:30
imbrandonand unit names04:30
SpamapSimbrandon: so you don't actually have to do anything on the newrelic side of things?04:31
imbrandonand the ability to have other svc change its configs04:31
imbrandonhuh ?04:31
SpamapSimbrandon: I'm asking if its possible w/o hooks04:32
imbrandonif what is04:32
imbrandonyour not clear at all04:32
SpamapSimbrandon: that relation04:32
imbrandoni'm still very lost04:32
SpamapSYou have a relation04:32
SpamapSwith no hooks04:32
imbrandonyes04:32
SpamapSI'm questioning the value of such a thing04:32
imbrandonits for later so names and other config bits can easily be set04:33
imbrandonfrom peers04:33
SpamapSThere is an *implied* juju-info relation in all charms. https://juju.ubuntu.com/docs/implicit-relations.html04:33
SpamapSimbrandon: until you have actual hooks, just use that.04:33
imbrandonright but it wont always be juju-info that was a hack till i get php-app in all others04:33
imbrandonno then i got to go back and change it yet again04:34
imbrandonwhy04:34
SpamapSstep back, this is the provides, not the requires04:34
imbrandonyes , it proviodes a php logging interfae04:34
imbrandonit does04:34
SpamapSso, the only way an interface: can be defined is by an implementation (currently). I'm hesitant to have an interface w/o an implementation.04:35
SpamapSOh, does it like, listen on a port or something?04:35
imbrandonwhat does it hurt, and it helps by making things very clear04:35
imbrandonyes04:35
imbrandonthe daemon does04:35
SpamapSthis is uncharted territory04:35
SpamapSso tell me to F off all you want. :)04:36
imbrandonright04:36
SpamapSI'll take it well04:36
imbrandonheheh well i'm looking at it more like i'll probably use it so good to have it from the get go and it dont hurt04:36
SpamapSSo at this point, interface: newrelic-php , listens on a given port on the private-address.04:36
imbrandoninstead of doing like juju-info and then changing later04:36
imbrandonright, well right now its 127.0.0.1/unix/sockt04:37
SpamapS*doh*04:37
imbrandonbut i will have it just use one daemon and a tcp port04:37
imbrandonwhen ther is more than one04:37
imbrandoni'm still missing what why its bad to have04:37
imbrandonand i see it as good even witout a implmntation as it makes it very clear04:38
imbrandoneven in the status04:38
SpamapSIt still sounds like its a broken interface at this point.04:38
SpamapSno documentation for it..04:38
SpamapSno partner implementation04:38
SpamapSNot saying "NO"04:38
SpamapSjust asking for a good reason to keep it04:38
imbrandonand i'm asking for a good reason to ditch it04:39
SpamapSwhen it sounds like you'll have to change things in the charm to make it actually work anyway04:39
SpamapScause its broken04:39
imbrandonno it works fine04:39
imbrandonin telling me that via the meta info its a logging php infterface04:39
SpamapSthere's nothing that can relate to it04:39
imbrandonthat cant be the *only* reason for the meta info otherise why have it04:40
imbrandonand just go on whatever interfaces ahve implentations04:40
SpamapSIt is *definitely* the only reason04:40
imbrandonthen just enumerate the implmented interfaces04:40
imbrandonand ditch all the meta info04:40
SpamapSOtherwise somebody goes off and writes themselves a thing that wants to log to newrelic-php04:40
SpamapSand then they get really annoyed that it won't work04:40
SpamapSand they have no example to follow from the author04:40
imbrandonif if exposes no info for them to do so04:41
imbrandonthen they wont04:41
imbrandonand i linked the docs in the readme04:41
SpamapSSo, it doesn't say 'will-provide' logging, it says 'provides' logging. And yet, it listens on no ports.04:41
imbrandonlogging dosent have to mean it provieds to all04:41
imbrandonor on a port04:41
imbrandonit does to the app04:42
imbrandonand only the app04:42
imbrandonbut it still does04:42
imbrandonand its still an interface04:42
SpamapSthats scope: container then04:42
imbrandonits in container04:42
SpamapSYeah, so thats not relatable over the network04:42
SpamapSso add scope: container04:42
imbrandonomg04:42
imbrandonyes it is and no04:42
imbrandonit is not setup that way04:42
imbrandonthere is not a config opetion04:43
imbrandonso it is not there04:43
imbrandonfor public use04:43
imbrandonbut it IS there04:43
SpamapSWell since you can't show me how its setup, because you haven't implemented it, I stand by my -1, if for no other reaosn than primal fear of the unknown. :)04:43
imbrandonlook in the only config04:43
SpamapSthats not -1 as in, NACK for cs:04:44
SpamapSjust, -104:44
SpamapSyou're good to go for cs:04:44
imbrandon... >.<04:44
SpamapSthough I'm going to open a bug in the charm as a reminder to fix it or drop it. :)04:44
imbrandonok then i'm truely missing something04:44
imbrandonand i'll mark as wontfix unless you can tell me what the hell you mean04:45
SpamapSrelations define *network* service relationships. There is no logging network interface exposed by the installed/configured software.04:45
SpamapSso it is effectively broken04:45
imbrandonthat is not explisit04:45
imbrandonand if its 100% then we need a local relations speeled out too04:45
imbrandonmore than container04:45
SpamapScontainer == local04:46
imbrandonright this is both04:46
imbrandonnow what ?04:46
SpamapSthat would be two relations04:46
imbrandon...04:46
imbrandonreally?04:46
SpamapSone for relating via the socket04:46
imbrandonthats broken04:46
SpamapSone for relating over the network04:46
imbrandonno only one is active04:46
imbrandonat a time04:46
imbrandonor can be04:46
SpamapSThats fundamental to the way subordinates work.04:46
SpamapSThink it through04:47
imbrandonno or the thing would not work now04:47
imbrandonif that was the case04:47
imbrandonit DOES work like the way i did it04:47
imbrandonand does imply the way it is04:47
imbrandonbut if i put two04:47
imbrandonone will always be wrong04:47
SpamapSif its "both", how do you direct juju to install the charm subordinate to any given service *and* let other things log to that particular daemon? you can't because the scope defines where the charm ends up running.04:47
imbrandonbecause it installs both a php nrerelic.so that talks to a running daemon04:48
imbrandonthat so can be on any machine04:48
imbrandonone one daemon is needed04:48
imbrandonbut aman can be runniung04:48
imbrandonright now its made where many are04:48
imbrandonweach has their own04:48
imbrandonthats how its both04:49
SpamapSthat all makes sense04:49
SpamapSbut for juju, you can't have one relation that is both container scope, and not container scope04:50
imbrandoni do right now :)04:50
imbrandonor you mean i'm not intended to ?04:50
SpamapSCould be the latter.04:51
imbrandonhehe04:51
imbrandoni do think thats wrong though, for other thingas like the LB04:51
imbrandonthat might have a webserver local and remote04:51
imbrandonetc04:51
imbrandonand more not on the top of my head04:51
imbrandoncontainer/not container should be a hint not restriction04:51
SpamapSIt should work, to relate the local one to the same service it is deployed on. Thats fine, I'd encourage that sort of thing. But you can't use the unix socket without doing backflips to figure out if you are local or not.04:52
imbrandonbrb more soda04:52
SpamapS8 min, I have to go :p04:52
imbrandonokies04:52
imbrandonok so for real04:53
imbrandonadd container ? imho thats just crust04:53
imbrandonbut i will and then bitch later04:53
imbrandonvery not in line with DRY04:53
SpamapSno actually I think you should just remove it still, until you can actually make it work across the network. :)04:54
imbrandonwell even if i dont i still want it there so its explisit in the metadata04:54
imbrandoni dont think that metadat should only be for implmented services or then why have it04:54
imbrandons/servicecs/interfaces04:55
SpamapSits explicitly lying about its capabilities. Stubs are generally kept private while they're being worked on.04:55
imbrandonthats it its not a stuf04:55
imbrandonstub04:55
imbrandonbah04:55
SpamapSYeah I get it, you can force it to work by only relating it to services it is already deployed on top of04:56
SpamapSBut, you can see where I'd think that sounds a whole lot like a scope: container relationship, right?04:57
imbrandonyea i do see that04:57
imbrandonbut then thats a real limitation04:57
imbrandonwhere as if i leave it off  its not04:57
imbrandonits only a "would be better" kinda thing that is debateable04:57
imbrandonbut i DO see your point04:58
SpamapSI think eventually, I'd rather see this charm have 2 requires, and 1 provides...04:59
imbrandonugh i do gotta run a few and you'll likely be gone when i get back ( just a few minutes ) so catch ya in the morning man, openweek tomarrow with the OMG story :)04:59
imbrandonhrm that might be ok04:59
SpamapSthe 2 requires are both scope container, one is the generic juju-info .. and the other is for services which implement the php-app interface.04:59
imbrandonyea05:00
SpamapSThe provides is for network based logging into the daemon05:00
imbrandonwell then the top php need not be container05:00
imbrandonbut other than that yea05:00
SpamapSit does, because you need a way to pass local aspects05:01
imbrandonbut i need a way to gather network ones too05:01
SpamapSwithout haveing to pass the hostname, and compare it to your own, so you know you are local and not remote, and can do things like restart services.05:01
imbrandoni was thinking about making all the service restarts config options anyhow05:02
imbrandonand doing it in config-changes05:02
imbrandonthat would solve some othert issues as well05:02
SpamapSThe network ones would be via the provides interface. I assume what you want is to deploy the daemon to only one app server service, but then log to it from many other services.05:02
SpamapSThat would create issues though. The more config options that are needed to make the system work, the more one has to think about how to automate.05:03
imbrandondefaults05:03
SpamapSmuch better if it works well for 99% of use cases w/o configs05:03
imbrandonsure sane defaults05:03
imbrandonit would be more like protected class vars05:03
SpamapSdoes newrelic have any other interesting local-only data that it needs to know about your app?05:03
imbrandonis how it would be used05:04
imbrandonhrm yea05:04
imbrandonwell05:04
SpamapSI assume most of it can be gleaned from the PHP modules, so just knowing how to configure that is all you need05:04
imbrandonhrm05:04
imbrandonalot of it is set in the actualy app booptstrap code05:04
imbrandonits self05:04
imbrandonother than that it guesses or you can manualy overidse in the newrelic.ini05:05
=== avalanch_ is now known as avalanche123
imbrandonreally the main thing that NEEDS to be local is the app group anme and the app server uniq name05:05
imbrandonso like onthe omg webheads all have   "OMG-ALL;OMG-1"   "OMG-ALL;OMG-2"05:06
imbrandonetc05:06
imbrandonwhere N is $JUJU_MACHINE_ID05:06
SpamapSyeah05:06
SpamapSjuju has a nice logical model for that :)05:06
bkerensapah05:07
imbrandonthey all agrogate to one and each ahve their own05:07
imbrandonin this i set it to JUJU-ALL;$JUJU_MACHINE_NAME05:08
imbrandoni think05:08
imbrandonbut i wanna make that a config as well05:08
SpamapSthis is wher ethe juju-info relation would come in handy05:08
SpamapSwhat you really want is OMG05:08
SpamapSso add a hook that records $JUJU_REMOTE_UNIT05:09
SpamapSsince 'omg/0' is way more interesting than 'newrelic/0'05:09
imbrandonhrm, good idea05:09
SpamapSmust be my lucky day :)05:09
imbrandonhehehe05:09
imbrandonyea i'll do thhat before i sack out, doing got a lot more left in me05:10
imbrandonbut ok so is it in the store now ?05:10
imbrandonand ty ty btw05:10
imbrandonand how do i do updates ? more bugs ?05:10
SpamapSYeah I'm pushing it now as-is05:10
imbrandonsweet ty05:10
imbrandonyea i'll make a few small changes to ngiht and also try to get the other newrelic ones ( minimum python and ruby )05:11
SpamapSimbrandon: if you want to own it, I'd be good with that. We can create a team which has you + charmers in it. Or you can get some other ~charmers person to +1 you and start reviewing charms too.. :)05:11
imbrandonthte latter is what i plan05:11
imbrandonjust everyone been busy with releases05:11
imbrandonso i kinda held back05:11
SpamapSwell is this your first promulgate? I can't believe that05:12
imbrandondrupal should ahve been many05:12
imbrandonweeks ago05:12
imbrandonbut omg hit the fan05:12
imbrandon:)05:12
imbrandonand not that subs are out ( yea its been that long ) i wanna change it up some05:13
imbrandonnow*05:13
SpamapSYeah, subs are fun05:13
imbrandonbut yea i got nginx and mysql ndb05:13
imbrandonlocal05:13
imbrandonand on github05:13
imbrandonbut not ready05:13
imbrandondrupal and these newrelic ones and the omg playground05:14
imbrandon:)05:14
imbrandonok gonna run a few, youll ber gone so i'll catchg ya tom man05:14
imbrandonty ty05:14
imbrandongotta do openweek tom05:15
imbrandonheheh05:15
imbrandonmakin a slick graphic for it now05:15
imbrandonturning out much better than i had hoped05:15
SpamapScool!05:16
_mup_Bug #993027 was filed: 'juju get' needs an option to produce the same yaml that 'juju set --config' will consume <juju:New> < https://launchpad.net/bugs/993027 >05:16
imbrandonSpamapS:05:21
imbrandonstill round ?05:21
imbrandonhttp://cl.ly/GIxf05:21
imbrandonstill needs work, but nice graffic to go along with Juju: the OMG!Ubuntu story :)05:22
SpamapSsparklies05:23
imbrandonlol05:27
* imbrandon hugs photoshop05:28
_mup_Bug #993034 was filed: lxc deployed units don't support https APT repositories <juju:New> < https://launchpad.net/bugs/993034 >05:32
=== avalanch_ is now known as avalanche123
mrevelli08:10
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
koolhead17marcoceppi, ping08:36
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
mgzis there some way in juju to make it ssh to the instance IP rather than the hostname?10:13
mgz...seems not, ProviderMachine takes dns_name and private_dns_name only10:17
m_3_mgz: for some providers you might get away with adding .ssh/config that includes entries to a.) get to the bootstrap node, and b.) proxy through the bootstrap node for other instances11:10
mgzm_3_: so, my immediate problem is canonistack doesn't seem to work unless I manually edit my .ssh/config with the details of the bootstrap node11:11
mgzif that's the current expected state, I guess that's okay.11:12
m_3_mgz: yeah, afaik that's the current state of affairs with openstack installs11:12
m_3_mgz: or drive juju from "inside" the openstack cloud itself... provided you can route to the endpoint urls11:13
=== chuck_ is now known as zul
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== mapu_ is now known as mapu
_mup_Bug #993288 was filed: Provide an option to specify creation of a new instance upon deployment <juju:New> < https://launchpad.net/bugs/993288 >14:04
SpamapSbbcmicrocomputer: Confirmed your bug, good idea. :)14:12
=== daker__ is now known as daker
=== tooth_ is now known as tooth
bbcmicrocomputerSpamapS: ah cool :)14:45
=== imbrandon is now known as imbrandon2
* flepied is happy to have a working mongodb charm using his own configuration engine and having the change port test working14:53
SpamapSbbcmicrocomputer: just finished a review of your solr charm. REALLY nice work. You can ping me in here as soon as you address the issues.15:01
SpamapSflepied: Is this an evolution of the existing one, or a total rewrite?15:01
bbcmicrocomputerSpamapS: ok thanks15:01
flepiedSpamapS, it's based on the mongodb one15:01
SpamapSflepied: cool. :) If you want to propose it as a merge into the existing one we'll review that just like we review new charms.15:02
* SpamapS points in a circle at all the other ~charmers members *YOU* will all review it, right?! RIGHT15:02
flepiedSpamapS, I don't think it can be used by anyone else at this point as it uses my adminkit config engine and adminkit needs to be preloaded on the image before beeing used15:04
m_3_SpamapS: right15:05
flepiedbut if someone is curious, just look at https://code.launchpad.net/~flepied/charms/precise/mongodb/adminkit15:06
m_3_argh... leaking security groups in autotesting15:27
m_3_gonna start having to use eucatools and ec2 tools to avoid things like 'cross-fingers; destroy-environment; sleep 120; destroy-environment; pray'15:28
SpamapSm_3_: something cares if there's already a group?15:29
SpamapSm_3_: perhaps you need to bump the env name15:30
m_3_yeah, that would work... but then I'd be leaking them longer-term15:31
m_3_didn't think about tmp-envs tho... good idea15:31
m_3_might be just lagging cleanup of sec grps15:31
SpamapSm_3_: its probably worth adding an option to bootstrap like --nuke-from-orbit to make sure the old env is gone before bootstrapping15:33
jimbakerm_3_, security group reuse along the lines of what was done in the go port is probably a good idea15:34
m_3_SpamapS: yeah, I did that with local providers (mostly remove data_dir)15:34
m_3_jimbaker: yeah, we've been informed that the current way we use groups will need to be limited in ec215:34
m_3_jimbaker: simply not enough available to really scale15:35
jimbakerm_3_, right15:35
SpamapSOH, does ec2 actually hvae a limit?15:35
m_3_SpamapS: but I'll have to do something different to nuke envs in ec2/openstack... hence the ec2tools/eucatools... perhaps15:36
m_3_SpamapS: longer quiet periods between tests don't seem to suffice15:36
SpamapSm_3_: sounds like a job for jitsu :)15:36
m_3_SpamapS: yup!15:36
m_3_SpamapS: all this stuff's going into jitsu15:37
SpamapSwerd15:37
SpamapSI need to finish getting the stable releases -> ppa automated15:37
lynxmanjcastro: ping15:41
_mup_Bug #993372 was filed: terminate-machine should accept an option for --all-unused <juju:New> < https://launchpad.net/bugs/993372 >15:50
AlanBellhi all, I am having a problem with juju bootstrap, I have rebooted, but I still get error: internal error Network is already in use by interface virbr017:15
AlanBellI do have virtualbox installed if that is relevant17:15
AlanBellI just added myself to the libvirtd group and it worked \o/17:18
AlanBellmaybe it should do that automatically?17:18
koolhead17AlanBell, file a bug if you think something is missing :)17:19
SpamapSAlanBell: when you install libvirt-bin, all administrators are added to that group17:19
AlanBellI am an administrator (single user default precise desktop installed yesterday)17:20
SpamapSAlanBell: though it sounds like juju needs to explicitly check for that group membership.17:20
AlanBellhmm, so running juju with no arguments should create ~/.juju/environment.yaml?17:23
AlanBellit doesn't17:23
AlanBellI set up the environment.yaml manually, it seems to run without error but very very fast and I don't think it is doing anything http://paste.ubuntu.com/962806/17:30
AlanBellhere is my environments.yaml http://paste.ubuntu.com/962809/17:31
SpamapSAlanBell: it takes a long time to build the first container17:34
AlanBellthen again, it may have actually worked17:34
AlanBellgosh, it did17:34
SpamapSAlanBell: has to bootstrap mini-ubuntu .. and then install juju on top of that17:34
AlanBellI installed an SSD yesterday, not used to the speed and silence, didn't realise it was doing stuff!17:35
AlanBellI appear to have a working wordpress install17:35
SpamapSYeah SSD's suddenly rob you of the scratchy sound of "I'm Busy"17:37
SpamapSAlanBell: woot17:37
AlanBellso where are these virtual machines it created? they are not in ~/.juju or the environment working directory ~/Projects/juju17:41
AlanBellthere is stuff in there, but only 264k17:41
SpamapS/var/lib/lxc17:41
AlanBell2GB of stuff there, that sounds about right17:42
SpamapSyeah, I think its about 600MB per container usually17:46
=== benji is now known as Guest45135
=== benji___ is now known as benji
jcastroSpamapS: can you review and promulgate something? We're 1 away from 70. :)19:08
_mup_Bug #993492 was filed: Wrong error message when calling remove-relation with a subordinate charm <juju:New> < https://launchpad.net/bugs/993492 >19:29
SpamapSjcastro: I'm reviewing dokuwiki right now actually19:37
SpamapSjcastro: and solr is very close :)19:37
* SpamapS rings the bell20:03
SpamapSdokuwiki promulgated20:03
SpamapSjcastro: ^^20:03
marcoceppiI thought we had a glouster charm?20:06
SpamapSI think somebody was messing with that20:06
SpamapSIt really needed subs20:06
SpamapSSame w/ ceph really. I need to write a ceph-client sub20:07
SpamapSwe should probably start slow w/ an NFS-client sub20:07
SpamapSI really just want to sit and rewrite half the old charms I wrote to be way more awesomer w/ subs.20:08
marcoceppiSpamapS: that's kind of what I need now20:09
marcoceppia Glouster like sub20:10
marcoceppiI guess it's about time it gets written20:10
marcoceppiSpamapS: can subs open ports yet?20:11
SpamapSmarcoceppi: no :(20:15
marcoceppiSpamapS: it's too bad, Glouster would be really easy to charm if I could just open those ports20:20
marcoceppiI wonder why it doesn't actually work20:21
SpamapSmarcoceppi: wait, why do you need to open ports?20:22
SpamapSmarcoceppi: thats only for *external* access20:22
marcoceppiDUH20:22
* marcoceppi is so silly20:22
SpamapSmarcoceppi: for a client.. you don't need anybody accessing their local gluster daemons :)20:23
marcoceppiSo, next question, if a charm is a sub, and I juju add-unit to the parent of the sub, will the sub be re-deployed on the new unit (I assume yes) and if so will the peer relation be fired?20:24
SpamapSmarcoceppi: yes20:28
SpamapSmarcoceppi: do you believe in magic? :)20:29
marcoceppiSpamapS: http://i.imgur.com/f2qPJ.jpg20:29
* SpamapS lols, like, literally20:30
marcoceppiI think I'm going to end up writing three charms just to author this one charm20:42
SpamapSmarcoceppi: awww yeah thats how the sexy charmers do it, http://on.mtv.com/IYDYWJ20:45
marcoceppiawwww yeah20:47
nathwilli... this falls under the category of "can't unsee"20:51
* nathwill shudders20:51
SpamapS:-D20:56
SpamapSnathwill: awwwwwwwwwyeah20:56
_mup_Bug #993552 was filed: Charm store should automatically close any bugs marked using '--fixes' when charm is published. <juju:New> < https://launchpad.net/bugs/993552 >21:01
_mup_Bug #993557 was filed: Charm store should delete charms that have been removed. <juju:New> < https://launchpad.net/bugs/993557 >21:08
gmbHi folks. juju deploy is telling me that a charm doesn't exist in a local repository. AFAICT, it does - and juju was working before an update & reboot. How can I debug this problem?22:42
gmbs/and juju/this juju deploy command/22:42
SpamapSgmb: pastebin?22:46
gmbSpamapS, http://pastebin.ubuntu.com/963475/22:48
SpamapSgmb: and I assume under /home/graham/launchpad/workspace/juju-charms/precise , you have a dir named 'launchpad-clinic' ?22:48
SpamapSgmb: whose metadata.yaml also has name: launchpad-clinic ?22:49
gmbOh, big hairy arse.22:50
gmbSpamapS, I forgot I'd renamed the charm but not updated metadata.yaml. Thanks :)22:50
SpamapSthat name: bit will bite you ever time. I just added a charm proof rule to warn people22:50
gmbAwesome, ta.22:50
_mup_Bug #993616 was filed: We should ship a boilerplate environments.yaml. <juju:New> < https://launchpad.net/bugs/993616 >22:53
SpamapSmarcoceppi: hey, been reading a few of your reviews. start/stop are not just for the here and now of charms. They're separate hooks from install because they are meant to be run when units are migrated between hosts or rebooted.23:23
SpamapSmarcoceppi: at the moment, they're not used, but I'd like to see new charms implement them as their own, independent entities that can be run at any time.23:23

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