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

koolhead17hi all00:24
vrturbohi all04:07
vrturbohave two problems04:07
vrturbohave a private openstack cloud that needs http proxy for apt04:07
vrturbohow do I bootstrap and have the zookeeper use the apt-proxy?04:08
vrturbosecond issue, how to define the default instance flavor for juju deploments04:08
vrturbo?04:08
imbrandonwhere can i get the machine id for a unit, no other context is set , its from an outside script running on a node, so no hook etc05:34
imbrandoni'm looking to pass it on cli to a app with --machine_id as the docs say, they just dont say what it is exactly or where to obtain it properly ( or any way at all )05:35
victorphi11:43
victorpI am doing a juju upgrade-charm11:43
victorpand guess what my new charm update was broken11:43
victorpI have ssh into the instance and fixed it and now I would like to do a new upgrade-charm but the state of the instance is on an error11:43
victorpand upgrade wont work, is there any way to change that or do it need to destroy the service and start again?11:44
imbrandonvictorp: juju resolved service/N12:01
victorpimbrandon, thanks!12:01
victorpdo you also happen to know how to access file that have being copied as part of the charm, there must be a env variable or something for the folder no?12:02
imbrandonin /var/lib/juju/ somewhere12:03
imbrandoncant rember right off12:03
imbrandoniirc12:03
victorpimbrandon, thanks I solved it :) I was assuming that it was running under /charm/hooks rather than /charm/12:05
victorpimbrandon, who is your wordpress charm coming along?12:07
imbrandongood good12:14
imbrandonoh i just read your blog posts :)12:15
imbrandontook me a minute to put 2+2 :) but yea, i'm working on the nginx charms ( its broken into a few ) and the drupal charms mostly ( and the omg-wp custom wordpress one ) marcoceppi is doing most of the new wordpress one, but they all are based on work we did on omg-wp12:16
imbrandon:)12:16
imbrandonvictorp: i noticed in the branch too it looked like you copy/pasted one of the hooks, it may just be the way loggerhead shows it as i dident check it out but if so just fyi symlinking works fine12:18
imbrandonwith hooks12:18
victorpimbrandon, I just run into that problem and changed it into a link - hopefully should be fine now12:19
imbrandon:)12:19
imbrandonalso there is "juju debug-hooks <service> <hook>" too if you get stuck, thats a life saver along with the jitsu wrapper/tools12:20
imbrandonafk a few, but i'll be round all day if ya catch a snag12:21
victorpimbrandon, cool I will start trying that12:21
victorpimbrandon, thanks a lot12:21
imbrandonnp12:21
=== lazyshot_ is now known as lazyshot
=== garyposter is now known as gary_poster
=== carif_ is now known as carif
surgemcgeeHas anyone else figured out how to use a debconf-set-selections with Mercurial, git, or svn already? If  not, any other ways to use a password with repositorys?14:06
surgemcgeeOk, looks like I can preconfigure the .hg/hgrc file in the project init.14:11
jcastronegronjl: SpamapS: You guys have change access to the new charm pilot calendar, bus factor14:56
SpamapSjcastro: I'll just remind you that I do not see messages that aren't ^SpamapS15:01
jcastrok15:01
* SpamapS wonders if irssi could be fixed to highlight on the whole line15:01
imbrandonSpamapS: depends on how much perl you want to dig into :)15:08
imbrandonjcastro: hey on your way back down south, just stop off at KC and drop me a conney , kthxbia.15:09
imbrandonthen con someone over there to drop me a in-and-out burger from the left coast and i'll be set ( never grabbed on in SFO, totally skipped it LOL )15:14
aljosai have a juju agent using ~95% cpu "/usr/bin/python -m juju.agents.machine --nodaemon --logfile /tmp/local-dev/root-local/machine-agent.log --session-file /var/run/juju/root-local-machine-agent.zksession"15:15
aljosaany idea what's wrong with my installation/setup? or is it some bug?15:15
imbrandondo you have debug-log running ?15:15
imbrandoniirc that will send zk into a frenzy sometimes ... other than that, anything more to go on ?15:16
aljosano, but log has mostly zookeeper errors "ZOO_ERROR@handle_socket_error_msg@1528: Socket [192.168.122.1:50821] zk retcode=-7, errno=110(Connection timed out): connection timed out (exceeded timeout by 0ms)"15:17
imbrandonhrm, past me, maybe SpamapS or hazmat will pop in soonish and be able to help you trace it a bit more15:19
SpamapSimbrandon: honestly.. in n out is only good because everything over there is such crap. Here in LA we make fun of in n out. ;)15:20
SpamapSIts not "bad" per se.. but its just not deserving of the reputation it has from outside the state.15:20
hazmatah.. its local provider post reboot15:21
SpamapSaljosa: kill it15:21
SpamapShazmat: hopefully we'll get that SRU to -proposed today15:21
_mup_juju/proposed-support r488 committed by kapil.thangavelu@canonical.com15:23
_mup_enable proposed on main AND universe.15:23
aljosais this some zookeeper related bug? log is basically full of zookeeper connection errors, timeout or something like "Exceeded deadline by 821282ms"15:24
hazmataljosa, the local provider environment doesn't survive reboots15:24
aljosaok, thanks for help and your time15:25
m_3SpamapS: the last line of my irssi config file is `hilights = ( { text = "m_3"; nick = "yes"; word = "yes"; } );` which seems to do what you're saying... I think that's stock and not a plugin15:28
SpamapSm_3: will try that, thanks15:37
m_3I think the `text` part is magic SpamapS see if you see this15:38
imbrandonm_3: i think he means the whole line and not just the word15:38
imbrandonerr name15:38
m_3imbrandon: right... that'll hilight the line when the text is matched anywhere in the line... not just the nick match15:39
m_3afaik15:39
imbrandonoh yea it will15:39
m_3_heavily_ copied/pasted without full understanding :)15:39
imbrandoni took it as the other way as in like when you select with your mouse the line15:40
imbrandonas in yea, it does what your saying we just both took SpamapS statement diffrent ways that at this minute both seem correct15:40
imbrandonlol15:40
imbrandonlike you konw the "current line hilight" in an IDE15:41
imbrandonthats how i was thinking, not that the word was said on that line15:41
m_3recommend adv_windowlist.pl too15:41
imbrandonyup, i cant live with out that one15:41
imbrandonm_3: http://cl.ly/Gzi215:43
imbrandonsee how mine hilights, just the name :) i was thinking for that whole line to turn yellow15:43
imbrandonwas the goal15:44
imbrandon:)15:44
m_3imbrandon: http://files.markmims.com/irssi.png15:46
m_3actually like the bitlbee twitter plugin15:46
imbrandoni used btlbee for a while but i couldent get used to it15:47
imbrandonhttp://paste.ubuntu.com/1013228/15:48
m_3I just forget the dang commands and have to hunt around every time15:48
imbrandonm_3: that fnotify.pl one is very very nice, it sends my desktop or wherever i am notify-osd commands remote15:48
imbrandonof mentions etc from my irssi running on the server somewhere else while attached15:49
m_3yeah, I have fnotify in there, but never took the time to set it up15:49
m_3you get it to sms or just growl / gnome-notify?15:49
imbrandonits real easy if you only use one or two machines15:49
m_3I just use one... always on, just attach/detach15:49
imbrandongrowl notify-osd ( for kde too )15:49
m_3oh, but for client yeah... I'm on several15:50
imbrandonbut its very clean and easy to modify15:50
imbrandoni bet it would take 5 min to make work withj prowl15:50
m_3really want it to just notify to the ipad/iphone15:50
imbrandonthats prowl15:50
* m_3 note to google prowl later15:50
m_3thanks15:50
imbrandonits push growl to the phone / pad / desktop15:50
imbrandonfree middle man service , and you have to get a 1.99 ( not a scam ) ios app, but the desktop and other apps are free15:51
m_3cool15:51
imbrandonthey are the equiv of growl infact it uses growl on the desktop15:51
m_3sounds liek just the ticket15:51
m_3oops... gotta run the wife to dentist.. back online in the waiting room in a bit15:52
imbrandonbut yea for a one time $2 cost, best 2 bux i spent in a very very ;ong time15:52
imbrandonand its got a nice simple rest api for custom stuff if you want, like i have github hooks setup to ping it etc15:52
imbrandonl8tr15:52
imbrandonm_3: haha your irssi window is very very close to mine, first time i've seen that, most ppls irssi setups are soooo diffrent15:57
imbrandoni think i dropped the ACT: N from the top line and the rest is the same15:57
negronjl'morning all16:06
negronjljcastro:  Sorry I'm late in the conversation but, where is the charm pilot calendar ?16:07
jcastronegronjl: I just made it16:15
jcastroI am working on it now16:15
* negronjl nods16:15
negronjljcastro: thx ... let me know if I can help16:15
jcastroyeah I can't get the script to work but that's just me16:16
=== jcastro changed the topic of #juju to: Reviewer: ~charmers || Review Calendar: http://goo.gl/uK9HD || Review Queue: http://jujucharms.com/review-queue || Charms at http://jujucharms.com || Want to write a charm? http://juju.ubuntu.com/Charms || OSX client: http://jujutools.github.com/"
jcastronegronjl: see topic, there's the schedule16:24
jcastrom_3: your preferred day is today so I put you down for today, since that's kind of last minute feel free to just do it whenever this week, that sound ok?16:25
m_3jcastro: Tuesday is best16:25
m_3jcastro: thanks!16:25
jcastrook so everyone got their preferred days16:26
jcastroand we have at least one dude a week16:26
jcastrowhich I don't think will be a problem once we get the current queue down a few more items16:26
pkimber\quit16:27
jcastrook so once we deal with bac's mp that brings our queue time down to 3/4 weeks.16:27
bac:)16:28
jcastromarcoceppi: imbrandon: ok I've added you guys to the calendar (see topic) if you want to commit to certain days and add them16:30
jcastrootherwise, review the queue at your leisure!16:30
marcoceppijcastro: cool, thanks!16:30
imbrandonjcastro: ty ty16:34
imbrandonjcastro: you have james one 4th july, not certain but i'm not sure much would be done that day16:35
imbrandon:)16:35
imbrandons/one/on16:36
jcastrohe's british, I don't think they celebrate that16:38
jcastro:)16:38
imbrandonheh dident think of that :)16:39
imbrandonwhoops16:39
imbrandonlol16:39
SpamapSjcastro: I will deal with bac's thing after I get juju uploaded to Debian this week16:44
SpamapSI don't know if thats appropriate for charmers.. at this point we're blocked on getting things into the distro16:45
SpamapSjcastro: btw, thanks for getting the calendar setup. Looks great!16:45
imbrandoni'ma try and do saturdays, at least every other one, since thats when most everyone else is afk anyhow mostly16:45
SpamapSimbrandon: you only need to commit to 1 saturday per month16:46
imbrandonbut today is my step-dads bday, 70 years old, soooo i'm off to take him and my mom to lunch16:46
jcastroSpamapS: niggling items are fine I think, it just forces us to check it at least once a week16:46
imbrandoni'll be back in a few  , ok one sat ( first one of the month ) garenteed, but i'll obviously do more as i have time etc etc16:47
imbrandonhows that :)16:47
imbrandonjcastro: i cant add to the calendar, my google account is me@brandonholtsclaw.com16:48
imbrandonbbiab :)16:48
jcastrofixed16:49
SpamapSMan I'm about to run out of colors for the google calendars I subscribe to16:52
SpamapS9 so far16:52
nathwillSpamapS, you lie! http://hypertextbook.com/facts/2006/JenniferLeong.shtml16:55
SpamapSnathwill: wee, only 99,991 left by the most conservative estimate!16:56
nathwillSpamapS: time to sign up for more calendars!16:57
SpamapSnathwill: though I'd like for them to *stand out* not to be distinguishable16:57
nathwilllol16:57
jcastroSpamapS: ok so this works out great with the charms-tool review, that leaves mims and juan to go directly into the charm contest queue.17:01
jcastroSpamapS: you and negronjl did awesome driving that number down from 34!17:02
SpamapSjcastro: I think over the next month the real measure will be the avg-days-in-queue17:04
SpamapSjcastro: our target should be 317:04
SpamapSwell, lets say 717:04
* jcastro nods17:04
jcastronegronjl: oh mira, we'll need graphs of that stuff, but probably not a priority right now17:05
jcastrook so I'm about to file bugs for everything in the spreadsheet that does NOT have a bug report.17:05
jcastroso I'm about to launchpad spam everyone, be warned!17:05
SpamapSjcastro: woot17:10
negronjljcastro:  got it ... graphs...  I gotta finish some CloudFoundry stuff first and I'll get on that.17:14
jcastroit's not CloudFoundry important. :)17:14
negronjlSpamapS, jcastro:  In the meantime, we should think on what to track on those graphs.17:14
jcastrowe'll be able to backgraph too? I am interested in how horrible we were last cycle17:15
jcastroexact same as distro: http://reports.qa.ubuntu.com/reports/sponsoring-stats/17:15
jcastroI don't think we need "reviewers of the last month" though17:16
negronjljcastro: got it17:19
m_3sure18:04
m_3crap, wrong channel :)18:04
negronjllol18:06
jcastrojamespage: would accumulo fall in your domain or would it be a seperate community charm?18:35
jcastrohttp://accumulo.apache.org/18:35
jcastroSpamapS: hey, good news, I only needed to file 5 bugs in charms. Looks like while people hated the spreadsheet, we did a decent job keeping it up to date and filing a bug18:36
* imbrandon returns from old people lunch :)18:37
imbrandonman, 70 ... I hope I make it that long18:37
imbrandonmomma always told me not to look into the eyes of the sun; but momma, thats where the fun is ... ... rev'd up like a duce, a nother runner in the night, blinded by the light!18:40
imbrandonIts a 60's and 70's rock while you code day. Yup.18:42
imbrandonSpamapS or hazmat: what would be the most proper way for me to get what juju considers to be the machine_id from on the machine its self but not from/in a hook or juju at all for that matter ( e.g. a root cron bash script or similar )18:44
imbrandonend goal is to call like "relation-get --machine_id <machine_id> -s /var/lib/juju/instance/.juju.hookcli.sock db" or something very similar18:46
imbrandonis that just the auto incremented machine number , like the same one i would use to "juju terminate-machine N" ?18:47
imbrandonthought i tried that, maybe not18:48
* imbrandon might dig into the source a bit and see if i can tell or get more confused18:48
marcoceppirelation-get uses -r and uses relation ids, you can't relation-get to a machine directly18:48
imbrandonmarcoceppi: i think it was relation list i was thiking of to get the rid's18:49
imbrandonmarcoceppi: and i know now, well not a documented way , so i'm trying some 'intresting' things on the cli18:50
imbrandon:)18:50
hazmatimbrandon, cat /etc/init/juju-machine-agent.conf | grep MACHINE19:01
hazmatits in the env for the machine-agent process19:01
SpamapSimbrandon: what machine id ?19:02
SpamapSoh that machine id19:02
SpamapSthat seems like you're doing something evil19:02
SpamapSimbrandon: danger will robinson. You are stepping outside the documented API. What are you getting at?19:02
imbrandonhttps://juju.ubuntu.com/docs/internals/unit-agent-hooks.html?19:03
imbrandonSpamapS: JUJU_CLIENT_ID. and yea outside the documented api but its only half implmented i *think* and i'm trying to use it early19:04
hazmatclient id isn't really used.. its basically set to the string 'constant'19:04
SpamapSimbrandon: what are you trying to do though?19:04
hazmatit was for concurrent usage, but we execute serially19:04
imbrandonJUJU_CLIENT_ID=13 relation-get -s /var/lib/juju/units/nginx-4/.juju.hookcli.sock -r loadbalancer19:04
hazmatimbrandon, client_id != machine_id19:04
SpamapSheh so you can set client id to anything and it will work?19:05
imbrandonhrm , i think i needed the machine id for another cli app19:05
hazmatSpamapS, as long its the string 'constant' ;-)19:05
SpamapSimbrandon: that -r looks wrong19:05
imbrandonSpamapS: i just added the -r19:05
SpamapSimbrandon: you want a relation ID there.. you can get those from relation-ids19:05
imbrandonand no it dont work19:05
SpamapSJUJU_CLIENT_ID=13 relation-ids -s /var/lib/juju/units/nginx-4/.juju.hookcli.sock loadbalancer19:05
hazmatthere's no context on the agent though outside of executing a hook..19:06
SpamapSimbrandon: that will print all of the relationships under the 'loadbalancer' relation19:06
hazmatfor the cli api to be able to responsd19:06
imbrandonTraceback (most recent call last):19:06
imbrandonFailure: twisted.protocols.amp.UnknownRemoteError: Code<UNKNOWN>: Unknown Error19:06
imbrandon2012-05-29 19:06:23,434 ERROR: Traceback (most recent call last):19:06
imbrandonFailure: twisted.protocols.amp.UnknownRemoteError: Code<UNKNOWN>: Unknown Error19:06
SpamapSah so he needs jitsu?19:06
SpamapSimbrandon: grab juju-jitsu from the PPA19:06
SpamapS0.6 has 'jitsu run-as-hook'19:06
imbrandonSpamapS: well i want to do this from a script19:07
SpamapSimbrandon: thats fine, it will work from a script19:07
imbrandonhazmat: yea thus trying to set up manually :)19:07
imbrandonSpamapS: ahhh ok19:07
imbrandoni'll try that then19:07
imbrandoni thought it forced a tmux session19:07
imbrandoni'm "almost" getting it to work just by poking arround though :) but yea jitsu is likely much easier, but at least i got to konw the dir layout and such better19:08
imbrandonbeen poking arround in /var/lib/juju/* heh19:09
imbrandonSpamapS: is there much/any docs on jitsu ? so i can at least do a lil bit of it with out naggin ya too much19:09
SpamapSimbrandon: --help ? ;)19:10
imbrandonkk19:10
imbrandongood nuff fo me :)19:10
imbrandonbtw i ran accross a bug i think, got a sec to step through the process with me and if so i'll file it19:11
imbrandonok so19:11
SpamapSimbrandon: run-as-hook != debug-hooks19:12
imbrandonsay i fire up 4 nginx plain webservers, no lb or databases , just keep this simple19:12
imbrandonthen from the aws console or via api i attach a eip to one of the nodes19:12
imbrandonzk still keeps the old IP and i cant get to it via juju ssh service/N anymore19:13
imbrandonand when hooks fire it lists the wrong ips etc etc on relations19:13
imbrandonfor that node19:13
SpamapSimbrandon: sounds like a rockin por^H^Herfect webserver19:13
SpamapSimbrandon: yeah, EIP messing with the public-address is a real problem. :-P19:14
imbrandonwell am i missing something, like a zk-relook-at-nodes-ips  or something ?19:14
imbrandonok19:14
imbrandonso it is a bug/known problem and not just me being ignorant ?19:15
SpamapSdamnit.. not installing run-as-hook .. doh19:15
SpamapSimbrandon: its a known problem ys19:16
imbrandonseems like there could be a hook that fires on network changes , and then it could make zk refresh ? heh19:16
jamespagejcastro, looks very similar to hive so should not be that hard to charm19:18
jcastrojamespage: ok so should I have a seperate bug for it?19:18
jamespagejcastro, raise one for the time being19:18
jcastrok19:18
jamespageI think its a distinct charm - but one that will make use of hadoop and zookeeper charms19:19
SpamapSimbrandon: FYI, juju-jitsu 0.6 didn't have run-as-hook like I thought. I just released 0.8 .. you'll have to wait till the PPA builds it (or branch/autoreconf/./configure/make/make install it)19:21
imbrandonkk, i'll got a few other things to do in the meantime i'll wait as long as its been uploaded right ?19:22
imbrandonif not i'll do a co19:22
imbrandonnice, an apt-mirror show stopper bug, looks like i get to do a lil perl brushing up on too this week19:30
imbrandonSpamapS: think i might be able to bribe you for a sponsored upload in 24 or 48 hours to debian ( I'm the listed maintainer and upstream so no nmu or anything , just not a DM or DD so cant actually upload ) I havent talked to my normal DD sponsor in months , no idea if he is arround19:31
imbrandonheh19:31
imbrandontrust me i dont make new releases for it every cycle even, so i wont be making a habbit of it :)19:33
SpamapSimbrandon: sure just throw a .dsc at me. :)19:34
imbrandonty ty , yea i havent even began to clean it up and still need to track down this bug, i'll likely make a round through the debian bts too since i dont release that often just to knock it all out in one go if possible, thus 24 probabbly closer to 4819:35
imbrandonassuming your not feeding a little one by then :)19:36
imbrandoni really should take the time to do the DM process at minimum19:37
imbrandon$someday19:37
imbrandoni want to get Ali's script if its still in use, it was setup so me and one or two others that was regularly sponsored would email a special email address with a signed .dsc and it would autobuild and smoke test it before ali even looked at it and emailed back the results etc like lil dak kinda, assuming that went ok it forwarded it on and then when there was time to finish the review presonally it was uploaded ( normally less than a day ) , pretty19:41
imbrandonfor people19:41
_mup_juju/trunk r538 committed by kapil.thangavelu@canonical.com19:44
_mup_[merge] proposed support, add support for using proposed repository pockets for19:44
_mup_main and universe as a source for juju if specified via juju-origin: proposed.19:44
_mup_[r=clint-fewbar][f=926550]19:44
_mup_Bug #1006099 was filed: unable to set extended desktop <juju:New> < https://launchpad.net/bugs/1006099 >20:08
surgemcgeeAlmost... How many does the world need? I fugure I can do 3 a week.21:54
m_3nice... local provider now adds upstart configs to my local machine that peg the cpu when zk isn't available... the services "respawn" too22:13
SpamapSm_3: #winning22:20
jimbakergood progress22:20
SpamapSm_3: look on the bright side, it doesn't fill up your disk anymore ;)22:20
* SpamapS submits his talk for Linux Foundation's CloudOpen event "Cloning SysAdmins with the Cloud and Juju"22:29
imbrandonnice22:29
imbrandonjuju add-unit sysop22:29
imbrandonjuju add-relation bofh unsuspecting-user-accounting22:31
koolhead17hi all23:08
m_3koolhead17: o/23:08
SpamapSkoolhead17: hey, you should assign yourself as maintainer of the owncloud charm23:10
koolhead17SpamapS, hi there. sure23:11
SpamapSbkerensa: and you should grab subway23:11
koolhead17SpamapS, i been bit off IRC for some reasond23:11
SpamapSkoolhead17: we all need a break sometimes :)23:12
koolhead17SpamapS, i have some more charms to spread :)23:13
bkerensaSpamapS: what?>23:13
koolhead17and owncloud4 has released as well23:13
SpamapS 10 subway              : Benjamin Kerensa <bkerensa@ubuntu.com>23:13
koolhead17m_3, how are things23:13
SpamapSbkerensa: are you subscribed to the juju mailing list?23:13
bkerensaSpamapS: no?23:13
bkerensa>.<23:13
bkerensaI better add myself23:13
SpamapSbkerensa: ahh, ok. You need to assign yourself as maintainer of subway.. add   "maintainer: Benjamin Kerensa <bkerensa@ubuntu.com>" (without the quotes of course) to metadata.yaml23:14
bkerensaSpamapS: yeah I heard thats a new requirement23:14
bkerensawill do23:14
SpamapSm_3: ahem... you too .. nfs, ganglia, node-app, postgresql ... all "yours" ;)23:14
* koolhead17 thinks SpamapS is on assigning mode today :)23:18
m_3SpamapS: yeah, I'll grab maintainer for them... prob friday (moving truck tomorrow morning)23:22
m_3koolhead17: crazy atm23:23
koolhead17m_3, kind of same this side. L(23:24
koolhead17:)23:24
m_3SpamapS: nevermind... done23:30
* m_3 was in default "aahhhh" mode, but it only takes two shakes to update maintainer23:33
SpamapSm_3: thanks!23:35
negronjlSpamapS: how's the list of shame ?23:36
SpamapSnegronjl: about to get a lot shorter :)23:37
negronjlSpamapS: nice23:37
koolhead17negronjl, list of shame? 0.o23:38
negronjlkoolhead17: It's a list that SpamapS has that lists the charms without maintainers23:39
koolhead17ooh ok23:39

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