/srv/irclogs.ubuntu.com/2012/01/25/#juju.txt

hspencerhey koolhead17|zzZZ00:25
hspencersorry00:25
hspencerwas in meetings all day00:25
hspencerwhats goin on?00:25
=== lamont` is now known as lamont
niemeyerGood morning!12:13
lamont./112:21
andrewsmedinahi16:16
andrewsmedinaIn my try to use juju + openstack when I run "juju status" return this error16:17
andrewsmedina2012-01-25 14:07:39,567:1419(0x7fdf04f58700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:34932] zk retcode=-4, errno=111(Connection refused): server refused to accept the client16:17
=== objectiveous_ is now known as objectiveous
_mup_juju/local-respect-series r448 committed by kapil.thangavelu@canonical.com16:29
_mup_allow creating precise lxc containers16:29
Tim__Hello16:35
_mup_juju/local-respect-series r449 committed by kapil.thangavelu@canonical.com16:35
_mup_lxc unit deployment parameterizes series16:35
hazmatandrewsmedina, that's with juju status -v ? does it eventually connect? what version of juju and which provider are you using?16:36
=== SpamapS_ is now known as SpamapS
andrewsmedinahazmat: Im using -v and using ec2 provider with openstack16:37
andrewsmedinamy juju version 0.5+bzr443-1juju2~oneiric116:38
hazmatandrewsmedina, does it eventually complete? right after bootstrap it can take some time for the remote machine to finish installation and get zk setup.. the client will retry automatically, so some of the zk messages are noise in that regard.. but that should stop after the bootstrap instance is fully functional16:41
=== james_w` is now known as james_w
andrewsmedinahazmat: in vm log "cloud-init boot finished at Wed, 25 Jan 2012 16:15:56 +0000. Up 1290.47 seconds"16:43
andrewsmedinaare juju status slowly with openstack?16:43
hazmatandrewsmedina, should be the same, it sounds like a connectivity issue perhaps based on zk not running16:44
andrewsmedinathis looks like a timeout problem16:44
hazmatandrewsmedina, what version of openstack? are you able to login into the machine?16:44
andrewsmedinaI can ping and access the vm via ssh16:44
andrewsmedinadiablo16:44
hazmatandrewsmedina, its able to setup the ssh tunnel, and cloud-init is finished.. so i would imagine zk should be running unless there's an error16:45
hazmatandrewsmedina, if you can ssh into the machine can you check if zookeeper is running (should be only  java process)16:45
andrewsmedinahazmat: it's in the log too "juju-admin: error: unrecognized arguments: 2007-01-19 2007-03-01 2007-08-29 2007-10-10 2007-12-15 2008-02-01 2008-09-01 2009-04-04"16:46
hazmatandrewsmedina, could you pastebin the log16:48
SpamapSandrewsmedina: that looks like maybe the metadata service returned bad data16:48
SpamapSor userdata service more likely16:48
andrewsmedinahttp://dpaste.org/FpsiB/16:49
Tim__Hello, as it's "Office Hours", is there somebody aware of ical server charms being written for 12.04?16:51
hazmatTim__, none that i know of.. the apple caldav server would be nice .. http://trac.calendarserver.org/16:53
hazmatlots of others out there though16:53
Tim__Yes, or Davical.16:53
hazmatandrewsmedina, thanks, could you pastebin the contents of /var/lib/cloud/instance/user-data.txt16:57
hazmatandrewsmedina, fwiw there's a handy cli tool for this pastebinit16:57
SpamapSTim__: best place to look is https://bugs.launchpad.net/charms16:59
SpamapSTim__: if its not there, file it, as 'Charm Needed: ical server' with a description of the software you want to work on. Then assign the bug to yourself.17:00
Tim__Thanks SpamapS,  I will see if somethig is there17:01
Tim__I do not expect myself to start writing charms a.t.m. still evaluating the usefullness for our organisation.17:02
Tim__No bugs with "ical", "calendar" or "agenda"..17:04
SpamapSTim__: could be as easy as 'charm create calendarserver' :)17:06
SpamapSor davical17:06
SpamapSInteresting...17:07
SpamapScalendarserver depends on memcached.. thats a silly thing to do since memcached is a network daemon17:07
SpamapSlooks like davical uses postgres17:07
jcastroI just saw davical. :)17:08
Tim__Yes, davical can only work with postgres as far as I know.17:08
jcastroI hadn't filed the bug on it yet, it does sound pretty awesome17:08
jcastroSpamapS: robbiew: When we go to the openstack summit, you guys can roll on my bus: http://www.openstack.org/conference/san-francisco-2012/17:09
SpamapSOH SNAP17:09
robbiewheh17:10
Tim__Apple's calendarserver won't always work on Linux. It's not supported by Apple. :-)17:10
SpamapSIt would be nice to have something even 1/10th as good as google calendar that could be deployed for personal use17:11
jcastroTim__: are you interested in working on davical? That would be great17:11
Tim__We created a bash script for an older version a few years ago, never actualy put it into production..17:12
Tim__Let me ask.17:13
SpamapSIt should be dead simple to do since it is in the archive already17:17
Tim__My colleague here says that bash script is not finished. Was based on some tutorial on the internet,17:17
jcastroif you get that working it shouldn't be too much work charming it17:18
Tim__Is postgress "charmd"?17:19
SpamapSTim__: it is, though it needs some improvement to be tuned properly.17:19
jcastroyup17:19
jcastroHere's a good intro: https://juju.ubuntu.com/docs/write-charm.html#have-a-plan17:19
jcastroof the things to think about before charming17:19
SpamapSOo, good t-shirt idea17:21
SpamapSWrite Charm. Have a plan.17:21
SpamapShttp://bit.ly/xey5cj17:22
SpamapSwith that image on it17:22
Tim__Let me ask my colleague, maybe he is likes to do it..?17:23
SpamapSjcastro: ^^17:23
SpamapSrobbiew: ^^17:23
jcastroTim__: that would be great!17:23
jcastroWe'd be more than happy to answer questions, etc.17:23
robbiewSpamapS: heh...well you're free to make any shirt you want to pay for ;)17:24
koolhead17hi all17:27
SpamapSrobbiew: yes, but its so much easier to incite you to do my evil deeds for me. :) <hypnoticvoice>you know you want that shirt</hypnoticvoice>17:27
robbiewlol..good luck with that ;)17:27
jcastroSpamapS: usshurper17:29
SpamapSjcastro: been thinking about it all week. :)17:29
koolhead17T-Shirt17:31
=== niemeyer_ is now known as niemeyer
_mup_juju/local-respect-series r450 committed by kapil.thangavelu@canonical.com17:34
_mup_propogate release series to machine agent and unit deployments from local provider17:34
Tim__Me and my colleague could look into it at some point but we do not expect to finish before the 12.04 release. Nor would we support anything that's not direcly related to our own organisation.17:38
negronjlm_3: ping17:44
jcastroTim__: that's fine, mostly working would be great, we can find someone to finish it17:51
jcastroTim__: and we keep the charm store open past release, we don't hard freeze charms until way after17:52
jcastroSpamapS: actually, for LTSes we should keep that branch open for longer than the typical 6 months we talked about right?17:52
SpamapSjcastro: its open forever, all of them are...17:52
SpamapSjcastro: just that the dev focus changes to the new release of Ubuntu17:53
jcastrooh, so when you guys said open for development, we don't close the old ones, right.17:53
* jcastro nods17:53
SpamapSjcastro: so people wills till be able to push new stuff int o lp:charms/precise/foo for a long time17:53
SpamapSThe only rule we're going to make there is that interfaces *must not* change.17:53
SpamapSWe may also get heavy handed and say that upstream versions shouldn't change either.17:54
SpamapSBut.. I kind of want to stay out of that water. ;)17:54
jcastrothat's why I want that --upstream switch in each one.17:54
SpamapSYeah, maybe the default upstream version can't change.17:55
JorgeHi, I would like to know if is there a way to send parameters to an instance when using juju? I have a openstack private cloud and I would like to test juju. But I have a proxy and when I run 'juju bootstrap' the instance try to install some packages from an apt mirror. So, I need to tell the instance to use a proxy, or use my mirror. Is it possible ?17:59
JorgeIn a common instance I can use -f with euca-run-instances and send cloud-config files or bash scripts.18:00
SpamapSJorge: your best bet is to override archove.ubuntu.com with your local mirror's IP in your local DNS18:00
JorgeI'm running Diablo, installed from repo (ubunut oneiric).18:00
Jorge<SpamapS> OK.18:01
SpamapSJorge: there are two bugs open that discuss this.. bug 809634 and bug 89764518:01
_mup_Bug #809634: allow additional user-defined userdata/cloud-config <juju:New> < https://launchpad.net/bugs/809634 >18:01
_mup_Bug #897645: juju should support an apt proxy for private clouds <cloud-init:Fix Committed> <juju:Confirmed> < https://launchpad.net/bugs/897645 >18:01
SpamapSJorge: If either of those would be helpful to you, it would help us if you noted that you are affected by them, and/or commented on them.18:02
Jorge<SpamapS> I'm going to note that bugs so! They really affect me!18:02
JorgeI'm testing with a ubuntu cloud image. If I configure juju to use a customized image and I configure that image with the proxy environment variables, will it work?18:03
JorgeOr juju just works with ubuntu cloud images?18:03
SpamapSJorge: yes that will work fine18:04
SpamapSJorge: you can specify the image id to use in environments.yaml18:04
JorgeGreat, i'm going to change my image! Thanks! :)18:07
Tim_BlokdijkAbout the iCal server, whatever happens, the first thing needed is to report a bug at https://bugs.launchpad.net/charms correct?18:11
jcastroyep18:12
jcastrosomething like "Charm Needed: davical"18:13
jcastroand then have a link to the project18:13
jcastroalso having a direct link to the project's install instructions can be helpful.18:13
Tim_BlokdijkOk, I will report a bug about it then.18:13
* SpamapS needs to finish his dbconfig-common charm helper so we can just automatically charm all the packages that depend on it.18:19
jcastrokoolhead17: your conference pack is on the way!18:42
koolhead17jcastro: thank you sir!! i have 2 conf in feb now!! :)18:43
Tim_BlokdijkAlright, I wrote a bug report for a iCal sever charm. https://bugs.launchpad.net/charms/+bug/92177219:41
_mup_Bug #921772: Charm Needed: iCal server for calendar/agenda functionality <agenda> <calendar> <calendarserver> <davical> <ical> <server> <Juju Charms Collection:New> < https://launchpad.net/bugs/921772 >19:41
koolhead17hazmat: let me know when you have sometime20:10
Tim_Blokdijkjcastro still here?20:59
jcastroyep21:00
Tim_BlokdijkThe CalendarServer Debian maintainer like to have version 3.1 uploaded in 12:04.. that would be really nice. Current version is 2.4 https://answers.launchpad.net/ubuntu/+source/calendarserver/+question/18565421:01
Tim_BlokdijkHe posted that yesterday.21:02
jcastroah so we need to turn that into a sync request.21:03
Tim_BlokdijkI guess so?21:04
jcastroI posted21:08
jcastrobasically, when he's ready, he can file a bug21:08
jcastroand then someone will sync it21:08
jcastrom_3: have you done your travel for strata yet?21:11
Tim_BlokdijkThanks, 3.1 would be a good basis to do that charming thingy on top of.21:12
SpamapSme too :)21:20
SpamapSjcastro: err rather, I posted too21:21
gary_posterHi.  Given this install hook http://pastebin.ubuntu.com/817000/ and this config.yaml http://pastebin.ubuntu.com/816999/ (notice installdir's default of /tmp/buildbot at the top) I get a failure to install, apparently because `config-get installdir` does not return a value.  bac said he came here with a similar problem yesterday (using the same files/charm) and using the juju from the ppa fixed it for him, but I'm running fro21:32
gary_posterm the ppa (0.5+bzr447-1juju2~precise1) and no luck.  Could someone help me diagnose this?21:32
gary_posterA demo of why I think config-get installdir is not working is that the install has "BUILDBOT_DIR=`config-get installdir`" and "juju-log "Creating master in $BUILDBOT_DIR"", and running ./install in juju debug-hooks results in "juju-log "+ juju-log 'Creating master in '" (notice the empty string)21:36
gary_posterSpamapS, any chance you have a sec for this?21:36
gary_poster"a sec" -> "some indeterminate amount of time, constrained by the fact that I will be at EoD soon :-)"21:37
SpamapSgary_poster: sure21:47
SpamapSgary_poster: I'm going to run out to lunch in about 10 minutes tho21:47
gary_posterSpamapS, cool.  Can try again tomorrow.  What can I do now?21:49
SpamapSgary_poster: did you try 'juju set your-service-name installdir=/something/that/makes/sense' ?21:50
hazmatgary_poster, can you push the charm to lp.. per https://juju.ubuntu.com/Charms Contributing Charms21:51
hazmatgary_poster, i can take a look at it21:51
SpamapSgary_poster: just to be careful, try wrapping /tmp/buildbot in quotes.. though I think yaml will interpret it as a string..21:51
gary_posterSpamapS, no.  I'll try.  hazmat, ok thanks will do.  We have it on lp now but in random crazy place (lp:~yellow/launchpad/buildbot-master)21:52
hazmatgary_poster, anywhere i can get to it should work, if its already published21:52
gary_posterhazmat, ok cool.  Yeah, bac has been working on this.  It's public21:53
hazmatgary_poster, are you deploying the charm with the config?21:53
hazmatgary_poster, if you use juju set  .. to set the config values, it won't be picked up till after the install hook has already run21:54
gary_posterhazmat in this case the question is why the default value is not being picked up21:54
SpamapSperhaps there is a bug21:55
SpamapSwe did change some code in that area recently IIRC21:55
hazmatyeah.. that config looks fine21:55
hazmatyeah.. i changed the config values to be pick up defaults dynamically, instead of serializing defaults as initial values.21:56
hazmatrevno 44621:56
=== negronjl` is now known as negronjl
_mup_juju/ssh-known_hosts r485 committed by jim.baker@canonical.com21:59
_mup_Merged trunk21:59
gary_posterfwiw, SpamapS, putting quotes around it in the default did not work.  I didn't try the "set" because of what hazmat said (install will already have been run).  I futzed around and the only other thing I discovered is that juju get buildbot-master gives my back the value I expect for installdir.22:18
hazmatgary_poster, so deploying that charm, and using debug-hooks i do see installdir set correctly22:18
hazmathttp://paste.ubuntu.com/817054/22:18
hazmatfrom the install hook22:18
hazmatthat's the output of config-get22:18
gary_posterhazmat, so you see Creating master in /tmp/buildbotin the log also?22:19
gary_posterThough I was using config-get too22:19
gary_posterin the lxc22:19
gary_poster(I need to leave in 5)22:20
hazmatgary_poster, it looks like its working correctly to me, i see a buildbot running22:20
* hazmat looks around for a unit log to pastebin22:21
gary_posterhazmat, ok.  So...something is wrong in my environment...22:21
gary_posterhazmat, are you on precise or oneiric?22:21
gary_posterthough it is working fine for bac today, and was not yesterday mand he is on precise22:21
hazmatgary_poster, but to clarify what are you using for a provider? and what value for default-series22:22
gary_posterhazmat, default-series oneiric; provider I'm guessing you mean lxc (rather than ec2)22:22
hazmatgary_poster, here's the log.. http://paste.ubuntu.com/817057/22:23
hazmatgary_poster, yup thanks22:23
hazmatgary_poster, i ran it on oneiric22:23
hazmatbzr revno 5 of the charm22:24
gary_posteryeah, that's what I'm using too (though I had the same problem with 4)22:24
gary_posterok...hazmat, so maybe I'll reinstall juju...?  Not sure what could explain this so I'm at the rattle-the-windows-and-see-if-the-engine-starts stage22:25
gary_posterThat log looks happy enough22:26
hazmatgary_poster, could you pastebin the environ of the machine agent (from /proc/pid/environ)22:26
hazmatits possible it was pointing to 'distro' instead of 'ppa' you where getting an old version of juju deployed22:26
hazmatgary_poster, an easy way to verify is to set juju-origin: ppa in local environment section of environments.yaml22:27
hazmatand if it works that its.. the environment of the machine agent would be more definitive/quicker to verify though22:27
hazmatthe environments.yaml change needs a new bootstrap22:27
gary_posterhazmat: the proc of what? the lxc instance?22:28
hazmatgary_poster, the juju machine agent ... $ ps aux | grep machine  should show it22:29
hazmatits on the host22:29
hazmatnot the container, but it configures the containers with a base juju environment22:30
gary_postergot it.22:30
hazmathmm.. actually .. even better would have be a pastebinit of the master-customize.log in  $data-dir22:31
gary_posterhazmat, http://pastebin.ubuntu.com/817062/22:31
hazmat$data-dir/units/master-customize.log22:31
hazmatthanks22:31
hazmatgary_poster, the environ thing has null chars, can't be piped readily22:31
gary_posterah sorry22:31
hazmatgary_poster, no worries that master-customize.log has even more info22:32
hazmatbcsaller, is that lxc debug ready to land?22:32
bcsallerhazmat: afaik, yes22:32
hazmatbcsaller, would be helpful to have a single script we could just ask people to run22:32
bcsallerthats why I wrote it22:32
bcsallerI might not capture everything thats useful in there now, but we can add to it, its a good start22:33
gary_posterhazmat, http://pastebin.ubuntu.com/817066/ is proc22:33
gary_posterI have to run go get child now or big trouble :-P22:33
gary_posterwill leave this around and check back later or tomorrow22:34
gary_posterthank you hazmat22:34
gary_posterAlso will get that file and send22:34
gary_posterbye22:34
hazmatgary_poster, cheers22:37
hazmataha that was the problem22:37
hazmatJUJU_ORIGIN=distro22:37
hazmatah.. i wonder.. if its a precise machine deploying an oneiric container, then distro represents two entirely different versions22:39
SpamapShazmat: good example of why we shouldn't infer what the user intends just because they're deploying *from* a particular release of Ubuntu. :)23:38

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