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

ihashackspdtpatrick: do you have at least two nodes ready in your maas?01:40
imbrandonjcastro: column80 ROCKS! dude, seriously. full stop02:43
bkerensajcastro: your images are oversized :P03:53
SpamapSbkerensa: I bet you say that to all the community members...04:03
SpamapS;)04:03
bkerensaheh04:03
bkerensaSpamapS: I didnt get to meet you at UDS.... Your like a ninja04:03
SpamapSceph charm is basically totally rewritten and pointing at upstream "daily crack" repos now04:03
SpamapSbkerensa: I descended upon Oakland, and then poof! smoke bomb..04:04
imbrandonSpamapS: I totaly intended to buy a MBA today at the apple store, but degressed and got an iPad304:06
imbrandon:)04:06
imbrandoni am however looking at ways to boot an andrioid kernel on it already ( its doable but a PITA and will likely wait until some of my more important projects are done )04:07
imbrandonheh04:07
SpamapSimbrandon: haha04:08
SpamapSimbrandon: ipad3 is just a MBA w/o a keyboard and less CPU/RAM ;)04:08
imbrandonyea04:08
imbrandonwell mostly the ram04:08
imbrandoncpu its pretty comparable04:08
SpamapSoh, and a crap OS ;)04:08
imbrandona5x ( x 2 ) isnt a joke :)04:08
SpamapSNo joke, but its no i704:09
imbrandonyea , the os isnt nice, well it IS nice, but not NICE04:09
SpamapStry running vms on that a5x :)04:09
imbrandonwhoa you have a i7 in the mba ?04:09
SpamapSyeah :)04:09
imbrandonthe ones i looked at today were i3 dual core04:09
imbrandon:(04:09
imbrandonhrm04:09
SpamapSWait no I have i504:09
imbrandonthat was actually a big factor , i5 quad ?04:10
SpamapSI forget now04:10
SpamapSbeen looking at getting an i7 desktop04:10
imbrandoncuz i "intend" to use this as my mobile machine 100% , with bluetooth keyboard04:10
imbrandonand sell the MBP and give the old crappy mb to someone in need04:11
SpamapSyeah whatever floats your mobile boat :)04:11
imbrandonhrm, i may head back tomarrow for another look, they are good about returns04:11
imbrandonwell i want something ultra portable but 99% of the time is in ssh, even ios can do that04:12
imbrandonand the tablet formfactor is so nice04:12
imbrandonhonestly if the asus transformers wernt so crippled ( even more than apple ) that would be perfect imho04:13
imbrandonor a ubuntu/andriod phone with laptop "dock"04:13
imbrandonbut i think i'm ahead of the market a little bit on that one04:13
imbrandonanyhow, onto some "real" business04:14
imbrandondude i've been looking into ways to get some "all the world php" coverage04:14
imbrandonits not looking pretty at all without a whole project unto its self04:14
imbrandonunless you have some ideas that i'm missing, i may have once again put my foot into mouth BUT the more i think about it the more i like the idea be it for 5.4 or just cuz04:15
imbrandonbasicly i'm thinking it needs to be an extension of the php packing group in debian, because at minimium packing level knoledge of each project is needed to get even a smoke test , i *think*04:16
imbrandonnot that it wouldent be a good thing, but a large under taking good thing04:17
SpamapSimbrandon: indeed, you will have a hard time figuring out the url of the exposed app04:18
SpamapSbbl04:18
SpamapSanyway, I'm out04:18
imbrandonoh and i did retest the debian pkg teams ppa, apc is now fixed04:18
imbrandonl8tr04:18
imbrandonSpamapS: ( i know your out, possibly retorical question for later as I know the policy but just wondering your thoughts ) what about a "semi official but totally unofficial" PPA for 12.04 that not only is the 5.4 upgrade but a parallel install of 5.4 in /usr/local/ ( yes a .deb no no ) or /opt ( another no no ) , apache/nginx/lighttpd all support multi php version installations04:22
imbrandonsomething along the lines of multi python's ( but not technicly the same obviously but policy wise )04:23
imbrandonand even trying to put/push that into 12.10 since for the full life of 12.10 5.3 nd 5.4 will be supported04:24
* imbrandon just needs to get back on the debian and ubuntu php mailing lists04:24
bkerensa>.<04:30
imbrandonsup bkerensa04:34
bkerensanada just trying to find some packaging work ;P04:34
imbrandonbkerensa: juju charm or package package ?04:35
bkerensaimbrandon: debian package ;)04:35
* bkerensa is perhaps submitting a patch for ia32-libs-multiarch atm04:36
bkerensa:D04:36
imbrandonbkerensa: wanna try something that i'm not even 100% sure is possible but if it is should be simple-ish , brew ( homebrew ) for Linux :)04:36
imbrandonit works , havent tested it all, but its just a little bit of ruby, mostly if anything needs patches for OS X assumed paths like /Library and /private/etc VS /etc04:37
imbrandon:)04:37
imbrandoni have it on my todo list but its WAY WAY down at the bottom04:37
imbrandoni'm thinking that I can do automated testing for the OS X "port" in Ubuntu once its available04:38
imbrandonbkerensa: if you are feeling froggy here is the installer script for OS X to give you an idea, i've never done any Ruby packaging myself so no idea on the policys https://github.com/mxcl/homebrew/blob/master/Library/Contributions/install_homebrew.rb04:44
bkerensa;p04:44
imbrandonbut at one point there was a linux port attempt and all patches are now in upstream code04:45
imbrandonso if any patches at all arte nneeded its minimal04:45
bkerensaimbrandon: https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/100054104:46
bkerensa>.<04:46
_mup_Bug #1000541: ia32-libs-multiarch depends on gstreamer0.10-fluendo-mp3, causing problems when installing packages from partner <ia32-libs (Ubuntu):Triaged by vorlon> <ia32-libs (Ubuntu Precise):Triaged by vorlon> <ia32-libs (Ubuntu Quantal):Triaged by vorlon> < https://launchpad.net/bugs/1000541 >04:46
imbrandonbkerensa: did you test that it works as intended without that dep ? if so i'll review/sponsor it here in a hour or two04:47
imbrandonwell into Q i will, you'll need a bit more red tape after to get it into -updates04:48
imbrandonspecificly [Regression potential]04:48
imbrandonDropping the dependency might cause wine to FTBFS, contrary to Scott's assurances04:48
bkerensaimbrandon: yeah :) slangasek is in my loco04:50
bkerensa;p04:50
bkerensabut the issue is building it04:50
bkerensaso I can test it04:50
imbrandonbkerensa: kk i'll look in a bit and lets take the rest to -motu chan as its more relevant there04:51
bkerensakk04:51
hazmatjames_w, a client can have multiple rels of the same interface to a server just so as their named differently05:03
james_whazmat, and presumably multiple rels of different interfaces05:04
hazmatyup05:04
james_wcool, thanks05:04
* SpamapS had an aha! moment on the way back home and is now almost done making a ceph charm that does not suck07:09
SpamapSbtw we really need automatic leader election and a "service bucket" for things that need to be atomically consistent between all nodes of a peer relation07:10
hazmatSpamapS, woot re ceph charm07:11
hazmatSpamapS, doesn't charm helper have a leader election script?07:11
SpamapShazmat: it will not work07:11
hazmatand what do you mean by the latter?07:11
SpamapSwe confirmed it07:11
SpamapSrelation-list can sometimes *not* show the lowest member of a peer relationship07:12
hazmatSpamapS, huh?07:12
SpamapSI think it happens if the lowest member is lagging and hasn't started yet07:12
hazmatoh.. out of order joins07:12
hazmatSpamapS, and on the service bucket?07:13
SpamapSright, so that was my only way of semi-atomically knowing enough to pick one place to run the bootstrap bits on07:13
SpamapShazmat: ceph needs to pick a UUID for the filesystem...07:14
SpamapShazmat: right now I have to just generate it on one box..07:14
SpamapShazmat: and then the other boxes have to know which box to expect it from.. based on a config item07:14
SpamapShazmat: so a bucket that I can say something like config-set --if-empty fsid=`uuid` ;uuid=`config-get uuid`07:16
SpamapShazmat: basically the same problem.. there are things that are just global to the service that are not human generated07:16
hazmatSpamapS, so cluster wide atomic cas op07:17
hazmatoops redundant07:17
SpamapShazmat: CAS would be cool too.. but is slightly different as it implies a more stringent mode of operation. This is just "ADD"07:21
SpamapShazmat: either one would solve the problem CEPH has. Actually, ceph is doing this upstream in their network protocol because their crowbar+chef solution needs it too.07:22
SpamapShazmat: but I can see other complex storage solutions being hard to get right w/ the current peer relation scheme.07:22
SpamapShazmat: having relation-* accept -r btw, has been really helpful07:23
hazmatSpamapS, no doubt07:23
* SpamapS realizes redshift wasn't working.. turns it on, and realizes he will probably fall asleep within 20 minutes now07:24
SpamapShazmat: I'm getting around it now by having a config option to specify which unit ID to run the initialization on07:25
SpamapShazmat: and the README just states.. wait until you have added all your initial ceph monitors.. and then run 'juju set ceph-service initializing-unit=ceph-service/0'07:26
SpamapShazmat: its a one time thing, once it has run, the service can manage its own quorums and memberships07:27
SpamapShazmat: there seems to be a bug with upgrade-charm too..07:30
SpamapSservices:07:30
SpamapS  ceph-mon:07:30
SpamapS    charm: local:precise/ceph-mon-9207:30
SpamapSroot@ip-10-252-23-71:/var/lib/juju/units/ceph-mon-16/charm# cat revision07:30
SpamapS9107:30
hazmatSpamapS, hmm.. i can have a look at that in the morrow.. i'm past my bedtime07:36
hazmatSpamapS, if you could though pls grab the unit-agent log for it07:36
SpamapShazmat: I did.. I think its working normally07:36
SpamapShazmat: the version is set to the one its supposed to be07:36
SpamapShazmat: then there was an error07:36
SpamapShazmat: 'nite07:37
imbrandonok, so from the install hook ( or specificly a bash script called by the install hook ) can I config-set a variable , and assuming so is that the best way to inform a user ( juju user ) of a randomly generated admin pass or is there another way that is common/prefered ?14:07
imbrandonm_3: i'm gonna email the list with a reply but any thoughts on adding some bits to the official juju Makefile to allow a "make darwin" or similar that would generate a precompiled traditional .pkg for OS X, then we dont have the dependancy on Brew and can control easier the way Zookeeper is compiled ( default with brew has no zkpython ) and filesystem permissions on install , the two main problems I've noticed with the current way. Also I'm thinki14:12
SpamapSimbrandon: no, but I was just asking for a config-set last night. ;)14:30
SpamapSimbrandon: right now the way to communicate passwords back to the admin is juju-log14:31
imbrandonSpamapS: :(14:31
SpamapSimbrandon: I know. :-P14:31
imbrandonwhat about when another bit may need that same pass ? can i fake it by calling out to "juju config-set $service pass=$pass" ...14:32
imbrandonhrm thats nasty tho14:32
SpamapSimbrandon: perhaps we should develop a 'password safe' charm that stores all the generated passwords in a secure site that the admin can get access to. ;)14:32
imbrandonhehe , not a bad idea actually14:33
SpamapSimbrandon: for a large scale site it works.14:33
imbrandonalong with the ssh key charm too14:33
imbrandonstill gonna do that $someday14:33
SpamapSimbrandon: calling juju set would require enough access creds to find the ZK node and talk to it... not something you'll have unfortunately.14:34
imbrandonSpamapS: ok, hrm is there a way for the charm runner to see the log if they were not running debug-log at the time ?14:34
SpamapSimbrandon: juju ssh unit/# sudo cat /var/lib/juju/units/unit-#/charm.log (but that doesn't work on local provider.. doh)14:35
imbrandonSpamapS: even with access to the socket and such like a cron job ? still even so its too crufty that way14:35
imbrandonhrm, what about if i just stored it in a file that was not accessable via the webroot, then added into the readme that if they missed it in the log they need to run "blah ..."14:36
imbrandonand blah would be a one liner to ssh to the node and cat the file14:36
imbrandonassuming they have ssh key access they should have admin access14:36
SpamapSimbrandon: yeah a few charms put the admin creds in /var/lib/juju/something14:36
SpamapSimbrandon: we need config-set.. period14:37
imbrandonkk, that seem like the sensable thing to do until we grow a config-set14:37
imbrandonapart from the password safe, as that really is a good idea but maybe overkill for the lone sysadmin drupal guy14:38
imbrandonor gal14:38
imbrandonmaybe support for both at somepoint :) heh14:38
SpamapSwell we could build it into charm helper...14:38
imbrandonok, well with that bit of information "super drupal" will be ready for peer review today and hopefully promstrangulation14:39
SpamapSsweeeet14:39
imbrandonstill will have lots of interation as the nginx charm evolves but it will be in a useable form, just not as broken down into suboranates as i;d like to see it eventually14:40
imbrandoni figure i've put it off long enough though and will just need to update it as other subordnates make sense to replace bits of it14:41
imbrandonbtw i never have ask but prom my own charms is taboo correct ?14:42
imbrandoni just assumed so14:42
SpamapSnew charms need to be reviewed always14:42
SpamapSnot by the author14:42
SpamapSactually I don't think thats actually in our "policy" doc14:42
imbrandonright, i;d feel better that way anyhow, but just makin sure i was clear14:42
SpamapSwe need to get that in an rst and in VCS...14:43
imbrandonbut updates to like newrelic-php i can commit directly ? or how should that work ?14:43
SpamapSI'd say thats at your discretion14:43
imbrandonalso plain newrelic is ready for review too if you dident notice14:43
SpamapSI do request reviews for any change that isn't an obvious improvement.14:44
imbrandonkk, well if its minor stuff like i have ready to push ( readme updates and other minor misc stuff ) i'll push direct, larger changesets i'll likelly seek review just to cya14:44
imbrandonSpamapS: yea in the rst etc we can word it similar to bin-new, as in any charm thats 100% new needs non-packer review, and past that if your the maintainer listed then its your descression as you should be vetteted not to do something dumb by that point14:46
imbrandonor something along those lines14:46
* imbrandon is semi afk while he implments the passwd bits and does a few last smoke tests14:48
imbrandonSpamapS: btw if you dident see jcastro blogpost about column80.com , zomg go look, soooo nice14:49
imbrandonhrm, install hook calling out to the python REST api to run config-set , hahahah ok ok tine to just do it the dirty way and moan for go port to hurry so we can add config-set14:52
imbrandonSpamapS: btw does run-as-hook not drop you in a tmux shell like debug-hook ? i could have swore that marcoceppi showed me that it did at UDS but i could have my commands mixed up a bit as I dident take notes at the time14:54
jimbakerimbrandon, run-as-hook does not drop you into a tmux shell. but you can use it to trigger a relational hook exec, and then that could be captured by a debug-hook14:59
imbrandonahhh, did not think of that, i kept add-unit'ing15:00
imbrandonheh15:00
jimbakerso jitsu run-as-hook mysql/0 relation-set -r OUTPUT-FROM-RELATION-IDS refresh=NEW-VALUE15:00
imbrandonthe output being possibly wordpress/0 wordpress/1 mysql/015:02
imbrandon?15:02
jimbakerimbrandon, no the output of relation-ids. that would be something like db:015:02
imbrandonohhhh oh oh ok, yea brain fart15:02
jimbakerimbrandon, np15:03
imbrandonhrm thats actually pretty powerfull15:03
imbrandonerr very15:03
jimbakerimbrandon, yes. perhaps too powerful ;)15:03
imbrandonheh15:03
jimbakerrev up the chainsaw15:03
imbrandon`lol , right15:03
imbrandonok last dumb question while we're on that train of thought, so i have debug-hook open , i trigger a config-change or relation-change , the tmux opens a window but dosent actually exec anythig right ?15:05
imbrandonas in the hook never fires, it just gets ready to15:05
imbrandoncorrect ?15:05
=== marrusl_ is now known as marrusl
james_wSpamapS, hey, https://blueprints.launchpad.net/ubuntu/+spec/servercloud-q-juju-charm-unit-tests mentions 'jitsu run-tests' but does that command already exist?15:20
jimbakerimbrandon, just flipped back to this screen - what you have in that tmux window is a shell environment where everything is setup so you can type commands as if it were in a hook context15:20
jimbaker(which it actually is, just to be clear!)15:21
imbrandonjimbaker: right, i got that, just not clear on if the hook its self fires or if its stoped15:21
jimbakerimbrandon, the hook is running. but it's the tmux session itself15:22
imbrandonpre-execution15:22
jimbakernot stopped, not pre-executed. this point in time15:22
jimbakeruntil you exit the shell, the hook is still running. which means no other hooks will run as well, since the hook scheduler serializes the execution of hooks15:24
imbrandonok so the relation hook fires and the console output is dumped into my tmux window and then at somepoint i have a prompt that i can do additional task in the same context ?15:24
jimbakerimbrandon, in debug-hook mode, you are running in a hook context. you can take any action that the normal version of the hook would run. try running some relation hook commands. interact with the system in some way15:25
imbrandonok, cool, i thought when the window was presented it had preped the enviroment to run whatever hook it was about to run but stopped the execution of the hook its self prior to giving the prompt to me15:25
imbrandonyea, pretty sure i have all that down. just wasent clear on if the hook its self ever actually fired or not15:26
jimbakerimbrandon, you can also try running the normal hook script. this can be useful if it's buggy. try running it. maybe insert some extra debugging. whatever. then repeat again if that's feasible to do, until you're finished debugging15:27
imbrandon( not additional hooks , just the first )15:27
imbrandonsure, exactly15:27
james_wimbrandon, you're right about the effect15:27
imbrandonok cool, that makes things much clearer15:27
james_wimbrandon, the normal hook isn't fired15:27
imbrandonoh ok ...15:27
james_wthe subtlety is that it15:28
james_w's because the tmux window is itself being run as the hook15:28
james_wrather than what normally would be15:28
imbrandonahhh ok thats what i thought but was not clear on15:28
james_wso if you want to run the normal hook in tmux you can15:28
SpamapSjames_w: no that command is planned15:28
james_wor you can fire up nethack15:29
jimbakerimbrandon, it's subtle but very powerful once you get the hang of it15:29
james_wjuju doesn't care15:29
SpamapSjames_w: its the final piece of the puzzle for getting the per-charm tests going15:29
james_wSpamapS, ok, thanks15:29
SpamapSjames_w: re jitsu run-tests15:29
james_wSpamapS, the nagios charm is getting mighty complex, so I'd like to write some tests15:29
imbrandonahhh perfect , ok thanks james_w and jimbaker , yea i had most of it under wraps just not that last bit, but perfect15:29
james_w(in my local hacking of it)15:29
jimbakerimbrandon, cool. and remember not to cut off your foot with jitsu run-as-hook ;)15:30
imbrandonhahaha right15:30
imbrandon:)15:30
SpamapSjames_w: you can write tests now, and just put 'local:' in front of the charm name until I get around to writing a wrapper15:30
james_wSpamapS, ah, true15:31
james_wgood idea15:31
* SpamapS really wishes JUJU_DEFAULT_NS hadn't been turned into "JUJU_EVERY_WAY_WE_MIGHT_WANT_TO_OVERRIDE_CS"15:31
imbrandonheh15:31
SpamapSjames_w: export JUJU_REPOSITORY to get rid of the need for --repository15:31
james_wyep15:31
imbrandonSpamapS: does repository: work in env.y too ( i think i noticed that in the docs iirc )15:32
imbrandon# repositories:15:32
imbrandon#    - http://charms.ubuntu.com/collection/ubuntu15:32
imbrandon#    - http://charms.ubuntu.com/collection/openstack15:32
imbrandon#    - http://charms.ubuntu.com/people/miked15:32
imbrandon#    - /var/lib/charms15:32
imbrandoncrap, bad paste, was intended for pastbin , sorry15:33
imbrandonanyhow ^^ like so ?15:33
SpamapSimbrandon: no that was never implemented15:33
imbrandondarn15:34
imbrandonphone, afk brb15:35
james_walso, is it ok for a charm to execute commands sent to it from a relation?15:50
james_wnormally that would be a really bad thing to do, but maybe relations are trusted in juju?15:51
MarkDudehazmat, ping15:53
m_3imbrandon: I do like having packaging targets be part of the source, but I'm not married to the idea15:53
SpamapSjames_w: I think its a bad idea personally.15:56
SpamapSjames_w: put the commands in a package, and dictate that "its time to run those commands we both trust"15:56
SpamapSjames_w: PPA's are useful for that. :)15:57
james_wSpamapS, I think that may be too big of a hurdle in this case15:57
james_warguments to the command would be ok, but then you have to sanitise them15:57
james_wit's for saying run "check_http" with these arguments...15:57
SpamapSjames_w: thats too specific15:59
SpamapSjames_w: abstract it. "check_type=http arg=url;http://foo/bar"15:59
SpamapSjames_w: nagios is *not* the only monitoring solution16:00
SpamapSand in fact, will likely not be the most popular once we make it easy to choose :)16:00
james_wI don't want to try and write an abstract monitoring system16:00
james_wI'd love one16:00
SpamapSWhy not? you can use Nagios as your guide16:00
james_wbut I'd like to have *one* monitoring system working first16:00
SpamapSjust don't be specific with cmdline args16:00
james_wbecause that's ok for check_type=http16:01
james_wI really care about check_type=custom16:01
SpamapSnooooo16:01
SpamapSits not custom16:01
SpamapSits mysupercoolthing16:01
james_wheh16:01
SpamapSthen add support for mysupercoolthing to nagios, or make a subordinate for that plugin16:01
SpamapSotherwise, nagios will just refuse to monitor it16:02
james_wright16:02
SpamapSYou can add a passive check for it to nagios, and just leave it as UNKNOWN forever16:02
james_wbut then how do you tell nagios to actually monitor it?16:02
SpamapSthat way its obvious to an admin that nagios can't check mysupercoolthing16:02
james_wmonitor a service using the plugin16:02
james_wcheck_type=mysupercoolthing arg=what?16:02
SpamapSlike I said, you either make a subordinate for your super plugin, or you add it directly to the charm16:03
SpamapSand then when Reconnoiter becomes popular, it can't do mysupercoolthing, but thats ok16:03
james_wbecause it's then tied to the nagios plugin interface, and so we no longer have a generic monitoring solution16:03
SpamapSnot really. You probably have other monitors you want run16:04
james_wso you are proposing a "monitoring-check" interface that expects "check_type=<type> arg=<args>"16:05
SpamapSjames_w: something like that yes16:05
james_wand if the monitoring system in question doesn't know how to handle the type then it doesn't monitor it?16:05
SpamapSjames_w: *or* we go the other way and have an interface per monitor16:06
james_wbut a subordinate can't add interfaces to the primary right?16:06
SpamapSjames_w: right!16:06
SpamapSwhich is one of the reasons I don't like that plan ;)16:07
james_wheh16:07
SpamapSjames_w: the "doesn't monitor it" is just an idea that I have not thought through. It may be better that some kind of error is generated16:07
james_wso how should arg=whatever be interpreted?16:07
jcastroSpamapS: hey did we talk about subordinates opening ports at UDS?16:07
SpamapSjcastro: not really. Its a known bug that is being worked on16:07
jcastrook so nothing controversial then, whew. :)16:08
imbrandonyea i kinda came to that conclusion with the drupal charm too, i was trying to do too much all in one go, and decided to scale back and get "one monitoring system" working first then figured i could iterate as needed to get it to the sweet spot over time16:08
imbrandonjcastro: mornin ;)16:09
SpamapSjames_w: though its perfectly fine, I think, for a subordinate to be related to in this case..16:10
james_wSpamapS, ah, I guess at least for nagios the subordinate could set up the service in nagios' config directly, rather than through an interface16:11
SpamapSjuju deploy mysuperthing ; juju deploy mysuperthing-nagios-plugin ; juju add-relation my-nagios-service mysuperthing-nagios-plugin ; juju add-relation mysuperthing mysuperthing-nagios-plugin16:11
imbrandonanyone else notice the stubleupon logo is very much like the juju one, even changed its color to orange too16:11
SpamapSjames_w: perhaps an interface for non-generic plugins is a good thing16:12
SpamapSimbrandon: yeah I was shocked when I saw the orange color change. I think that was an accidental confluence ;)16:12
imbrandonhttp://su.edgesuite.net/KwIEec5utYGrKmzXYLgFzg16:13
imbrandonyea , used to be blue and green i think16:13
james_wSpamapS, that's good I think, assuming that all monitoring services will allow for a subordinate to define a new service to monitor, which they probably will16:16
james_wbecause the app charm only needs to understand the interface to monitor, and the monitoring charm doesn't need to know directly about the new check type16:17
james_wI just need to think through nrpe in this arrangement16:18
SpamapSjames_w: yeah for NRPE you can just put stuff in a place where NRPE will find it.16:19
SpamapSmuch simpler to solve w/ NRPE16:19
james_wthe tricky bit is getting nagios to monitor the service via nrpe16:19
james_wto actually do the check16:19
james_wdefining the checks is easy I think16:19
jcastroSpamapS: got a sec to talk juju debian?16:20
SpamapScheck_type=nrpe arg=...16:20
SpamapSjames_w: I think NRPE would be a subordinate actually.. its too specific to nagios16:21
SpamapSjcastro: sure16:21
james_wSpamapS, yeah, agreed16:21
james_win fact it already is :-)16:21
SpamapSjcastro: its basically just one of my bazillion TODO's for the next week or two16:21
SpamapSjames_w: yeah, so you just need to feed back the primary unit id and address info to nagios via the nrpe interface16:21
james_wto define the host?16:22
SpamapSjames_w: yeah, do it some consistent way with the "monitoring" interface so you don't end up with two versions16:23
james_wI need to think it through16:23
jcastroSpamapS: oh also, we appear to have work items unassigned on this spec: https://blueprints.launchpad.net/ubuntu/+spec/servercloud-q-juju-charm-unit-tests16:24
jcastrom_3: ^^16:24
jcastrojust pointing it out, I dunno if that was on purpose or if you guys just put those there opportunistically16:25
SpamapSjcastro: huh?16:25
m_3jcastro: nope, just haven't been processed yet16:25
SpamapSof course we have work items on that spec. :)16:26
SpamapSjames_w: btw, once you get Nagios working.. you can make add-unit on it work by farming jobs out via the nagios mod_gearman16:28
james_wooh16:28
SpamapSjames_w: scalable monitoring FTW16:28
james_wyeah16:28
james_wSpamapS, gearman has its own transport right, it's not build on rabbitmq?16:29
SpamapSjames_w: correct16:33
SpamapSits *far* simpler than AMQP16:33
james_wyeah16:33
imbrandonugh, unplaned RL detour , back in a hour or so ( hopefully )16:40
hazmatMarkDude, ping16:45
jcastrosorry for the blueprint spam fellas, just rearranging bits16:50
* MarkDude has been looking at a few of the Charms. As near as I can tell, only some of them would be relevant for Fedora16:53
MarkDudeDifferences in sytem files and such.16:53
MarkDude1. So, does the idea of folks curating the stuff that will be useful sound like a decent long term solution?16:54
MarkDude2. do you have any suggestions for a few very useful charms to include in my proposal16:54
MarkDudeKeeping in mind I am not a dev, and to some extent am known as *Fedora's Jono* :D16:55
SpamapSMarkDude: oh man, how do you wash that off? ;)16:55
* MarkDude just watched his recent video, and needs to steal the slide that said * I am not a programmer*16:55
MarkDudelol SpamapS I just figure beer as a cologne16:56
SpamapSMarkDude: The charms have remained simple because they're targetted at Ubuntu. I'm hesitant to introduce big case statements or lots of if statements to enable another platform that is for most purposes "equal" to Ubuntu for the intended task.16:56
MarkDudeSo far, the most interest I have gotten is for helping with rollouts16:57
SpamapSMarkDude: However, there may be things that one can do much simpler on Fedora.. (name one?) and for those, what might make sense is to have a store of fedora-only charms..16:57
hazmatMarkDude, realistically charms won't port16:57
SpamapSMarkDude: the beauty there would be you could deploy the fedora-only thing, and relate it to the ubuntu-only thing, and they'd just hug it out and get the job done. :)16:57
hazmatMarkDude, we need a separate collection of charms for fedora16:57
MarkDudeOk, that was my read16:58
MarkDudeA few seemed independant16:58
hazmatWe don't provide the abstractions for portability, and encourage free form tool usage.. to the extent that individual charms use portable tools they could be considered portable16:58
hazmatbut thats a case by case analysis16:58
hazmateasier to just setup a separate archive for the two and allow ad-hoc cross-pollination and portability convergence16:59
MarkDudeOk, thats why I was thinking there are most likely a few of them that would *just work*16:59
hazmati think the initial focus should just be on getting the client running well on fedora16:59
hazmatwhich is mostly just packaging afaics16:59
* MarkDude can get that part going16:59
MarkDudeand has a packager or two16:59
SpamapShazmat: I bet we could just use the current "series" thing we have now... cs:beefymiracle/foo sounds too awesome to ignore. :)16:59
MarkDudelol17:01
* MarkDude thinks his *gitbeefymiracle* is the best association I have over there17:01
* MarkDude appreciates the input (and confirmation)17:02
SpamapSMarkDude: IIRC, fedora has recently grown cloud-init capability, has it not?17:02
MarkDudeplans on now seeking out a few charms to include when I bring the proposal17:02
MarkDudeI believe so. The new project lead Robyn was chosen due to her work with the CLOUD17:03
MarkDudeShe even had a cloud hat for last FUDcon17:03
MarkDudeHmmmm, so this all means I will need to volunteer to be on approval board (or some crap like that) to help curate charms17:05
MarkDudeprolly sumthin' informal (hopefully)17:05
MarkDudeThx   SpamapS hazmat :)17:06
MarkDudeKeep an eye out for charms that relate to cloud, or rollouts if you could :) I plan on going forth next week :)17:07
imbrandonMarkDude !!17:49
MarkDudeHello imbrandon17:50
imbrandonMarkDude, hey man get me in touch with some .spec guys and i'll at minimum help with the initial "getting it running"17:50
MarkDudeSure, sounds good17:51
imbrandonthat part should be fairly simple, its the all new charm collection thats the bear17:51
* MarkDude just wanted to immerse himself in trying to understand this whole juju thing17:51
imbrandon:)17:52
MarkDudeRight now tho, the guys that a willing to help, are at FUDcon in Asia17:52
imbrandonwell pretend your a ubuntu full time user and anytime you want to type yum type apt-get instead , that should get you 80% there :)17:52
* MarkDude would also have to pretend he a full time Fedora user also ;D17:53
imbrandoneven better yet install apt for rpm as a depenancy of juju ( artificial ) and then chnage only package names in charms , hehe i dount that would work realizticly though17:54
imbrandondoubt*17:54
MarkDudeI know an Ubuntu Memebr/Fedora Ambaasador that uses aot for package management17:55
imbrandonaot ?17:55
MarkDudeapt17:56
imbrandonahhh, you type as well as i do i see17:56
imbrandonso yea, hazmat and SpamapS are def the fellas to snag when things get a bit more in debpth, but like we talked about at uds, just gettting the initial rpm built and the cli "client" app running should be fairly streight forward and i could knock it out in an afternoon if i knew a bit more about .spec files17:59
imbrandonMarkDude: ^^ but even without knowing much about them should still be semi easy for that much at least17:59
imbrandonin fact, i'm gonna snag a fedora iso to load up in vbox after i push this drupal stuff today18:01
imbrandonjust to see if i can make it work without actually making the rpm18:01
imbrandoni'm sure the deps are all available18:01
imbrandonSpamapS: wow, just got pointed the RPM howto, and its ummmm tiny, as in like 10 printed pages, I was expecting the "Debian New Maintainers Guide" heh18:08
* imbrandon wipes forehead in welcome releif18:09
imbrandonMarkDude: yea tho seriously this will get your a little kick start but i have no intentions to maintain it long term or anything so eventually you'll want to round up a fedora packer18:10
imbrandonand there will be many more harder things, but this will enable fedora users to deploy and control juju environments on aws ( same as the mac client )18:11
izdubarYep, mostly it will be sorting thru to get relevance18:14
=== Guest97304 is now known as tobin
=== izdubar is now known as MarkDude
hazmatimbrandon, http://docs.python.org/distutils/builtdist.html18:21
imbrandonzomg18:21
imbrandonhazmat: i love you18:21
imbrandonbdist_rpm18:22
hazmati get that alot ;-)18:22
imbrandonmaybe python isnt so bad ( did i say that out loud ? ) then again we;re not using it on the web just yet so i havent fully inserted foot into mouth .... yet18:22
imbrandonman if bdist_bundle existed then we could use it for OS X too, hrm ... man sooo many things to look into $someday, i wish there was 3 of me18:24
imbrandonthere is py2app but thats not really for cli apps18:25
hazmatimbrandon, there's a few of the larger python apps for osx that ship their own dmg installers ... and have src avail for the process18:31
imbrandonhazmat: yea i was actually contemplating that just today18:34
hazmatgive its cli/client nature and lack of much by way of deps.. not sure its a big deal18:34
imbrandonand had mentioned it to m_3, as it would eleminate alot of the headache ( even just the little headache ) i'm having with brew now18:34
hazmatthe only c binary dep we have is libzk/zkpython18:35
hazmatafaik18:35
imbrandonyup18:35
hazmathmm.. i guess twisted as well, but osx ships that for us18:35
imbrandonyea osx has twisted18:35
imbrandonand lucky its new enough18:35
imbrandonand with brew i have to build a special zookeeper anyhow18:35
imbrandonas the one that is default dont have the c or ptython bindings18:35
imbrandonso really i'm like 80% there, might as well go the rest of the way imho and eleminate the brew headache, it sounded good in theory but is a PITA for anything thats not super simple18:36
imbrandoni intended to send a email to the juju list stating as much as see if anyone balked but i highly doubt it18:37
imbrandonand dmg/pkg installers are easily both written in python ( i've done them in ruby too ) and buildable on other platforms very very easily18:38
imbrandonreally they are a sparse filesystem image that the dir layout and installer script is in certain directories and then the whole thing is gziped18:39
imbrandonlike a casperfs kinda18:39
imbrandonso really like a charm that is shipped via a filesystem.img(a.k.a .dmg) and then when double clicked the OS knows to run hooks/install automagicly :)18:40
imbrandonbut makes it simple to cross build18:41
imbrandonan apple .app bindle is really a directoy uncompressed and had a binary located at like18:43
imbrandonbholtsclaw@ares:~$ ls -l /Applications/Safari.app/Contents/MacOS/Safari18:44
imbrandon-rwxr-xr-x  1 root  wheel  34784 Apr 28 20:38 /Applications/Safari.app/Contents/MacOS/Safari18:44
imbrandoninstallers the same way, only .pkg's or .dmg's ( compressed ) instead of .apps18:44
imbrandonok nuff osx FSH school, me gets to work18:45
MarkDudeAwesome18:46
imbrandon360 deg Panoramic shot during the Goobuntu presentation http://360.io/jh87QX , far from perfect but uniqe and the first one I'd ever taken19:00
imbrandonSuper Colin is so uber though the cam refused to capture the awsomness and blanked that portion out :)19:01
SpamapSjcastro: hey how come you reverted the work items in servercloud-q-juju-charmstore-maintenance? I actually am already DONE with one that you marked back to TODO, and one is INPROGRESS that you set to TODO20:10
imbrandonmmm yea that reminds me , i need to gather up the few work items i snagged to update the progress and/or remind myself of them adding to my agenda where i'll be nagged constantly20:17
SpamapSjcastro: n/m .. fixed.. ;)20:17
imbrandonmost were minor but still dont wanna let them slip into cracks20:17
SpamapSimbrandon: I think anybody in ubuntu-core-dev gets tracked on status.ubuntu.com20:18
imbrandonyea20:18
imbrandon'but that dont annoy me, sms messages from google cal does :)20:18
imbrandonheh20:18
SpamapSoh that kind of reminder20:18
imbrandonyea , just personal tracking so i dont forget any of them20:19
SpamapSimbrandon: blueprint assignee will also buug you :)20:19
imbrandoni normaly set stuff like this for a weekly self reminder that annoys the hell out of me on the last day if i havent updated it, seems to work pretty well for me20:20
imbrandonoh it will ?20:20
imbrandonthat may work too20:20
imbrandonhehe20:20
SpamapSimbrandon: yes, assignee == responsible party20:20
SpamapSin theory20:20
* imbrandon can see jcastro chaising brandon down to just get the satisfaction of annoying him20:20
imbrandoni'd like to pick a few more longer term items up, not quite sure where tho, as in from more the php/lamp stack packing debian/ubuntu stuff of more deeper into juju core-ish stuff20:22
imbrandonguess i'll see in the next weeks how thta plays out20:22
imbrandoni just know my time i wont have for both, well not and be able to do well AND pay attn to charms ( dont wanna give that bit up )20:22
imbrandonSpamapS: i re-looked at my purchase of the ipad vs the mba too, i think i'm gonna stick with the ipad , plus it has good resale value should i change my mind and will be intresting to see if i can make that workflow for mobile work without too much fuss20:25
imbrandonthat and i need something to purchase itunes music/videos on now that my machines are back on linux :)20:25
imbrandonlol20:25
matsubarahi there, is there a juju way of deploying a machine with a attached storage volume on it? I know I can do it through the install hook, but I wonder if there's another way of doing it20:32
SpamapSimbrandon: There's always non-itunes music.. U1 for instance. :)21:12
=== thomi_ is now known as thomi
imbrandonheh, supose so, sooo much change tho, would make my head spin :)21:38
matsubaraSpamapS, hi, on bug https://bugs.launchpad.net/juju/+bug/811226 you mentioned a branch (https://code.launchpad.net/~clint-fewbar/ensemble/reuse-machines/+merge/67417) which is possible to start a machine with preconfigure storage. is that branch available somewhere else? I get a 404 when I click the link22:01
_mup_Bug #811226: Configurable persistent backing storage <production> <juju:Confirmed> < https://launchpad.net/bugs/811226 >22:01
SpamapSmatsubara: https://code.launchpad.net/~clint-fewbar/juju/reuse-machines22:02
SpamapSmatsubara: pretty old now.. probably would need to be re-done22:03
matsubaraSpamapS, hmm is there any other way to start a machine with a storage volume attached to it? I thought I could through the install hook but that means I'll need to upload my canonistack credentials to the machine so I can euca-* tools22:04
matsubaras/so I can/so I can use/22:05
SpamapSmatsubara: you can destroy the service that deploys on it, attach, then deploy/add-unit22:15
SpamapSmatsubara: you don't actually need that branch22:16
SpamapSmatsubara: there is a blank 'ubuntu' charm for doing this.. its broken in the store, so you have to grab it from lp:charms/ubuntu .. but then just 'juju deploy local:ubuntu' and then login, shape the machine as you want, and then destroy-service ubuntu and deploy whatever you want22:17
matsubaraSpamapS, thanks for the tip. one question, if the machines dies, I'd have to re-do the shape the machine part again, which is what I'm trying to avoid. Let me explain my use case:22:20
matsubaraSpamapS, I deploying a jenkins instance on canoistack and would like to keep JENKINS_HOME in this storage volume, so if the machine dies suddenly, I'd be able to deploy jenkins again, re-attach the volume and have all my data, configuration and jobs there22:21
matsubaras/I/I'm/22:22
SpamapSmatsubara: I wonder if we can get this done without volumes, just by using a backup/restore model22:23
matsubaraSpamapS, how would that work?22:24
=== asavu_ is now known as asavu
=== matsubara is now known as matsubara-afk
SpamapSAfter reading through the manual.. I'd really like to see a charm written with ansible if it is possible.. http://ansible.github.com/23:25
SpamapSThe hosts / ssh part isn't useful.. but I like the declarative way to say "start that service, run this command to create that file" etc. etc.23:27
hazmatwhat does that even mean?23:28
hazmatSpamapS, ansibile doesn't run in the cluster it runs on the client23:28
hazmater. provider23:28
hazmatwhile i dig it.. i'm not sure how it plays together23:29
SpamapShazmat: strip out the ssh'ing part23:29
SpamapShazmat: just run 'sh' instead of 'ssh' :)23:29
SpamapShazmat: becomes a good way to write hooks23:29
hazmatah.. in local mode23:30
hazmatSpamapS, cdist didn't float your boat?23:30
SpamapSyeah if it has that, we're set23:30
SpamapShazmat: no, its basically what we have with charm-helper-sh23:30
SpamapS+ the ssh bits23:30
imbrandonhrm yea looks like pretty nice way to write hooks actually23:30
imbrandonwell syntax and preceedure wise23:31
SpamapShttp://ansible.github.com/playbooks2.html#local-playbooks23:31
imbrandonbut dosent that kinda cut down on the "you can do anything"23:31
imbrandonwith all the yaml23:31
SpamapSimbrandon: it does.. which is the point. :)23:31
imbrandonGroup By Roles23:32
imbrandonA system can be in multiple groups. See ref:patterns. Having groups named after things like ‘webservers’ and ‘dbservers’ is repeated in the examples because it’s a very powerful concept.23:32
SpamapSyou can have any color youw ant, as long as its black23:32
imbrandonThis allows playbooks to target machines based on role, as well as to assign role specific variables using the group variable system.23:32
imbrandonnow that is nice23:32
hazmatwe'd probably need a plugin for template vars ala facter/ohai integration for rel stuff23:33
imbrandonbut but but i want the green eyed blonde , whaaaaaa you told me i could have anything !!!!23:33
hazmatalthough hopefully that's trivial w/ relation-get --json23:33
SpamapShazmat: sure, looksl ike modules are easy to write though23:33
hazmatSpamapS, yeah.. its pretty simple code23:33
imbrandonhrm what about makeeing something like this availble as a plugin type thing ?23:33
SpamapShttp://ansible.github.com/moduledev.html23:33
SpamapScould be as simple as 1 line that just execs relation-get --json $@23:34
imbrandonas in a module for juju ( non existant ) that implments the best parts of ansible but still leaves the raw "do anything" under the hood23:34
SpamapSa module for ansible, which makes it easy to template relation-get vars23:35
imbrandona module should be fairly steight forward to design in both go and python i *think* ( saying this never having tried it ) but just a litteral import module with proper naming / placement23:36
SpamapSheh they even use key=value23:36
SpamapSOk, next charm I write I'm going to experiment w/ ansible23:37
imbrandonSpamapS: oh wow and their helper tool is "jinja" ? hehe23:50
imbrandonit does look good in some ways , but i think more in the sense i want to steal some of those bits for juju ( we are fallin behind here waiting on GO ) instead of using it inside juju23:51
imbrandonbecause to be honest here if i'm gonna use it inside juju why not just use it all the way23:51
SpamapSimbrandon: because it doesn't have a notion of lifecycle management23:53
imbrandonohhhhhh23:54
SpamapSimbrandon: you have to get the order *just* right in the playbook23:54
SpamapSall serial too23:54
imbrandon"I would like (in 0.6 or whenever) for Ansible to offer a quick/dirty https server on some arbitrary port on the overlord instance, and then use a randomized secret to download files to the target from the overlord, say from the ~packages directory." i'm soooo making a subordiante to do that23:54
imbrandonSpamapS: aparently its becoming more OO in 0.5 says the author so maybe not for long23:54
imbrandona juju-locker that stores admin passwords and can transfer files to authenticated user via a web interface :) hrm , music to my ears23:56
imbrandonSpamapS: https://groups.google.com/forum/?fromgroups#!topic/ansible-project/e6ATPmFmlAk23:56
imbrandonthis definately is cool those, if nothing else to get inspired from on some of the bits they are doing right, but i think its goal is really to be juju its self unlike chef etc but more like a true clone ( probably unintentional , least i would hope )23:57
imbrandonand actually very young project, anyone with a bit more ( ok alot more ) clout than me want to reach out to Michael DeHaan and see about folding the ideas into juju that make sense and then he gets the goodness of a full team beside/behind him23:59

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