/srv/irclogs.ubuntu.com/2012/03/11/#juju.txt

=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== asavu_ is now known as asavu
antonohi all13:21
antonocharm for statusnet is broken somehow13:21
antonoanyone managed to use it succesfully?13:21
antonofirst i belive it's not idemponent... koz it fails on juju resolved --retry statusnet/X trying remove index.html that already was deleted13:22
antonoi think some automatical idemponency check for charms should be performed. otherwise charm store will be full of half-baked half-working charms.13:23
antonoand one question: can i use something other than m1.small on amazon?13:24
antonooh. there is a bug reported against statusnet charm LP#91485113:30
_mup_Bug #914851: Fails to configure when title has a space in it <statusnet (Juju Charms Collection):New> < https://launchpad.net/bugs/914851 >13:30
antonois it possible to install 2 services on 1 machine with juju?13:53
antonoeach juju deploy runs new EC2 instance. it does not look smart13:54
_mup_Bug #952262 was filed: Juju should use XDG directory layout <juju:New> < https://launchpad.net/bugs/952262 >14:08
antonoi found hwo to run other than m1.small! "default-instance-type" in config14:26
SpamapSantono: actually I think I found that it had some idempotency problems a while back yeah14:58
SpamapSantono: we do an automated install test right now14:58
antonoSpamapS: cool!14:58
SpamapSantono: http://charmtests.markmims.com/14:58
antonoi going to create generic rails charm14:58
SpamapSantono: and a lot were broken by a recent change to config.yaml handling IIRC14:59
SpamapSantono: there's already a generic rails charm14:59
antonooh, for real? :)14:59
antonohavent find it yet :)14:59
antonocan i clone all charms in one place with one command?15:00
SpamapSantono: try 'charm search rails'15:00
antonoi came from git background and not sure how to deal with submodules in bzr15:00
SpamapSantono: 'charm getall /path/to/charm/root'15:00
antonowow. cool15:01
SpamapSoh git.. :-P15:01
SpamapSantono: note that charm getall is REALLY slow15:01
antonoSpamapS: is it possible to set somehow default repository15:01
antono,15:01
antonoSpamapS: oh, bzr15:02
antono:)15:02
antonoi'd like to get all charms somwhere to ~/.local/share/juju/charms and use it as default repository... unless other location specified15:03
SpamapSantono: I'd be happy to take a patch to charm-tools to provide a way to get them all branchd from git instead of bzr.15:03
antonoSpamapS: as for me bzr is ok :)15:03
antononice to learn something new15:03
SpamapSantono: a change landed last week that takes the default --repository from $JUJU_REPOSITORYY15:04
SpamapSbzr is about 5x easier than git to learn15:04
antonoSpamapS: yep. probably yes15:04
SpamapSIt just makes it harder to rewrite history like git, so people get frustrated with it because they're used to that.15:04
antonoSpamapS: i found bzr rebase plugin :)15:05
SpamapSyeah, which is silly once you realize that the very act of doing 'bzr merge' is just like rebase, except it does not discard history.15:05
antonoSpamapS: does bzr merge put my commits on top of target branch?15:06
SpamapSantono: if you have branch A, and branch B, and you mege from B->A, then A will get one commit with all the missing changes from B.15:07
antonoSpamapS: and collocated branches is something really useful. i know they are here with bzr 2.515:07
SpamapSantono: there's a blugin for that I think now called cobzr15:08
SpamapSwritten, oddly enough, by the original architect of juju ;)15:08
SpamapSantono: http://labix.org/cobzr15:08
antonoSpamapS: not sure why but i'd like to have separate commits after merge15:08
antonoanyway. juju is way to go15:09
antonoi like it15:09
antonobut... some questions to you :)15:09
SpamapSantono: they're still there.. just wrapped up in a single commit.15:09
antonodoes it allow to run some unit on specified machine?15:10
antonoi would like to run 3 app servers and 1 db on single amazon node15:10
SpamapSantono: two answers for that15:10
SpamapSantono: either a) use the local provider on that one machine (but this means you cannot scale beyond that one machine)15:10
SpamapSantono: or b) lets go on an adventure to see if the recent 'constraints' branch allows specifying machine ids..15:11
SpamapSantono: there's also c) use my new experimental not yet landed 'charm splice' command to splice those 4 things into one charm.15:11
antonoSpamapS: thanks for your answers15:12
* antono afk for 1 hour15:12
marcoceppid) all of the above?15:18
SpamapSmarcoceppi: tell that to George Zip!15:30
antonohmm. why bzr log does not pipe output to pager by default on ubuntu?15:48
SpamapSantono: because |less is easy?15:49
antonooh noes. extra typing is totally wrong. same as expricit --repository requirement15:50
SpamapSantono: --repository is all but gone15:54
antonoSpamapS: nice :)15:55
antonosame |less should go by default15:55
SpamapSantono: antono |less is optional though.. if you want to search, | less.. if you just want to limit.. -l #15:55
SpamapSantono: its a different philosophy, but I personally hate things that push me into the pager like that. :-P15:55
antonoi love ubuntu for sane defaults... and i'ts clear why it's not piped by default in bzr. but on linux it could be default behavior. (i should rant in #bzr probably)15:56
marcoceppibut if it goes to pager, how will I |grep -ri "stupid committer" to find all the dumb things someone did?15:59
marcoceppi:)16:00
SpamapSmarcoceppi: it would only go to pager if isatty(stdout)16:01
SpamapSits a valid, but annoying practice imo16:02
antonoand grep  works ok with bzr-pager plugin...16:02
antonoSpamapS: what do you think about charm get lp:some/charm ?16:04
SpamapSantono: charm get is a bit of a hack...16:05
SpamapSantono: its mostly for getting charms from the official repo/dev series.. if you want a specific charm.. bzr branch works. :-P16:06
SpamapSantono: the whole 'charm get*' set of commands is supposed to go away once the full charm store backend service goes live16:06
antonoaha. i saw broken requests to store.charms...16:06
antonohow can i set default environment?16:07
SpamapSantono: in environments.yaml, you can set a root element 'default: xxxx'16:07
SpamapSantono: or JUJU_ENVIRONMENT16:08
SpamapSantono: sorry, JUJU_ENV16:08
SpamapSwhich is apparently undocumented. :(16:09
antonoSpamapS: me researching the code :)16:10
SpamapSAt this point we have 2 JUJU_ environment variables affecting the cli.. and 1 in review.. we should probably make a dedicated environment variables document.16:13
antonoSpamapS: i think it should go to man juju16:14
SpamapShahahahahaha16:15
SpamapSman page16:15
SpamapSthats rich16:15
SpamapSantono: I wrote a man page once. The dev team rejected it because it wasn't auto-generated :-/16:15
antonoSpamapS: auto generated from source?16:15
antonoIs there any python solutions for such tasks?16:16
SpamapSyeah.. they want the man page to be generated from all the argparse --help output16:16
SpamapSnope16:16
SpamapSI'd have to write it myself16:16
antonogood idea16:16
antono:)16:16
SpamapSsat down to16:16
SpamapSgot disgusted with argparse16:16
SpamapSantono: btw, was the statusnet problem you saw bug 914851 ? I'm about to fix that (and add a test for it)16:17
_mup_Bug #914851: Fails to configure when title has a space in it <statusnet (Juju Charms Collection):Confirmed> < https://launchpad.net/bugs/914851 >16:17
antonoSpamapS: yes, it is16:18
antonoAlso i belive it doesnt clear /var/www on remove-unit16:18
antonoso next add-unit fails16:18
antononeed to check it16:18
antonofails due to rm /var/www/index16:19
antononow. it's obvious that just merging charms will not work16:19
antonoi mean just merge charms to run all on single machine16:19
antonoit should be some good conventions/guidlines for each charm16:20
antonowhere should it put it's files16:20
SpamapSantono: what is "remove-unit" ? ;)16:20
antonostatusnet puts all to /var/www16:20
SpamapSantono: charms were never meant to be more than 1 per server16:21
antonoSpamapS: i can only say it's bad limitation16:21
SpamapSantono: the dev team wants to use LXC so the charms are completely namespaced from eachother16:22
antonoSpamapS: yeah. thats good idea. in this case it's ok to have charm per machine16:23
antonoand it's certainly will simplyfy things a lot16:23
SpamapSantono: unfortunately, thats complicated because LXC also namespaces the network.. so you have to figure out a way to make all the charms reachable from all the other nodes. On EC2 that won't work because the network is tightly controlled.16:23
antonofrom charm-writer point of view16:23
SpamapSantono: t1.micro is pretty cheap... ;)16:24
SpamapSfor testing. And for production.. m1.small's are the only sane thing. :)16:24
antonoi use m1.micro for my blog, mail, jabber, git etc16:25
SpamapSantono: right, none of those would conflict with the splice method. :)16:27
SpamapSantono: I actually think deploy and add-unit should take a '--machine' argument.. this is agreed upon as a more generick '--placement' option but its implementation is still pending.16:29
=== hazmat` is now known as hazmat
jcastrooh cool, are you deploying status.net with the charm antono?16:35
_mup_Bug #952355 was filed: Backward incompatible change: existing env boolean values cause total failure <juju:New> < https://launchpad.net/bugs/952355 >16:39
antonojcastro: yes, just testing juju following instructions in your post16:42
antonojcastro: probably i'll make a charm for http://rstat.us/16:42
antonokoz it's better than statusnet16:42
jcastroah, cool!16:43
antonoand also support ostatus protocol16:43
jcastroyou can enter it in the charm contest! (See topic)16:43
antonojcastro: yep, i saw16:43
antonojcastro: you should also make juju documentation contest16:44
antonoi'd like to record some plain/text screencasts for juju16:44
antonolike this one: http://shelr.tv/records/4f53e3df8841ac000100000116:44
antonoso copy/paste will work and make things easier for newcomers16:45
SpamapSantono: rstat.us looks nice. :)16:45
antonoone more thing i going to charm is http://gitlabhq.com/16:46
antonoshould i put this to google doc before start?16:46
SpamapSantono: bugs.launchpad.net/charms16:46
jcastroI have a bug for gitlab16:46
jcastrogitlab would be quite awesome.16:47
SpamapSthe google doc is not really authoritative.. its just richer and easier to organize than bugs.launchpad.net16:47
jcastroSpamapS, I have a mind to just kill the gdoc16:47
SpamapScolumns are good...16:47
antonowhat do you think guys about obeying XDG spec for juju data?16:47
SpamapSantono: I saw that. Interesting idea.16:47
antonoi mean ~/.config/juju ~/.local/share/juju etc16:47
jcastrohttps://bugs.launchpad.net/charms/+bug/93183516:47
jcastrohere you go ^16:48
_mup_Bug #931835: Charm needed: Gitlab <Juju Charms Collection:New> < https://launchpad.net/bugs/931835 >16:48
antonojcastro: so i should just assign me and start?16:48
jcastrosure!16:48
antonodone :)16:49
antonoi mean assigned ;)16:49
jcastrohey nice16:49
jcastroso gitlab needs mysql and ruby16:49
jcastrowe have those charmed already16:49
antonojcastro: sqlite afaik16:49
antonoit has some slite specific sql for now16:49
jcastroah ok16:50
jcastrono worries, just as easy16:50
antonoyep.16:50
antonojust as easy as git clone + bundle install16:50
antono+ some setup for apache/nginx16:50
jcastrogitolite would be cool I think because we don't have a charm that is "I want my own git repo hotness"16:50
SpamapSjcastro: ruby isn't really "charmed"16:51
antonojcastro: why should it be charmed? :)16:51
antonoi think it should be ok with apt-get install -y ruby1.9.1-full in install hook16:52
SpamapSantono: that bit.. "+ some setup" .. thats where the charm wins :)16:52
antonoat least such things work in other charms16:52
SpamapSantono: I don't think jcastro meant what we think he meant ;)16:52
SpamapSantono: indeed, just installing the components you need in the install hook is all that is needed16:53
jcastrono I did not mean what you thought I meant16:53
jcastrosorry16:53
antonoi have some chef experience16:53
jcastroI was just thinking aloud when I saw their requirements and was like "we have that, that, and that."16:53
antonoit would be nice to reuse it in charms16:53
jcastroyou can absolutely do that16:54
jcastroI am surprised no one has tried that yet16:54
antonoit has a lot of well tested idemponent recipes16:54
antonochef/pupet recipes is a way to go for charms16:55
antonolike build blocks. tested. they have good collection of recipes16:55
antonoalso it may increase portability of charms16:55
antonokoz for now they are only debian/ubuntu16:55
SpamapSantono: yeah, do that. :)16:55
SpamapSantono: there has been *zero* interest in porting juju to other platforms.16:56
SpamapSantono: people ask if its possible, thats it16:56
jcastroI'd rather see a gitolite charm first though16:56
jcastroPeople need a slick self-hosted alternative to github!16:57
antonojcastro: right. same i do16:57
antonoi considered gitorious16:57
SpamapSantono: Maybe we're biased, being canonical people, but I think using juju means you don't have to care about which OS you're running.16:57
antonobut its hard to install16:57
antonoso charm would be nice16:57
antonolater i find gitolite16:57
jcastrothe nice thing is you can keep the charm up to date16:58
jcastroyou don't have to worry about if a package will make the ubuntu release or whatever.16:58
antonoyes. and it's much more hard to resolve all dependency hell in ruby land16:58
antonois there any plans to push usage of augtool  in charms?16:59
antonocharms in esence are very similar to less strict packaging systems like arch guys have17:00
jcastronever heard of augtool17:01
jcastrooh, the augeas thing17:01
antonoaugeas, yes17:01
antonoalmost silver bullet for configuration management17:01
jcastroI don't see any reason why you wouldn't use it if you want to in a charm17:02
antonoin all this config zoo it provides unified api at least17:02
antonohey, all! who participates charms contest?17:03
jcastrothere's been 3 or 4 so fat17:03
jcastroerr, so far17:03
SpamapSantono: I've used augtool .. I converted to creating files with appending though17:04
SpamapSantono: augeas is a neat idea.. and useful when you have multiple things influencing a config file that is complicated. But ultimately, its far more predictable to simply control the inputs, and generate the config in its entirety17:05
SpamapSjcastro: are you able to deploy stuff with r467 ?17:06
jcastroSpamapS, I only use what you give me in distro bro17:09
SpamapSahhhh17:09
antonoSpamapS: you are right. when every charm isolated in it's own container than it's easier to just fill config template with some values17:11
antonobut... augeas also have augtool get17:11
antonowich is useful... not all this sed | grep | cut stuff17:12
antonoand more reliable than shell one liners...17:12
SpamapSantono: right, but what would you be extracting from config that you don't know as a charm author?17:13
antonoright, totally predictable...17:14
SpamapSantono: and even if charms need to both influence a config file, they should both collaborate around that, not try to avoid eachother.17:15
james_whey peeps17:17
james_wwhere do we stand with subordinate charms?17:17
m_3james_w: still waiting17:24
SpamapSjames_w: landing17:24
SpamapSI believe its all in review17:24
SpamapSm_3: did you run into the new brokenheaded way that juju is verifying *ALL* of the charms in a repository?17:25
SpamapSm_3: I can't deploy anything right now.. because nearly half of the charm sin my repo have a bad boolean17:25
m_3SpamapS: still on cli from earlier in the week17:26
SpamapSstay there17:27
SpamapSI"m going to raise a Critical bug17:27
SpamapSthis is just *wrong*17:27
m_3I didn't have time to fix all of the charms this weekend...17:27
m_3task for next week!17:27
m_3dude, devopsdays has turned our submitted talks into a panel... juju,chef,puppet,crowbar,cloudformation,pallet,etc17:28
m_3whoohoo! should be entertaining17:28
SpamapSyeah sounds like fun17:29
m_3SpamapS: btw, how was your upgrade process for mactel?  it's time to bump the lappy17:30
_mup_Bug #952397 was filed: Juju is forcing *ALL* charms in a repo to be perfect to be able to deploy *any* <juju:Triaged> < https://launchpad.net/bugs/952397 >17:30
SpamapSm_3: I upgraded a *long* time ago17:31
jcastrom_3, man that sounds awesome17:31
SpamapSm_3: been working great17:31
m_3did my desktop earlier, but've been waiting on the laptop b/c of the travel17:31
m_3jcastro: picked up the gauntlet17:31
SpamapSm_3: its safe, go for it17:31
m_3I think I've got a great opener... love to run it by you guys this week17:32
jcastrofor sure!17:32
SpamapSm_3: tho I recommend unity-2d for battery life. :)17:32
SpamapSanyway, time to go enjoy my Sunday17:32
jcastro<-- pool for me, cya guys17:32
m_3enjoy17:32
m_3ha nice17:32
SpamapSif you guys run into weird "ServiceConfigValueError" , its bug 95239717:33
_mup_Bug #952397: Juju is forcing *ALL* charms in a repo to be perfect to be able to deploy *any* <juju:Triaged> < https://launchpad.net/bugs/952397 >17:33
SpamapSHopefully we can get that fixed early tomorrow17:33
m_3yeah, maybe there's a nicer way to handle type-safety too17:34
=== Leseb_ is now known as Leseb
antonoNot sure what i doing wrong... but21:14
antono juju deploy local:oneiric/mysql --repository .21:14
antono2012-03-12 00:13:57,830 INFO Searching for charm21:14
antonoInvalid value for cache: False21:14
antono2012-03-12 00:13:57,897 ERROR Invalid value for cache: False21:14
antono 21:14
antonocurrent repository contains output of charm getall21:14
antonooh. it seems i was affected by LP#95239721:27
_mup_Bug #952397: Juju is forcing *ALL* charms in a repo to be perfect to be able to deploy *any* <juju:Triaged> < https://launchpad.net/bugs/952397 >21:27
antonohmm.. where should i report ami problems? can i use alternative ami?21:34
antono2 t1.micro hangs 10 minutes after start. system log shows21:34
antono[  167.094249] 1 multicall(s) failed: cpu 021:34

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