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

marcoceppiSpamapS: When you get a chance can you take a look over the Minecraft charm merge?01:53
marcoceppihttps://code.launchpad.net/~marcoceppi/charms/oneiric/minecraft/trunk/+merge/9713201:53
=== freeflyi1g is now known as freeflying
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== TheMue_ is now known as TheMue
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== asavu_ is now known as asavu
=== asavu_ is now known as asavu
=== asavu_ is now known as asavu
=== asavu_ is now known as asavu
zygahi, can I experiment with juju on my single computer?11:02
zygawithout using ec2?11:02
=== al-maisan is now known as almaisan-away
zygaaccording to the docs I cannot (it says lxc support is not ready)11:03
zygabut installing juju on precise pulled in lxc11:03
zygaso what is it?11:03
=== almaisan-away is now known as al-maisan
james_wzyga, lxc works, so you can use that13:00
james_wzyga, where did you see that it isn't ready?13:00
zygajames_w, in the official juju docs, although they keep talking about natty so they may just be old13:01
zygalet me pull the link13:01
zygajames_w, https://juju.ubuntu.com/docs/faq.html?highlight=amazon%20ec213:03
zygajames_w, "Does juju only deploy to the Amazon EC2 cloud?"13:03
james_wzyga, thanks13:04
zygajames_w, do you know of a tutorial that would allow me to learn about juju using my desktop and lxc/kvm?13:04
zygajames_w, I think those docs are out of date in other areas too: https://juju.ubuntu.com/docs/getting-started.html#running-from-ppa13:04
=== marrusl_ is now known as marrusl
james_wjuju: https://juju.ubuntu.com/CharmSchool13:05
james_werr, zyga ^13:05
zygathanks13:05
james_wjcastro, where do we file/fix those doc bugs?13:05
jcastrolp:juju/docs13:06
zygais the ppa still recommended?13:06
jcastrofor oneiric?13:08
jcastroyes, for precise, not sure.13:08
zygafor precise13:08
jcastroi've been trying to run distro as much as I can13:08
james_wI'd say run the distro version in precise13:09
james_wso that you can report problems and they can be fixed13:10
zygaon https://juju.ubuntu.com/CharmSchool I see an example local environment13:19
zygasince I want to use distro packages what should I say in juju-origin:13:20
jcastroLeaving it out should just work13:21
zygahttp://pastebin.ubuntu.com/883240/13:34
zygavirbr0 is already up13:34
zygait was up on boot13:34
zygamy /etc/network/interfaces contains static configuration for eth0 and lo, if that is relevant13:35
* zyga tries to reboot 13:40
zygaso rebooting did not help14:18
zygawhat should I do when juju fails to boostrap with "2012-03-14 15:16:01,188 ERROR Command '['virsh', 'net-start', 'default']' returned non-zero exit status 1"14:18
jamespagezyga, can you check that the account you are using is in the libvirtd group please14:32
zygajamespage, it is not14:33
zygajamespage, should that be automatic?14:33
jamespagezyga, no14:33
zygaah, I see14:33
zygasigh14:33
zygajuju should tell me that14:33
jamespagezyga, that should be in the docs and juju should tell you - please raise a bug14:33
zygareporting now14:34
jamespagezyga, TBH as soon as you add that group it will be able to see the default network (which should already exist)14:34
zygait does14:34
zygasigh14:34
zygacan I do this without logging out?14:34
=== al-maisan is now known as almaisan-away
zygahttps://bugs.launchpad.net/ubuntu/+source/juju/+bug/95511014:37
_mup_Bug #955110: juju should tell me that I'm not in libvirtd group when running juju bootstrap <amd64> <apport-bug> <precise> <juju (Ubuntu):New> < https://launchpad.net/bugs/955110 >14:37
jamespagezyga, I don't think so14:38
james_wnewgrp libvirtd14:39
zygajames_w, wow, I learned something very cool today, thanks14:40
jamespagenice14:42
jamespagezyga, hmm - the docs do actually refer to this - https://juju.ubuntu.com/docs/provider-configuration-local.html14:47
jamespagebut it would be nice for juju to check14:47
=== zyga is now known as zyga-afk
jdstrandhi, it's me again and I'm having trouble with juju lxc15:42
jdstrandI'm am trying to perform the mir for juju, but can't get it to work the way I thought it should work15:43
jdstrands/mir/mir review/15:43
jdstrandyou may recall last time I tried to do this inside a vm. today I am trying on bare-metal15:44
jdstrandhere are the commands I ran: http://paste.ubuntu.com/883423/15:47
jdstrandlooking at juju debug-log, I see:15:47
jdstrand2012-03-14 10:27:59,548 Machine:0: juju.agents.machine INFO: Started service unit wordpress/015:47
hazmatjdstrand, what's the current status output?15:47
jdstrand(it took a while to bootstrap)15:47
hazmatjdstrand, bootstrap on local doesn't do very much, it does most of the work creating the first unit15:48
hazmatand subsequent units in that env are fast (lxc-clone)15:48
jdstrandhazmat: http://paste.ubuntu.com/883430/15:48
jdstrandhazmat: I meant debootstrap15:48
jdstrandhazmat: I did notice some firewall denials on the host, which thought could be the problem. so I did: sudo ufw allow in on virbr0 from 192.168.122.0/2415:49
jdstrandhazmat: I have not exposed this yet, cause the state is still pending15:50
hazmatjdstrand, hmm15:51
hazmatjdstrand, can you ssh into the unit15:51
hazmatjdstrand, you did the firewall manipulation after launching the unit?15:52
hazmater. deploying the charm15:52
jdstrandhazmat: I only noticed the firewall denials after deploying the charm, so yes, after15:52
jdstrandI did not try to do the charm again15:52
jdstrandhazmat: is there a convenient way to get the ip address for the machine?15:53
jdstrands/machine/container/15:53
jdstrand(remember I'm still a juju noob :)15:54
hazmatjdstrand, yeah.. if the container didn't external connectivity during its setup, that would be problematic for it.. inside of $data-dir/units  there should be symlinks to the unit logs which would be helpful to see15:54
jdstrandhazmat: what is the proper way to blow away this charm, destroy-service?15:55
SpamapSjdstrand: to get the ip btw, I usually just 'grep dnsmasq /var/log/syslog'15:55
jdstrandSpamapS: ah right, this is just a libvirt thing. thanks15:56
* jdstrand is not new to libvirt15:56
SpamapSRight it uses the libvirt networking15:56
jdstrandssh ubuntu@192.168.122.145 worked15:57
SpamapSjdstrand: next thing to check is whether or not juju is running (should be, via an upstart job)15:57
SpamapSI think.. I'm not sure if that landed before or after 457, which is what is in precise15:58
jdstrandSpamapS: on the host, right?15:58
SpamapSjdstrand: there should be a unit agent running inside the container15:58
SpamapSjdstrand: and there would be a machine agent running on the host15:58
jdstrand$ ps auxww|grep juju15:58
jdstrandroot       372  0.0  0.6  34972 14036 ?        Ss   15:28   0:01 /usr/bin/python -m juju.agents.unit --logfile=/var/log/juju/unit-wordpress-0.log15:58
jdstrand(that's in the container, so yes)15:59
SpamapSyay15:59
hazmatjdstrand, yes15:59
SpamapSjdstrand: so you should also have a charm log visible on the host at ${data-dir}/${USERNAME}-${environment-name}/units/wordpress-0/charm.log15:59
jdstrandthe agent is running on the host as well16:00
hazmatjdstrand, there's a machine agent juju.agents.machine on the host that's deploying the containers + unit agents16:00
SpamapShazmat: remind me, why doesn't debug-log show install anymore?16:00
jdstrandSpamapS: no charm.log, only container.log and unit.log (a symlink)16:01
hazmatSpamapS, argh.. i thought that was fixed, it hasn't really ever done it reliably to be honest. its worth a bug report16:01
SpamapSjdstrand: oh I think unit.log is the one.16:01
hazmatyup16:01
SpamapShazmat: there's an open bug16:01
SpamapSbug #76081816:02
_mup_Bug #760818: debug log is initialized too late in the unit agent startup, to catch install/start hooks <juju:Confirmed> < https://launchpad.net/bugs/760818 >16:02
hazmatsheesh that's old16:02
* hazmat needs caffienates16:03
jdstrandSpamapS: what am I looking for in unit.log?16:05
SpamapSjdstrand: that should be the record of the install of wordpress16:06
jdstrandI do see some zookeeper errors16:06
SpamapSthe timeouts are just ZK being pedantic16:06
jdstrandit ends wth initiated connection to server [192.168.122.1:56835]16:07
jdstrandsession establishment complete on server [192.168.122.1:56835]16:07
jdstrandClosing zookeeper sessionId=0x1361181aacd0007 to [192.168.122.1:56835]16:07
jdstrandthere is nothing about wordpress16:07
jdstrand(except ZOO_INFO@log_env@662: Client environment:host.name=jamie-local-wordpress-0)16:07
SpamapSinteresting.. I guess I'm forgetting where the charm log ends up16:08
jdstrandSpamapS: perhaps destroy-service and try again now that my firewall is in order?16:08
SpamapSjdstrand: you can just 'deploy local:wordpress wp2' and keep the old one around for comparison..16:09
SpamapSjdstrand: I'm deploying here so I can jog my memory16:10
jdstrandSpamapS: so, the first time I used:16:10
jdstrandjuju deploy --repository=/usr/share/doc/juju/examples local:oneiric/wordpress16:10
jdstrandthis time I should use:16:10
jdstrandjuju deploy --repository=/usr/share/doc/juju/examples local:oneiric/wordpress wp216:10
jdstrandcorrect?16:10
SpamapSjdstrand: correct16:11
jdstrand'deploy' command finished successfully16:11
SpamapSjdstrand: naming the service after the charm is just a convenience16:11
jdstrandit still says pending16:11
* jdstrand check firewall logs again16:11
jdstranddid have some ipv6 ping denials in the forward chain...16:13
* jdstrand disables firewall and does wp316:13
SpamapSjdstrand: its entirely possible that master-customize step failed.. which would make all subsequent deploys fail. thats in ${data-dir}/user-env/units/master-customize.log16:13
SpamapShazmat: been meaning to poke you about that.. master-customize seemes to not detect errors very well16:14
jdstrandSpamapS: it looks ok16:14
jdstrandapt-get update16:15
jdstrandid ubuntu16:15
jdstrandetc16:15
jdstrandContainer Customization Complete16:15
jdstrand(of course, I think we knew that cause I could ssh into the machine)16:15
jdstrandSpamapS: after 'deply' what am I supposed to see in 'juju status'?16:16
SpamapSjdstrand: well, thats just the thing, one of the steps in the middle can fail and it still starts the containers16:16
jdstranddeploy*16:16
SpamapSjdstrand: you should see the unit wordpress/0 with a state: started16:16
SpamapSor, wp3/016:16
_mup_Bug #955209 was filed: charm.log uses 'Error' for all stderr messages <juju:New> < https://launchpad.net/bugs/955209 >16:16
jdstrandSpamapS: yeah, I've never seen that :(16:17
jdstrandSpamapS: I'll be happy to paste master-customize.log, but it looks ok16:17
SpamapShttp://paste.ubuntu.com/883485/16:18
SpamapSjdstrand: is that more like what you have?16:18
SpamapShazmat: would be nice if destroy-environment cleaned up datadir some.. I just realized mine has a ridiculous amount of cruft in it16:19
jdstrandSpamapS: yes, that is exactly what I have for wordpress/016:20
jdstrandSpamapS: wp2/0 and wp3/0 now have a public-address16:21
SpamapSjdstrand: but still pending?16:21
jdstrandSpamapS: master-customize.log: http://paste.ubuntu.com/883488/ (would be great if I could set a local mirror)16:22
jdstrandSpamapS: juju status: http://paste.ubuntu.com/883491/16:22
jdstrandoh, I just ran it again and it started!16:22
jdstrandboth wp2 and wp316:23
SpamapSyay16:23
jdstrandSpamapS: how long does it typically take for a charm to go to 'started'?16:23
SpamapSjdstrand: the local provider is particularly slow because it has to download everything as individual packages and unpack them...16:24
SpamapSjdstrand: with EC2, you have the Ubuntu cloud image, which has a lot of deps already installed, so the time between saying 'deploy' and the install hook runite a bit less16:25
SpamapSjdstrand: On my very-slow-disk macbookpro, I said 'deploy' some 8 minutes ago, and its justn ow instaling the wordpress package. :-P16:26
jdstrandSpamapS, hazmat: thanks for your help and explanations. seems my bare-metal woes were firewall related. I will continue this later (I have calls now)16:26
jdstrandSpamapS: ok, thanks. that is helpful16:27
jdstrandSpamapS: it would be nice if there was a command to see the progress of the deployment...16:27
jdstrandanyhoo-- call!16:27
* jdstrand steps away16:27
=== zyga-afk is now known as zyga
SpamapSjdstrand: btw, the request for allowing a local mirror is here; bug #89764516:35
_mup_Bug #897645: juju should support an apt proxy or alternate mirror for private clouds <cloud-init:Fix Committed> <juju:Confirmed> < https://launchpad.net/bugs/897645 >16:35
* SpamapS raised it to High since its such a common request16:36
jdstrandSpamapS: awesome, thanks :)16:36
=== Furao_ is now known as Furao
=== Leseb_ is now known as Leseb
jcastrom_3,  I just did a review call with msm about our events and stuff.17:45
jcastroall our major events are handled17:45
jcastrom_3, but we need to know your plans for all the language confs your hitting this summer17:46
jcastroso she can ping the organizers and get you what you need.17:46
jcastroso if you could ping her this week that would be grand.17:46
benjiI did a review-of-sorts of https://code.launchpad.net/~rockstar/juju/setuppy-fixes/+merge/96902.  I'm not an approved reviewer so I marked it as a comment in hopes that it will be helpful to the person that reviews it for real.18:05
marsHi guys, is it possible to call a custom cloud-init script from a juju charm?18:11
marsI have some custom initialization I would like to use on all of the hosts I create, and cloud-init's config files could save me from writing boilerplate code.18:12
SpamapSmars: we're working on supporting the "policy" use case in a somewhat different way18:21
marsSpamapS, ?18:22
marsSorry, I don't understand what the 'policy' use case is18:22
SpamapSmars: basically a new feature called "subordinate charms" will land soon that will allow you to define policy for the box and deploy it along with other charms18:22
SpamapSmars: what you're talking about is policy.. it goes across all your machines.. you want users or monitoring or whatever...18:23
SpamapSmars: so, you'll write a charm that enables that, and then say 'deploy mystuff' and then 'add-relation service1 mystuff'  and 'add-relation service2 mystuff' and they'll be deployed together18:23
SpamapSbenji: thanks btw!18:24
marsok18:24
marsSpamapS, I was looking to do something a bit different18:24
marsThere are few problems with LXC Lucid containers that I was hoping cloud-init could help smooth over18:25
benjiSpamapS: my pleasure18:25
marsAnd one of my charms needs to have a custom repository set up in order to fetch the sourcecode: again, cloud-init makes that very simple18:25
SpamapSmars: lucid is not a tested target for juju.. we don't test on python2.6.. so its possible the agents won't even start up18:26
SpamapSmars: so do shell scripts. :)18:27
marshmm, good to know18:27
SpamapSmars: seems like your install hook is a simpler place to setup your custom repository than cloud-init18:27
marsSpamapS, yeah, I have written that in shell, and in Python fabric.  But I wanted to skip the boilerplate 'bootstrap' targets.18:27
SpamapSI do think we need to look at adding some kind of way to easily include shared code in charms. Right now the best way to do that is with packages in PPA's.. but that seems too complicated for the simpler use cases18:28
marsSpamapS, so Google has a couple references to Juju using cloud-init internally.  If that is true, then I assume there is no way to extend or call cloud-init with my additional configuration?18:39
SpamapSmars: juju uses cloud-init for orchestra and ec2, but its not fundamental to juju..19:08
SpamapSmars: so if you do any customization around cloud-init .. you won't be able to repeat on the local provider, which does not use cloud-init19:09
marsah19:10
marsok19:10
SpamapSmars: I agree that boilerplate is bad.. juju needs to do more to allow cross charm sharing of code. Right now.. packages are the best way to do that.19:11
SpamapSmars: note that there is precedent for this in the charm-helpers-sh package19:11
_mup_juju/increase-session-timeout r450 committed by kapil.thangavelu@canonical.com20:30
_mup_increase default session expiration timeout from 10s to 20s (same ping count/timeTick)20:30
_mup_juju/force-upgrade r463 committed by kapil.thangavelu@canonical.com20:31
_mup_remove cli short switch, force should be explicitly spelled20:31
_mup_juju/scheduler-peek-list r473 committed by kapil.thangavelu@canonical.com20:32
_mup_additional error scenario testing around revamped scheduler20:32
_mup_txzookeeper/managed-watch-and-ephemeral r47 committed by kapil.foss@gmail.com20:45
_mup_new managed client subclass that tracks watches and ephemerals20:45
jdstrandso, I rebooted my machine that had local working right, and now get:21:18
jdstrand$ juju status21:18
jdstrandcould not connect before timeout21:18
jdstrand2012-03-14 16:05:21,185 ERROR could not connect before timeout21:18
jdstrandnothing is running-- not zookeeper, not the agents, not the containers21:18
jdstrandI tried 'juju bootstrap' again, and it told me it was already bootstrapped21:19
jdstrandis there some procedure I missed for rebooting a machine with local lxc and juju?21:19
m_3jcastro: will do21:21
gary_posterSpamapS, hey, you around?  I'd like to talk about our team's difficulties with the debian build for the python charm helpers21:44
gary_postermy team's, I should say :-)21:44
SpamapSgary_poster: yeah21:46
SpamapSgary_poster: been fighting the email demons all day, but I have a todo to review that whole merge proposal. :)21:47
gary_posterThanks SpamapS.  Yeah, I've been fighting my own demons today too.  The short of it is that we've lost a lot of man hours on trying to get the debian packaging working on that.  Could we do one of (a) toss it to you, (b) make a separate package and toss it to you, or (c) have some close attention from you to pair with someone to get this packaged?  We'd love to increase our packaging fu, but that's more time for you I suspec21:48
gary_postert.21:48
SpamapSgary_poster: toss to me22:01
SpamapSgary_poster: will try to carve out some time today, otherwise I'll take a look tomorrow firs tthing.22:01
gary_posterSpamapS, ok, many thanks.  gmb, do you have something you should merge into that mp, or should SpamapS just look at the original stuff from bac?22:02
gmbgary_poster, SpamapS: I think the original stuff from bac is sufficient. My additions either a) had no effect or b) broke everything.22:02
gary_posterlol22:02
gmbI'll make sure it's in a pristine state.22:02
gary_posterok, thanks again SpamapS, and thanks gmb22:03
=== jrgifford is now known as Guest18667
jdstrandSpamapS: is there any trick to restarting a machine with a 'local' configuration?22:25
jdstrandSpamapS: the host that is. if I reboot the host all is gone on reboot22:26
gmbSpamapS, I've updated the branch to remove my cruft. Best of luck; let me know if you need any help so that I can be conveniently sick that day.22:26
SpamapSjdstrand: in theory, it should all come back up.. as it should have installed an upstart job to start the machine agent and zk22:26
SpamapSjdstrand: in practice, I have not tested that. ;)22:26
jdstrand(ie, zookeeper, twistd, agents, instances and anything else I forgot is not started)22:26
jdstrandSpamapS: I guess I will file a bug22:27
SpamapSjdstrand: on my system, I see a juju-clint-local-file-storage.conf and a juju-clint-local-machine-agent.conf .. but nothing that starts ZK22:27
SpamapSgmb: remind me where the branch is?22:28
jdstrandSpamapS: I don't have any /etc/init/juju* on the host22:28
SpamapSjdstrand: should be put there after 'bootstrap' ..22:29
jdstrandSpamapS: I can say after employing my workaround in bug #955540, I was actually able to use juju wholly within a vm22:29
_mup_Bug #955540 was filed: juju-create hard-coded to use 192.168.122.1 <juju:New> <juju (Ubuntu):Triaged> < https://launchpad.net/bugs/955540 >22:29
_mup_Bug #955540: juju-create hard-coded to use 192.168.122.1 <juju:New> <juju (Ubuntu):Triaged> < https://launchpad.net/bugs/955540 >22:29
SpamapSjdstrand: its entirely possible that landed after r45722:29
jdstrandSpamapS: is there a new version of juju expected in precise soon?22:30
SpamapSjdstrand: yes there will be a FFe filed as soon as one last feature is done.22:30
SpamapSjdstrand: thanks for the thorough reviews.. lots of stuff to work on.22:31
jdstrandSpamapS: heh-- at this point I am just trying to get it to work so I can understand it and pke at it :)22:32
jdstrandbut np22:32
jdstrandits pretty cool once I got things working22:33
jdstrandit's22:33
SpamapSjdstrand: I think we need to make it more visual.. more feedback between the agent coming up and state: changing to started.. so you can watch more22:34
jdstrandSpamapS: that would be helpful. I'm also finding the lack of man pages with toy and real world examples to be a hinderance (that will be in my MIR review)22:36
jdstrandI feel like I can actually do enough to test it. but to deploy it in the real world I have a lot too learn22:36
jdstrand(particularly around zookeeper security)22:36
SpamapSjdstrand: I wrote a man page 6 months ago but the devs didn't want to keep it up to date. :-/ perhaps I should add it back to the debian package and just commit to updating it as part of the packaging.22:38
SpamapSjdstrand: https://bugs.launchpad.net/juju/+bugs?field.tag=security22:38
SpamapSjdstrand: https://bugs.launchpad.net/juju/+bug/81377322:38
_mup_Bug #813773: Juju should have security rules/acls for every path in zk <security> <juju:In Progress by hazmat> < https://launchpad.net/bugs/813773 >22:38
jdstrandSpamapS: excellent, thanks. are these bugs planned on being fixed in precise, or maybe 12.04.1?22:39
SpamapSjdstrand: I'm not aware of plans to complete any of those no22:40
jdstrandSpamapS: re man page> I find them immensely useful, and so do others (as you know, you wrote one :). there are so many urls to go to it is confusing to know what to use. most of the ones I saw were out of date (didn't mention lxc)22:41
jdstrandheck, the man page could say: for more information, please see http://...'22:41
jdstrandbut something should be up to date :)22:41
jdstrandI'm sure there are plenty of docs that are up to date-- I just didn't know where to find them is all22:42
SpamapSjdstrand: good point. I think there's going to be a big documentation push very soon.22:45
jdstrandSpamapS: that is great to here22:45
gmbSpamapS, lp:~gmb/charm-tools/add-charm-helpers22:57
SpamapSgmb: awesome, thanks22:58
hazmatjdstrand, that should work with the ppa23:02
hazmatre  reboot23:02
hazmatnot sure that it does with the last precise upload23:02
hazmatwhich was right before the restart work landed23:02
jcastro"I'm sure there are plenty of docs that are up to date-- I just didn't know where to find them is all"23:05
jcastrohah23:05
jcastrosoon, soon!23:05
jcastroah cool, a bug for murder, that should be interesting23:06
jcastroSpamapS, you still working? Because if you're going to do an initial review of the subway charm I'd like to shoulder surf23:07
adam_ganyone seen an issue where, after deploying a number of services, a service is missing its machine units?23:31
adam_ghttp://paste.ubuntu.com/884080/23:31
adam_g^ rabbitmq gets deployed but a machine never provisioned or associated with the service23:32
adam_give been seeing this somewhat frequently but randomly over the last week23:32
SpamapSjcastro: yeah still working23:51
jcastroSpamapS, I found some things for him to improve23:51
jcastroso no need to review it23:52
SpamapSadam_g: for your issue, have you looked through the provisioning agent log?23:52
SpamapSjcastro: aight23:53
jcastroSpamapS, https://bugs.launchpad.net/charms/+bug/94424623:55
_mup_Bug #944246: Charm Needed: Subway IRC client/server <new-charm> <Juju Charms Collection:Incomplete by bkerensa> < https://launchpad.net/bugs/944246 >23:55
jcastroyeah! I helped! </10 year old>23:55
jcastroSpamapS, also I owe the team, I used the word idempotent when talking to him23:56
SpamapSaahhhh!!!!!!23:59
* SpamapS responding to idempotent23:59

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