/srv/irclogs.ubuntu.com/2012/06/19/#juju.txt

=== niemeyer_ is now known as niemeyer
lifelessSpamapS: around ?01:33
lifelessSpamapS: can you perhaps lurk in #maas, plenty of cross over i suspect, and we get lots of juju q's in there.01:33
EvilMogI have officially figured out the killer Juju app, although I doubt I can get the package maintainers to make one05:15
EvilMogJohn the ripper + MPICH205:15
EvilMogbuild a charm for that and you'd have an instant password cracking cluster, and every infosec junky would have it in their private cloud05:15
SpamapSEvilMog: I'll take that challenge05:54
EvilMogthat would be awesome05:54
SpamapSEvilMog: they're both packaged, so thats at least easy06:01
EvilMogypi06:01
EvilMogyou'll want to use the latest jtr source06:01
EvilMogthe packaged one doesn't have mpich support06:02
EvilMogneed to edit the makefile uncomment a few lines to add it in06:02
EvilMogactually I'll be honest I'd even be happy with an auto mpich setup and pre-setup the hosts files and node information for mpich206:08
SpamapSEvilMog: why isn't the latest one packaged?06:08
EvilMogbecause it changes so often06:08
SpamapSah so you're just one of those devs who thinks "latest" == "best" ;)06:08
EvilMogwhat you'd want is the latest code-train with unofficial jumbo-5 patch06:08
EvilMogtheres 2 releases, theres the stable but missing tons of features, then theres the jumbo patch which supports MPI and way more password formats06:09
EvilMogI'm just a heavy john user, and virtually every cluster I've built has used the latest code train with most recent jumbo release06:10
EvilMogthis also greatly improves crack performance06:10
SpamapSEvilMog: it just baffles my mind that an OS released < 2 months ago would have something so out of date06:10
EvilMogthe debian base package uses the stable tree06:11
SpamapSEvilMog: sounds to me like john+mpi is a fork06:11
EvilMogits not06:11
EvilMogits an official build06:11
EvilMogtheres 2 releases stable and unstable06:11
EvilMogthe debian base package uses stable06:11
SpamapSI only see "official free" and "community enhanced"06:12
EvilMogsame thing06:12
EvilMogofficial free = stable06:12
EvilMogwhich is whats packaged06:12
EvilMogcommunity enhanced is where the good stuff is06:12
EvilMogincluding all the performance enhancements06:13
SpamapSOk https://launchpad.net/~pi-rho/+archive/security seems to have jumbo-5 packaged06:14
EvilMognice06:14
EvilMogit never used to06:14
SpamapSjust have to copy that source package and verify the sources06:14
EvilMogso the only thing you neeed to do then is verify they compiled it with mpich support06:14
EvilMoghttp://openwall.info/wiki/john/parallelization06:14
EvilMogtheres 2 lines that need to be uncommented in the make file06:15
SpamapShttps://launchpadlibrarian.net/107245212/buildlog_ubuntu-precise-amd64.john_1.7.9-jumbo-5-1ubuntu1~ppa2~p_BUILDING.txt.gz06:15
EvilMogCC = mpicc -DHAVE_MPI -DJOHN_MPI_BARRIER -DJOHN_MPI_ABORT06:15
EvilMogMPIOBJ = john-mpi.o06:15
SpamapSno mention of mpich06:15
imbrandonmorning06:16
SpamapSDEB_MAKE_EXTRA_ARGS := SYSTEMWIDEFLAGS="-DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=/usr/lib/john"06:17
SpamapSEvilMog: looks like it will need some work06:17
SpamapSimbrandon: alo06:17
EvilMogyeah, I'm working on a build script06:17
EvilMogthinking wget the source, apt-get install the pre-reqs06:17
SpamapSimbrandon: You'll be excited to know I'm uploading PHP 5.4.4 to quantal right now06:17
EvilMogfind and edit makefile06:18
imbrandonsweet06:18
EvilMogthen make and install package06:18
EvilMogso if the mpich2 environment is pre-setup I can just call the build script as a post install06:18
imbrandongonna try for backport ?06:18
imbrandonahhaha06:18
SpamapSimbrandon: you already know what that will be the problem06:19
imbrandonyup06:19
SpamapSEvilMog: *edit* the makefile?06:19
SpamapSEvilMog: no wait to configure it w/ cmdline args?06:19
SpamapS-CFLAGS = -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include $(OMPFLAGS)06:19
SpamapS+CFLAGS = -c -Wall -O2 -fomit-frame-pointer -fPIC -I/usr/local/include $(OMPFLAGS) $(SYSTEMWIDEFLAGS)06:19
SpamapSthats the diff the package has06:20
imbrandonSpamapS: is there a little SpamapS yet ? hehe06:20
SpamapSimbrandon: 2 weeks old now06:21
imbrandonoh wow, i'm so behind06:21
imbrandonCongrats man06:21
SpamapSimbrandon: and this would be the 3rd child process I've forked06:21
EvilMogthat works too06:21
imbrandon:)06:21
EvilMogI'm just a very hacky analyst who does things the hard way out of ignorance06:22
EvilMoghttp://download.openwall.net/pub/projects/john/contrib/mpi/John_the_Ripper_on_a_Ubuntu_10.04_MPI_Cluster.pdf06:26
SpamapSEvilMog: the GPG key that openwall uses is pretty crusty06:27
EvilMogif that helps06:27
EvilMogmore than likely06:27
SpamapSpub   1024R/295029F1 1999-09-1306:27
EvilMogick06:28
SpamapSyeah its like they don't care06:28
imbrandon199906:28
EvilMogyou'd think the authors of hash cracking software would give a damn :P06:28
SpamapSEvilMog: actually I'd think the uathors of hash cracking software would run a single evil mirror just to see if anybody checked06:29
EvilMogsadly though I have to sneak off to work, I'll be back on in about 8 hours06:29
EvilMogyou know that would be entertaining06:29
SpamapSI have a reasonably well filled out web of trust here.. and I can't find any Debian developers who have signed it yet06:30
imbrandontime for fooood, my tummy is growling06:30
SpamapSor even any transitive06:30
SpamapSWow finally I found one like 3 levels deep thats in my keys06:36
=== zyga-afk is now known as zyga
imbrandonmmm coco-puffs06:56
SpamapSEvilMog: looks to have built fine06:59
SpamapSalright.. skeleton john the ripper charm done07:52
SpamapScomplete w/ mpich2 scale-out (hopefully)07:52
SpamapSIf I can add gluster/ceph .. I am a god ;)07:53
=== fenris is now known as Guest13007
SpamapSEvilMog: lp:~clint-fewbar/charms/precise/john/trunk  .. needs to setup the SSH keys between hosts, but mpi kinda sorta works08:51
SpamapSthinking this should just be a generic 'mpich2' charm08:51
* SpamapS goes to bed08:51
jcastrojml: the "ubuntu" charm I just recommended to you on askubuntu had some problems yesterday, I don't know if we fixed it12:41
imbrandonjcastro: what was wrong with it ?12:42
koolhead17jamespage, the Juju on LXC issue still giving issues12:48
koolhead17in one day it created good GB of logs12:49
jmljust trying to find documentation on how to set up environments.yaml for ec212:50
jmllooks like it's not in the package docs or on the wiki. trying code tree instead.12:50
imbrandonjml: https://juju.ubuntu.com/docs/getting-started.html#configuring-your-environment-using-ec212:54
jcastrojml: https://juju.ubuntu.com/docs/getting-started.html#introduction12:55
jcastroimbrandon: it didn't launch12:55
jmlta12:55
jmljcastro: how would I have found that from https://juju.ubuntu.com?12:55
imbrandonjcastro: ahh12:55
jcastroon the Documentation link12:55
jcastrobut you're right, the webpage sucks12:55
jcastrowe're supposed to have a new one12:56
imbrandonjml: there is a Documentation link on the right, but its not clear, i'm gonna try and fix that today12:56
jcastroI wonder if we can get rid of all that marketing crap on it and put the useful information12:56
* jcastro will ask12:56
jmlwhat are control-bucket and admin-secret?12:57
jcastrolook at the note underneath12:57
jcastroNote If you already have an AWS account, you can determine your access key by visiting http://aws.amazon.com/account, clicking "Security Credentials" and then clicking "Access Credentials". You'll be taken to a table that lists your access keys and has a "show" link for each access key that will reveal the associated secret key.12:58
jcastrooh12:58
jcastroI see what you mean12:58
jcastrothose are generated for you12:58
imbrandonits a s3 bucket name12:58
imbrandonif its not made it will make it for you12:58
jmlso I don't have to specify those?12:59
imbrandonyes you have to specify those but the are filled in if you followed the doc12:59
jmlimbrandon: oh right. I followed another, different doc first that had me specify a local environment.13:00
jmlfun times, eh?13:00
imbrandonhehe13:00
imbrandonright :)13:00
jcastrough, this doc needs some work13:01
imbrandonbasicly they can be anything as long as they are unique to the env13:01
jcastrothis LXC section sucks, I'll work on it today13:01
imbrandonjcastro: yes , yes it does, i've been doing bitesize chunks as i had time13:01
imbrandonheh13:01
imbrandonbut the juju.ubuntu.com wiki needs fixed as well13:02
imbrandoncan you get me access to edit that ?13:02
jmlhow do I set a default environment?13:02
jmljcastro: also, I get this on 'juju deploy ubuntu': Error processing 'cs:precise/ubuntu': entry not found13:03
imbrandonjml: add default: env-name to the top13:03
jmlimbrandon: thanks.13:05
imbrandonjml: try "juju deploy cs:~charmers/precise/ubuntu"13:06
EvilMogthanks SpammapS I'll give it a shot in the morning shortly13:06
jmlimbrandon: same problem, except cs:~charmers/precise/ubuntu13:07
imbrandonhrm13:08
jcastroyes, we noticed yesterday it was broken13:08
jmloh, that's what broken meant.13:08
jcastrojml: no unfortunately the wiki is acl'ed to ~charmers because we enable html to put whiz bang things on it13:08
jcastrojml: you should be able to bzr branch the ubuntu charm and deploy it manually13:09
jcastrobzr branch lp:charms/precise/ubuntu13:09
imbrandonjcastro: i'm in ~charmers and cant edit13:09
jcastrothen "juju deploy --repository . local:ubuntu" should work13:09
jcastroimbrandon: huh, really?13:09
imbrandonyea i tried to fix it up some over the weekend and it said i had no rights13:09
jmljcastro: thanks.13:10
jcastroimbrandon: k, I'll ask to fix that13:10
jcastrojml: when clint wakes up I'll ask him what's up with that13:10
imbrandonjcastro: rockin let me know, cuz i have time to do some fixin on it today if it get worked otu13:10
imbrandonout*13:10
jcastroimbrandon: lp:juju/docs could always use love in the meantime. :)13:11
imbrandonyup already have that open :)13:11
imbrandonbeen working on the navigation13:11
imbrandonerr secondary nav13:11
imbrandonjcastro: we should just have sphinx generate the whole juju.ubuntu.com page , its controled by the same acl ... woudlent take that much to add the front page stuff in13:17
hazmathmmm..13:17
imbrandonerr i guess its not13:17
imbrandonmorning hazmat13:18
imbrandonhazmat: what ya think ? wouldent be too much work13:19
imbrandonpkgme.net is doing it that way i see13:20
imbrandon:)13:20
jmlheh13:21
* imbrandon waves to jml :)13:21
jmljcastro: have updated the question with the qualifiers to my success.13:21
jmlI think I'm going to write something to do this for me :(13:21
jcastrojml: wait for smoser or someone else on the server team to respond13:22
jcastroyou can't be the first guy to want to do this13:22
imbrandonjml: i hadent looked at your ask question yet but there are helper tools in juju-jitsu and charm-tools13:22
jmlimbrandon: thanks. I'm not going to look those up right now, I'm afraid.13:23
jmljcastro: good call.13:23
smoserwhat are we responding to, jml13:26
smoserjcastro,13:26
jcastrosmoser: http://askubuntu.com/questions/153029/tool-to-fire-up-ec2-instance-and-ssh-in13:26
smoseri swear, this seems like a trap13:27
jcastrono, a proper trap would include getting you to maintain something new13:28
smoserimo ubuntu-ec2-run does the correct thing and lets you create security groups and pass them through.13:28
smoserjml, see kirkland's cloud-sandbox in bikeshed13:30
imbrandonhazmat: ping, any idea why the copyright at the bottom of juju.u.c/docs wont show when generated automaticly , but when i run "make html" local it shows hust fine , there is a huge diffrence in the sphinx version , maybe thats it ?13:31
imbrandons/hust/just13:31
smoserbut having a tool create a security group and upload ssh keys for you seems overkill to me.  you might as well just do those things (euca-create-group, euca-import-keypair) and then use them. having each tool do that for itself doesn't make sense.13:31
jmlsmoser: I guess I don't see why I should have to think about those things at all when a tool could just create a disposable security group and keypair and then clean up after itself.13:35
hazmatimbrandon, dunno offhand13:38
imbrandonkk13:38
hazmatimbrandon, i imagine some delta between the build steps.. but i didn't setup the j.u.c/docs build13:39
imbrandoni'll just pull the if/else out for now, was going to move the js to the bottom anyhow13:39
hazmatimbrandon, i did setup this one.. http://jujucharms.com/docs/  and the copyright shows13:39
imbrandonrockin, kk yea likely a delta in the sphinx version then13:39
hazmatimbrandon, yeah.. 0.6.4 vs 1.113:40
imbrandonand thats old :)13:40
imbrandonheh13:40
smoserwell, you're certainly welcome to write such a tool.  patches to ubuntu-ec2-run would be welcomed, although i think it would actually better fit in the bikeshed tool.  the reason being that ubuntu-ec2-run is a single "run something" command rather than a long lived environment command (which would be required to properly manage security groups and ssh keys.13:40
=== niemeyer_ is now known as niemeyer
imbrandonhazmat: btw i did split out the theme into its own13:42
imbrandonlp project under .... one sec13:42
imbrandonhttps://launchpad.net/ubuntu-community-webthemes/light-sphinx-theme13:43
hazmatsmoser, a flag to just enable web and ssh seems like a nice option without mucking with security groups, ditto for lp id  or manual specify ssh key for a key to use instead of keypairs..13:43
hazmatits not about long lived, its about convience.13:43
hazmatpatches welcome i know ;-)13:43
smoserwell, it is long lived.13:43
smoserif you're making temporary things, then you have to clean up those things.13:44
smoserand that means you have to be around when the instance terminates to cleanup13:44
hazmatsmoser, you mean the sec group as a transient thing to clean.. fair enough13:44
ToyKeeperHi, um, I'm trying to deploy a blank unit for charm development, but I'm getting 'not found' on both cs:precise/ubuntu and cs:oneiric/ubuntu.  Any idea what I'm missing?13:44
hazmatimbrandon, cool13:45
smoserhazmat, or keypairs if you were uploading them (import-keypair). but thats not necessary, really.13:45
=== zyga is now known as zyga-afk
smoser(and you're right that 'ssh-add -L' probably is going to get you the right thing by default)13:45
smoserso i guess the security group is the only thing that would need to be temporary, and fwiw, the 'default' security group can be modified to include 'ssh'13:48
smoserat which point, you13:48
jmlthere's also some prior art in lp:lp-dev-utils which creates security groups and keypairs, and cleans them up on following runs.13:50
smoseryou'd have nothing to clean up, and ubuntu-ec2-run "just works" . the one command extra that jml had to type would be "euca-authorize default -p 22".13:50
smoserin the end, i use the 'default' group13:51
smoserso tha tisn't an issue for me, and i have wrappers that specify '--key brickies' (which i agree would be a nice add to ubuntu-ec2-run)13:51
smoserwhy they default to the 'default' security group, but provide no way to default to keypairs is strange.13:52
hazmatmgz, ping14:05
mgzpong14:05
hazmatmgz, would you mind using the lbox command to submit the ostack branch?14:05
hazmatmgz, it should be a simple thing of just installing lbox , and lbox propose from within the branch14:05
mgzI'm on it, battling through go being weird about things14:05
mgzI believe I have it defeated now though14:06
hazmatmgz, k, ping me if you need any help wrt14:06
hazmatmgz, slay the dragon :-)14:06
mgzhm, don't have exp/html14:06
mgzhosted on google code after it got removed for 1.0 apparently14:08
=== hamptonpaulk_ is now known as hamptonpaulk
hazmatmgz, huh.. are you installing the package or from bzr?14:15
hazmatit should be staticallly linked in the lbox bin14:15
mgzI'm trying to build the tools myself14:16
mgzwhich has been... interesting14:16
mgzokay, done. amusing turns out you need a trunk copy of the go source anyway.14:24
mgz...and the lbox webbrowser launching script is broken?14:26
mgz...ah, nope, just couldn't cope with giving up the term to lynx.14:27
mgz...unknown files doesn't mean the branch in unclean14:29
mgzhazmat: done, not sure what exactly, but something. it posted a comment as me at least.14:30
hazmatmgz did ask you for google login info?14:31
mgznope.14:31
hazmatmgz first time round i'd run with -v.. it is reentrant/idempotent incidentally14:31
hazmatmgz.. oh.. sorry it needs a flag to enable the reitveld integration..14:32
hazmat lbox propose -cr -v14:32
=== zyga-afk is now known as zyga
mgzah, now I see that the subcommands have --help too14:32
=== salgado is now known as salgado-afk
mgz...and it failed in a fun manner14:37
mgz2012/06/19 15:35:55 error: Failed to send patch set to codereview: Issue creation errors: {'subject': [u'Ensure this value has at most 100 characters (it has 204).']}14:37
mgzhow do you spell a string slice in go...14:40
mgzdammit, there are two rietveld.go files, edited the wrong one14:51
mgzhazmat: really done now.14:56
=== bcsaller1 is now known as bcsaller
zirpuhow close is juju to being ready for production use?14:59
hazmatmgz thanks15:00
robbiewzirpu: define "production"15:02
zirpuused to build a set of instances for running a service. mostly i want to setup a set of mongodb shards and keep it running.15:03
robbiewzirpu: juju runs this -> http://www.omgubuntu.co.uk/15:03
robbiewI guess my suggestion would be to try it in a test environment, let it run a bit, and if you are satisfied with it...roll it out15:04
zirpui'll troll the bug list too. that should help me avoid gotchas etc.15:05
zirpus/troll/trawl/  oops. :-\15:07
mgztroll is valid, it might just be misconstrued15:07
m_3zirpu: we've been developing a set of practices for long-running juju environments... writing them up is stil tbd for this cycle tho15:15
m_3zirpu: most is prettymuch what you'd expect... freeze your charms, freeze juju.. the rest really depends on the number of people who're maintaining and need access/control15:17
=== salgado-afk is now known as salgado
=== zyga is now known as zyga-afk
jcastronegronjl: m_3: hazmat: we should talk velocity/oscon demo16:28
m_3yup16:28
m_3jcastro: now?  irc meeting in #ubuntu-meeting atm that I could hang "over"16:29
jcastroI think today sometime would be awesome16:29
m_3jcastro: see what's good for negronjl... I'm just charmpiloting the rest of the day16:31
* jcastro nods16:31
jcastrowhoa, holy docs queue batman16:32
james_whttp://puppetlabs.com/blog/module-of-the-week-puppetlabs-openstack/16:40
m_3jcastro: I was running off of charm-tools' review-queue16:40
m_3now I see the docs queue16:40
jcastroI don't think juan has fixed the bug in the cli tool16:41
jcastrowe only found it yesterday16:41
* m_3 face palm16:41
negronjljcastro, m_3: I'm here16:43
negronjljcastro:  what bug in which tool ... I can fix it but I've been working on the maas demo16:44
jcastroyour CLI review checker16:44
m_3negronjl: no biggie... jorge was mentioning the docs queue and I realized I was looking at the charm review-queue which didn't show them16:44
negronjljcastro:  what's the issue ( or bug number )16:44
m_3I can fix it16:44
jcastrohttps://bugs.launchpad.net/charmworld/+bug/100297716:45
negronjlm_3: thx16:45
_mup_Bug #1002977: Review queue should list lp:/juju/docs <Juju Charm Tools:Confirmed for negronjl> <charmworld:Fix Released by hazmat> < https://launchpad.net/bugs/1002977 >16:45
hazmatnegronjl, i put some notes in the bug about what i had to change16:45
m_3negronjl: when's a good time to hang on node/mongo stuff?16:45
jcastrokapil left notes there16:45
hazmatnegronjl, its slow..16:45
hazmatfor interactive usage16:45
negronjlhazmat: m_3 is going to fix the cli tool16:46
m_3I see the comment on the fix16:47
negronjlm_3: i can hangout16:48
m_3jcastro: ?16:48
jcastrocount me in!16:49
imbrandonnodejs ? /me wants on16:49
jcastroI'll start the hangout16:50
m_3spinning up the other machine (cam's still borked on this one)16:50
jcastroimbrandon: invited, come on in16:56
imbrandonhad my headset off16:57
imbrandonbah17:03
imbrandonmy connection keeps resetting17:03
imbrandoni'm just gonna not hang this time :( but yea m_3 hit me up on the node monitoring stuff after17:04
imbrandonif ya like17:04
m_3imbrandon: cool17:05
jcastronegronjl: martin's in china so I guess that means "sure, keep it."17:21
negronjljcastro: lol17:22
japagehi - is anyone else having trouble finding cs:precise/nova-cloud-controller  in the ubuntu store?18:04
hazmatm_3, you going to strange loop?18:06
m_3hazmat: not planned18:07
jimbakerhazmat, i submitted a talk for strangeloop but it was not accepted18:07
hazmatjimbaker, bummer18:09
jcastrodang18:11
jcastrothat sounded like a shoe in18:11
=== koolhead17 is now known as koolhead17|afk
m_3jcastro: we just need to keep trying... juju'll gradually get more notice18:13
m_3jcastro: gluecon rejected my proposed talks even though the conference is right on target18:13
jcastroyes, we will go until mims is like superdiamond on all airlines18:13
m_3jcastro: the cool part was that there was enought mention of juju during the conference that I'll think we'll get in next year18:13
imbrandonlol18:14
m_3that pattern's not suprising with new stuff18:14
m_3unless it's huge commercial things with big marketing budgets (i.e., not juju)18:15
SpamapSjapage: http://jujucharms.com/tools/store-missing18:15
SpamapSjapage: it is, indeed, missing18:15
japagethanks for the link SpamapS!18:15
SpamapSjapage: we are working on getting more visibility into the charm store import process18:16
SpamapSwhen I say working, I mean, we are aware of the problem18:16
SpamapSI don't think anybody is actually working on it directly. :-P18:16
hazmati've asked relevant folks about it18:16
SpamapSjapage: the charm store isn't really useful for production anyway.. since you can't fix any charm bugs18:16
hazmati'll see if i can get a more proactive tooling around the issue18:16
hazmatSpamapS, you can publish a fix with a new version at the store18:17
SpamapSwhat we really need isn't switch-charm' but 'fork-charm'18:17
SpamapShazmat: *I* can, but Users* cannot18:17
hazmatswitch-charm still seems like the right alt solution18:17
japageSpamapS : hazmat : no worries, i was giving it a test run doing evaluations of all of the different cloud stuffs.18:17
hazmatSpamapS, what's fork-charm?18:17
SpamapShazmat: production doesn't really involve letting third parties control your destiny at 3am :)18:17
hazmatSpamapS, their not upgrading your systems at 3am ;-)18:18
imbrandonwhats charmload expecting anyhow, i couldent get it to populate mongod18:18
hazmata deployed charm is cached within the env, the store isn't consulted again unless your upgrading.18:18
SpamapShazmat: fork-charm would download the charm, unpack it, bump the revisioand switch the charm18:18
hazmatimbrandon, charmload?18:18
imbrandonfrom charmstore18:19
SpamapShazmat: In the case where your site is broken at 3am, and the fault is found to be the charm, you must be able to fix the charm, and upgrade then18:19
imbrandoncharmload and charmd18:19
m_3SpamapS: isn't that what destroy-environment is for? :)18:19
SpamapShazmat: fault isn't always found at the time changes are made :)18:19
japageSpamapS : what kind of refresh rate does that tool tend to see?18:19
SpamapSjapage: 15min18:19
SpamapSI think18:19
japagecool18:19
japagejuju is a lot of magic18:20
SpamapSnah, just smoke, mirrors, and python18:20
jcastrothe charms are the magic!18:20
japagelots of python18:20
japagethanks guys, super appreciate the help18:21
imbrandonhazmat: there is like -0- documents and the only info is "run charmload <mongo addr>" after 3 hours nothing in the db still18:22
imbrandonand charmd seems to run a store, but empty without i'm guessing charmload18:22
imbrandon /charm-info?... etc all "work" but are empty18:23
hazmatimbrandon, oh.. this is the store impl18:23
SpamapSsomething definitel wrong with this xen box + tmux + irssi .. keyboard/buffer/something lags out after a few weeks18:24
imbrandonscreen ftw :)18:24
hazmatimbrandon, i set it up once.. just to experiment, it was pretty hands off afaicr18:24
* hazmat digs it up again18:24
hazmatexcept it picked the same db collection that i was using for the charm browser18:25
imbrandonyea like it shows a ton of stuff trying to get from getBranchTips, but never fills in the mongodb18:25
hazmatimbrandon, it populates the juju db / charms collection in mongodb18:25
imbrandondo i need to have created that db first ? i wouldent think so18:25
japageso, when something is MIA in the charms store, is there another way to go get that code and package it similarly for use? or should i just be patient?18:26
SpamapSperhaps we should be running our own parallel charm store to see if it has the same problems and results as the production one :)18:26
imbrandonSpamapS: heh i was just trying that18:26
SpamapSjapage: bzr branch lp:charms/precise/foo18:26
imbrandonor was getting there18:26
imbrandonheh18:26
keesSpamapS: uuuh, why does this should a 0 line delta? :P https://code.launchpad.net/~charmers/charms/precise/sbuild/trunk/+merge/11093418:27
japageawesome18:27
keescomparing the two trees clearly shows my changes. :P18:27
SpamapSjapage: put that in a dir named 'precise' under another dir which you can name anything (mine is /home/clint/charms) and then set JUJU_REPOSITORY=/home/clint/charms ... it will now be local:charms/precise/foo (assuming metadata.yaml has name: foo)18:27
hazmatimbrandon, charmload localhost:27017 is all i do18:28
hazmatit starts loading and spewing stuff on the console18:28
japageSpamapS: you rock. thanks!18:28
SpamapSkees: well, thats backwards for one (lp:charms/sbuild into your branch) .. but.. perhaps they already got merged?18:28
imbrandonhrm i dident add the port , let me try that, but yea i get a ton on console18:28
hazmatimbrandon, if its writing the console its writing to mongo18:29
hazmatits got a hardcoded db name of 'juju'18:29
imbrandonhttp 27018 on the web shows nothing in the db tho18:29
imbrandonone sec18:29
hazmatimbrandon, the data is there, try the cli18:30
imbrandonhttp://15.185.100.228:28017/18:31
keesSpamapS: ah, you're right. okay. fixed: https://code.launchpad.net/~kees/charms/precise/sbuild/trunk/+merge/11108018:32
hazmatimbrandon, http://15.185.100.228:28017/listDatabases?text=118:33
imbrandonhttp://paste.ubuntu.com/1049617/18:33
hazmatimbrandon, use the mongo cli18:33
hazmator a real front end, the data is there18:34
imbrandonk18:34
imbrandonhazmat: this is why i said it isnt18:34
imbrandonhttp://15.185.100.228:9090/charm-info?charms=cs:~charmers/precise/memcached18:35
imbrandonbut i know it loaded that key already18:35
hazmatimbrandon, ic.. it failed processing it because you have the ssh accepting all clients and it doesn't like the output18:36
hazmater. all server fingerprints18:36
imbrandonerm?18:37
hazmatimbrandon, ie you have something in your ~/.ssh/config like UserKnownHostsFile=/dev/null18:37
imbrandonyes18:37
hazmatit doesn't like that18:37
hazmatbecause it pollutes the cli output its parsing18:37
imbrandonheh wow, ok18:37
imbrandonahh18:37
* hazmat just figured that one out as well18:37
imbrandonwow, it parses the cli output ?18:37
hazmatimbrandon, yeah.. bzr is in python.. its executing the cli18:38
hazmatand then it processes it, and zip its up into mongodb gridfs18:38
hazmatand deletes the checkout18:38
imbrandonheh you would think it would just use the lp api and get json18:38
hazmatimbrandon, json for the file contents?18:38
imbrandonwell a poiinter to the revision18:39
hazmatit needs the file contents18:39
SpamapSthats why it is failing on the ubuntu charm then18:39
hazmatits assembling a zip18:39
imbrandonohh ok18:39
SpamapShazmat: probably should be rewritten to ignore unknown lines, rather than fail on them :-P18:39
imbrandonstill seems awkwasrd18:39
hazmatSpamapS, rewritten.. interesting idea18:39
hazmatSpamapS, so i think i hack up a version of this to try and figure out exactly why the store isn't loading them correctly18:40
hazmatthe alternative is grepping through stdout logs of the charmload processes18:40
hazmator having the store actually hand out that info.18:40
SpamapShazmat: we need those exposed publicly anyway18:40
SpamapSotherwise we'll never be able to maintain the store18:40
hamptonpaulkcan anyone point me to some docs on debugging relation-errors?18:40
imbrandonhazmat: ahh that worked18:43
imbrandonwell     LogLevel ERROR18:43
imbrandonworked :)18:43
SpamapShamptonpaulk: hm. I don't think there's a good definitive doc on that specific issue.18:44
SpamapSWe should actually produce an error handling document18:44
SpamapShamptonpaulk: basically you need to find the charm log18:44
SpamapShamptonpaulk: with the local provider its in your datadir, under 'user-envname/units/unit-##/unit.log'18:45
SpamapShamptonpaulk: in ec2/maas/orchestra, it will be in /var/lib/juju/units/unit-#/charm.log18:45
* hamptonpaulk checking local18:45
SpamapShamptonpaulk: Another way to go is to run 'juju debug-hooks unit/#' and then on another terminal 'juju resolved --retry unit/# relationname'18:46
SpamapShamptonpaulk: that will pop up a window where you can re-run the hook script and see the failure18:46
* SpamapS suddenly has an image of the kid from "The Sixth Sense" saying ".... I see fail"18:47
imbrandonlol18:47
hamptonpaulkSpamapS: ok, thanks. I will give it a go.18:47
tedgI'm a bit confused.  I've got a setup where I can run juju commands like status, but terminate-machine doesn't work.18:48
tedgWhat does terminate-machine do differently?18:48
SpamapStedg: nothing really18:49
SpamapStedg: it just pokes some nodes in zookeeper so the provisioning agent will terminate the machine18:49
hazmattedg, it kills a machine by id that is not in use18:49
tedgHmm, odd.  I'm getting a "ERROR SSH authorized/public key not found"18:49
tedgIt's like it's using a different account / setup than others.18:50
hazmathmm18:50
tedgDo the other commands use zookeeper?18:50
SpamapSalmost all of them18:50
SpamapScertainly status18:50
hazmatevery command does except destroy-environment and bootstrap18:50
hazmattedg, that's odd its not materially different from any of the other commands18:51
tedgHere's the stack trace if that's helpful: http://paste.ubuntu.com/1049668/18:55
tedgHuh, adding "authorized-keys-path: ~/.ssh/id_rsa" to ~/.juju/environments.yaml fixes it.18:57
SpamapStedg: you might have a ~/.ssh/config rule interfering, tho that wouldn't make much sense given that status works ;)18:59
tedgYeah, my config is basically empty except for allowing unknown keys.18:59
imbrandonhazmat: yup thats all it was, db filling in nicely now19:16
imbrandonty19:16
hazmatimbrandon, np19:17
imbrandonbtw i just added the loglevel to my ssh.conf too19:17
imbrandonso it quelches warnings19:17
imbrandoni hope 2 and 3rd runs are faster :|19:19
imbrandonSpamapS: until we start using semver or whatever when we make official builds can the bzr build number be part of the version not just +bzrXXX e.g. when 0.5.1 rolls out 0.5.1.560 assuming bzr rev 560 ? it would make my life with rpm's and osx brew much easier19:22
imbrandon( that fits into semver too iirc )19:23
SpamapSimbrandon: sure we can change that.. what official builds are you pulling into rpms and osx brew tho?19:24
SpamapSimbrandon: I'd have thought you'd just pull from lp:juju19:24
imbrandonwell i am for the osx brew for now, but i'd like to use the tarbal19:24
imbrandonso that its a known version19:24
imbrandone.g. brew allows for a --HEAD too19:24
SpamapSoh19:25
imbrandonso i can make "brew install juju" install from the tar and "brew install juju --HEAD" from lp:bzr19:25
SpamapSI hadn't considered making official tarballs19:25
imbrandonLP makes the tarbals19:25
imbrandonno biggie19:25
SpamapSoh for the ppa19:25
imbrandonyea19:25
SpamapSthats a bit of a happy accident19:25
imbrandonlol yea19:25
imbrandonworks tho19:26
SpamapSI've been thinking about splitting the PPA's19:26
SpamapSor limiting the PPA to building from a stable series19:26
imbrandonand have liek a juju/crack ppa19:26
imbrandonheh19:27
imbrandonbut yea that makes "brew install juju" install from the tar and "brew install juju --HEAD" from lp:bzr possible19:28
imbrandonand then i know exactly the version too thats installed19:28
SpamapSreally juju should have a --version for that19:29
SpamapSI'm still surprised that was never introduced :p19:29
SpamapSanyway, lunchtime19:29
imbrandonheh ttyl19:29
* imbrandon looks into how hard --version will be to add19:29
imbrandonuht ohh look out i'm doing python19:30
imbrandonheh19:30
=== salgado is now known as salgado-afk
imbrandonSpamapS: ping20:51
imbrandonSpamapS: well i poked a bit into the python just cuz i was a little bored :) got the --version added but not sure how to pull it dynamicly from setup.py20:54
imbrandonSpamapS: http://bazaar.launchpad.net/~imbrandon/juju/version-cli-option/revision/543?start_revid=54320:54
SpamapSimbrandon: I think we should flip it around, and have a juju.version21:19
SpamapSimbrandon: so  from juju.version import JUJU_VERSION21:19
SpamapSimbrandon: and have setup.py pull that in21:19
imbrandonahh ok21:20
SpamapShazmat: ^^ is that a common python idiom?21:24
SpamapSjimbaker: ^^21:24
jimbakerSpamapS, i don't know about common, but it seems reasonable enough21:27
hazmatSpamapS, i was thinking  text file21:29
jimbakerSpamapS, you are still centralizing it from a metadata perspective in setup.py, so that's good21:29
hazmatSpamapS, the upgrade branch already has that21:29
hazmata juju/version.txt21:29
hazmatthat drives a python api and can be used by tooling21:29
hazmati can merge that solo, its tiny21:29
=== salgado-afk is now known as salgado
imbrandonk21:30
SpamapShazmat: sahweet21:30
SpamapShazmat: https://bugs.launchpad.net/juju/+bug/93889921:30
_mup_Bug #938899: juju needs a '--version' option <juju:New> < https://launchpad.net/bugs/938899 >21:30
SpamapShazmat: assigning to you21:31
hazmatsounds good21:31
SpamapShazmat: thats a honolulu feature tho, right?21:31
imbrandondarn i almost killed my first juju bug :) j/k21:31
imbrandonheh21:31
hazmatSpamapS, it was just because other things where priority, but its basically done, just need to copy it over, so feel free to rearrange21:32
hazmati'll switch out else when i close it21:32
hazmatalso fixes up the python packaging (includes test data, etc)21:32
SpamapShazmat: done, and tested, are two different things :)21:33
SpamapShazmat: lets land all the stuff that is "done" in the first few days of honolulu21:33
hazmatSpamapS, the upgrade stuff uses and installs this..21:39
hazmatk21:40
SpamapShazmat: Its not that meaningful as a milestone.. so its no big deal. I just want to "release" something.21:40
imbrandonhttp://api.websitedevops.com/out.charmload21:41
imbrandongot an error that may help21:41
hazmatimbrandon, thanks21:41
hazmatthat should tell us where the errors are in mia charms21:41
imbrandonhopefully :)21:41
SpamapS2012/06/19 21:40:25 JUJU ----- lp:~charmers/charms/precise/nova-cloud-controller/trunk21:42
SpamapS2012/06/19 21:40:25 JUJU Trying to add charms [cs:~charmers/precise/nova-cloud-controller] with key "adamg@canonical.com-20120511184310-u1m6sledzutq9otb"...21:42
SpamapS2012/06/19 21:40:25 JUJU All charms have revision key "adamg@canonical.com-20120511184310-u1m6sledzutq9otb". Nothing to update.21:43
imbrandonSpamapS: this is on a secondary run21:43
nathwillworking on trying to finish the storage backend for a revamped owncloud charm.. y'all think it'd be best to use s3fs, or require an nfs instance?21:43
SpamapSimbrandon: is cs:precise/nova-cloud-controller in there?21:43
SpamapSnathwill: *both* :)21:43
imbrandonone sec , lemme check21:43
SpamapSnathwill: give s3 as one option, and nfs as another. :)21:44
imbrandonSpamapS: nope21:44
imbrandonhttp://15.185.100.228:9090/charm-info?charms=cs:precise/nova-cloud-controller21:44
nathwillSpamapS: lol. i see... :P21:44
imbrandonSpamapS: charmd running on 9090 feel free to poke away at it21:45
SpamapSimbrandon: ok, so where's the initial import log?21:45
imbrandonthat i dident redirect to the log :(21:46
imbrandoni can redo it tho21:46
imbrandonif it will help21:46
SpamapSactually21:46
SpamapSit seems that one has never been fixed21:46
SpamapSstill points at 'precise'21:46
imbrandonsome kinda 64bit int error21:47
SpamapSno this is a trunk name issue21:47
SpamapSfixing21:47
imbrandonpanic: interface conversion: interface is int, not int6421:47
imbrandonis what i was getting at21:47
SpamapSweird21:48
hazmatimbrandon, you have to kill mongodb and start over for the initial logs, it will skip things its already seen that are unchanged.21:48
hazmatcool21:48
hazmatimbrandon, nice catch21:48
imbrandonwoot :)21:48
hazmathmm. the terracotta charm has some other oddities21:49
hazmatits one of two charms using a short cut for interface declaration that's supported in pyjuju but not by charm proof, or gojuju21:49
imbrandonohh pizzahut just showed up, charmd is running on 9090 , i'll be back after foood :)21:49
imbrandonactually , one sec21:50
imbrandonroot@server-1339205906-az-1-region-a-geo-1:~# ssh-import-id hazmat21:50
imbrandonINFO: Successfully authorized [hazmat]21:50
imbrandonroot@server-1339205906-az-1-region-a-geo-1:~# ssh-import-id clint-fewbar21:50
imbrandonINFO: Successfully authorized [clint-fewbar]21:50
imbrandonroot@server-1339205906-az-1-region-a-geo-1:~#21:50
imbrandonif you need , ssh as root and byobu is running, i'm headed to eat21:51
imbrandonbox has nothing meaningfull on it21:51
imbrandonits a charm playground21:51
* imbrandon heads to eat21:51
hazmatSpamapS, actually that interface declaration short cut causes a runtime  exception in proof21:52
SpamapSOk, nova-cloud-controller should come off the MIA list now21:54
SpamapSkees: so, your changes to sbuild change the config.yaml options...21:55
SpamapSkees: the problem with that is if you have an existing deployment, your configurations are lost.21:55
SpamapSkees: we probably need a way to mark config options as deprecated, and then convert their values into the new ones (yet another use case for config-set)21:56
SpamapSperhaps somebody else could +1 this MP so we can land it in galapagos? Great change.. .really needed too.21:59
SpamapShttps://code.launchpad.net/~therve/juju/validate-config-values/+merge/10480821:59
SpamapSfixes bug 97985922:00
_mup_Bug #979859: Unable to set boolean config value via command line <juju:In Progress by therve> < https://launchpad.net/bugs/979859 >22:00
keesSpamapS: do you want me to figure out a way to deal with that, or should users of that charm just feel pain?22:01
SpamapSkees: I think an update to the README is ok22:01
SpamapSIMO we should ditch the 'revision' file and go to a 'changelog' file so each revision can actually have info with it, so upgrade-charm can display it.. but thats neither here nor there.22:02
SpamapSkees: also the package-builder relation seems poorly defined. Were you thinking of just using private-address/public-address  (so no need for hooks) ?22:03
SpamapSkees: but I think you should also keep the old values, so users can use 'charm get servicename' to get the old values and plug them into the new ones.22:03
keesSpamapS: "charm proof" yelled at me, so I figured I'd at least provide a "here I am" report22:03
SpamapSI:'s are just info.. you can safely ignore I's22:04
* kees nods22:05
imbrandoncan we relation-set on juju-info ? heh22:06
SpamapSimbrandon: probably22:08
SpamapSThat would be.. misguided.. but probably :)22:08
imbrandonheh22:08
imbrandonit would be a hack round config-set22:09
imbrandonhrm *thinks of ways to twist that into submission*22:10
=== salgado is now known as salgado-afk

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