/srv/irclogs.ubuntu.com/2014/03/18/#juju.txt

rick_h_lazyPower: bpython :P00:06
lazyPowerrick_h_: googling - hang on00:06
lazyPowersexy, does it have an integrated breakpoint thingy too?00:06
lazyPowerand yes, thats the techinical definition, breakpoint thingy.00:07
rick_h_http://stackoverflow.com/questions/9892751/is-it-possible-to-use-bpython-as-a-full-debugger00:08
lazyPowerboo - requires a wrapper00:08
rick_h_yea, I use it as my python repl but yea ipdb for pdb quick in00:09
lazyPoweri had no idea this existed, i've been complaining about a lack of pry since i started this journey00:09
lazyPowernow i can finally shut my face hole and get back to coding00:09
lazyPowerand with that, its time for me to steam. o/  have a good evening everybody. See you in the am00:10
lazyPowerdavecheney: Hey before i jet, i saw your message. I'm not positive on which package provides charm-helpers-sh but i'm fairly certain its not up to snuff00:18
lazyPowerhttps://launchpad.net/ubuntu/precise/amd64/charm-helper-sh - it appears there is a package for it in precise - which release are you using?00:18
davecheneylazyPower: not precise00:20
davecheneylazyPower: the one we can't announce yet00:20
davecheneyrunning on the computer only banks can afford00:20
davecheneylazyPower: marcoceppi has a fix in progress https://code.launchpad.net/~marcoceppi/charms/precise/mysql/lp1293315/+merge/21136000:21
lazyPowerwell it appears the last release was for quantal, i'm not seeing it in saucy00:21
lazyPoweryeah i just got that email. right on.00:21
lazyPowerGlad to see its being sorted, didn't want to leave you hanging since you asked me implicitly00:21
lazyPowerta00:21
davecheneylazyPower: no worries00:24
davecheneythere will be plenty more bugs00:24
=== thumper-gym is now known as thumper
davecheneywhile we remove the implicit assumption that there is only one series00:24
hatchis anyone else getting agent-state-info: '(error: container failed to start)' with 1.17.5 and local envs?00:40
hatchon precise00:40
davecheneyhatch: can you get some details from ~/.juju/local/log/*.log00:43
hatchdavecheney sure, checking00:44
hatchdavecheney all-machines.log is empty00:45
hatchmachine-0 has00:46
hatch2014-03-18 00:31:59 WARNING juju.worker.instanceupdater updater.go:231 cannot get instance info for instance "": no instances found00:46
hatch2014-03-18 00:32:19 ERROR juju.container.lxc lxc.go:211 container failed to start: container failed to start00:47
hatch2014-03-18 00:32:19 ERROR juju.provisioner provisioner_task.go:407 cannot start instance for machine "1": container failed to start00:47
hatch2014-03-18 00:32:29 WARNING juju.worker.instanceupdater updater.go:231 cannot get instance info for instance "": no instances found00:47
hatchand that's repeated for every instance after as well00:47
davecheneyhatch: brillant00:48
davecheneyenterprise grade00:48
davecheneyhatch: what series are you using ?00:48
hatchprecise00:48
davecheneyyou can't use precise00:48
davecheneylocal provider is not supported on precise00:48
sarnoldno? aww00:48
davecheneykernel is too crap00:49
hatchlies! I've been using precise for ever00:49
davecheneylxc is too crap00:49
davecheneyhatch: all i can tell you is what I know00:49
davecheneylocal provider is not supported on precise00:49
hatchseriously though, this worked just fine before the latest update00:49
davecheneyhatch: we're both saying things that are true00:49
marcoceppihatch: delete the files in /var/cache/lxc/cloud-precise and try again?00:49
hatchlxc really isn't supported on precise? It's just been working by fluke this whole time? lol00:50
hatchmarcoceppi trying00:51
sarnoldthe lxc team does have a PPA you can use on precise, and maybe with a newer HWE kernel stack and that PPA it might work, but probably be just as unsupported :)00:51
davecheneysarnold: exactly00:52
sarnoldheh actually I think I used pyjuju and lxc on precise way back when :)00:53
hatchmarcoceppi looks like that worked!00:54
marcoceppiwhen in doubt, clear the cache00:54
hatchhaha yeah I totally blanked on that, thanks00:55
hatchnow I can get back to working on the ghost charm again00:55
=== hatch__ is now known as hatch
=== Ursinha-afk is now known as Ursinha
josehey guys, any charmers around06:42
jose?06:42
=== vladk|offline is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
=== vladk is now known as vladk|away
=== vladk|away is now known as vladk
vladkjam, good morning07:59
jamvila: ping, it looks like official 1.17.5 binaries *were* uploaded to HP cloud, in the official bucket. If you unset "tools-metadata-url" I believe it will select the right bucket for you08:31
vilajam: ha ! Interesting, I've been having issues uploading to hp starting... yesterday and I'm trying to diagnose that with support. I will try to unset the tools-metadata-url as soon as I can, thanks for the feedback !08:36
jamvila: let me know if it works08:36
vilajam: trying, just got 2014-03-18 08:40:13 INFO juju.environs.bootstrap bootstrap.go:58 picked newest version: 1.17.508:41
vilajam: sounds encouraging ?08:41
jamvila: I believe if it got there, it found the tools08:42
jamthough I also see them in the official location finally: http://streams.canonical.com/juju/tools/releases/08:42
=== CyberJacob is now known as CyberJacob|Away
vilajam: bootstrapped, deploying08:47
jamyay08:47
vilanode 0 agent-version: 1.17.508:48
vilajam: still bitten by the 'broken pipe' on swift upload we do before the deployment :-/08:58
vilajam: juju is not involved there, that's the issue I'm tracking with hp08:59
=== rogpeppe1 is now known as rogpeppe
=== BradCrittenden is now known as bac
zchanderGood afternoon, everyone. Anyine around who can help me with Ceph/Juju/MaaS with physical PCs with one drive (only /dev/sda) installed13:05
=== vladk is now known as vladk|away
jcastrosinzui, hey do we test on windows 8.1? http://askubuntu.com/questions/435928/installing-juju-client-on-windows-8-114:29
=== hatch__ is now known as hatch
=== cmagina is now known as cmagina-away
marcoceppimbruzek: can you review something right quick for me14:48
mbruzekyes14:48
mbruzekWhat  is it?14:49
marcoceppihttps://code.launchpad.net/~marcoceppi/charms/precise/mysql/lp1293315/+merge/21136014:49
=== vladk|away is now known as vladk
=== marcoceppi changed the topic of #juju to: Weekly Reviewer: mbruzek || Welcome!! Docs: http://juju.ubuntu.com/docs || FAQ: http://goo.gl/MsNu4I || Review Queue: http://goo.gl/9yBZuv || Unanswered Questions: http://goo.gl/dNj8CP
=== hatch is now known as negatron
=== negatron is now known as hatch
=== cmagina-away is now known as cmagina
=== cmagina is now known as cmagina-away
=== cmagina-away is now known as cmagina
=== cmagina is now known as cmagina-away
sinzuijcastro, the test is on win 2012 server15:09
mbruzekmarcoceppi, reviewed.15:14
mbruzekmarcoceppi, Can you remind me if the UnitSentry.file_contents() runs as root or as ubuntu?15:14
jcastrosinzui, I can test on win 8.115:14
marcoceppimbruzek: everything sentry i sroot15:15
mbruzekOk thanks.15:15
=== cmagina-away is now known as cmagina
sinzuijcastro, I believe win 2012 server is 8.1 without the gui15:16
jcastrosinzui, filed a bug, I can confirm we are broken on windows 8.116:15
sinzuijcastro, did you use 1.17.5? Trunk is broken with all windows at the moment16:20
jcastroI am using what's on the website, 1.16.616:20
sinzuijcastro, thank you16:25
sinzuijcastro, marking a bug confirmed just delays it from being triaged. We see the new bugs first16:38
jcastrooh sorry about that, I marked it confirmed because another person had the same problem, I'll remember that moving fwd.16:39
viperZ28_Does Juju have an ability to ensure the number of instances requested stays running?16:45
viperZ28_i..e. I have a RabbitMQ cluster with 2 units, one of the machines goes down, does Juju have the ability to start another instance or attempt to restart the downed instance?16:46
sinzuijcastro, would you be able to also test 1.16.5. I suspect a signing issue, and it may to Bug #128887316:46
_mup_Bug #1288873: Installing juju windows binarys fails on windows 7 <windows> <juju-core:Incomplete> <https://launchpad.net/bugs/1288873>16:46
sinzuijcastro, I got signed binary differently for 1.16.6 and 1.16.5 I wonder is a proper signing will fix the issue16:47
* sinzui is thinking signing is the issue because that cannot be tested16:49
=== niemeyer_ is now known as niemeyer
josehey guys, can anyone give me a hand on how should I use the mysql charm?17:01
viperZ28_https://www.irccloud.com/pastebin/Asm6AF5E17:01
jcastrojose, just ask!17:04
jcastrosinzui, that's interesting17:04
sinzuijcastro, I am looking for the presigned binary I sent to IS17:04
josejcastro: so, I want to charm openphoto but uses mysql, how do I get the credentials?17:05
* sinzui removed it from the milestone when the signed version was delivered :(17:05
jcastroanything I can do to help? broken on windows is bad17:05
jcastrojose, https://juju.ubuntu.com/docs/interface-mysql.html17:05
viperZ28_so it looks like Juju does not have ability to enforce runtimes only startup17:07
josejcastro: so if I run `relation-get user` I will get the user for the db as a string? as simple as that?17:07
jcastroyessir17:08
=== vladk is now known as vladk|offline
josejcastro: was that a yes to viper or to me?17:09
jcastroto you17:09
rick_h_jcastro: <3 that doc /me wants more!17:10
jcastrojose, if you want to debug it live, do a `juju debug-hook` into the unit17:10
jcastroand you can run the commands in the hook context17:10
josethat's awesome17:10
jcastrorick_h_, yeah I wish we had one for every interface17:10
josethanks a bunch, going to work on that now :)17:10
jcastroviperZ28_, what are you trying to do?17:10
viperZ28_In my test I brought up a multi-node RabbitMQ cluster, I then took one of the machines out using `lxc-shutdown`,17:11
viperZ28_Juju did not try to restart the machine or spin up another one17:11
jcastroah yes, there's been some discussion around that17:12
viperZ28_I was hoping Juju would sense the downed machine and make an attempt to restart it17:12
viperZ28_jcastro: was anything decided?17:12
jcastroI am trying to find the discussion17:12
viperZ28_I am also looking for plans to integrate with vSphere/ESX stack17:15
jcastroyeah I think one of the guys in #juju-dev would know better17:16
viperZ28_jcastro: thanks17:21
sinzuijcastro, I must congratulate myself in my effort to make sure the non-signed 1.16.6 never got out.17:22
jcastroheh17:23
sinzuijcastro, I can provide the 1.16.7 that was made when I incremented 1.16.6. I can remake 1.16.6 with the original tarball.17:23
jcastrosinzui, whatever you think is best, I only want us to work again on windows17:24
sinzuiwell I should remake and ask for a resigning. We can then test both17:24
josehey, let's say I want to relate mysql and ubuntu for testing purposes, how should I?17:27
lazyPowerjose: if the charm doesn't implement the expected relationship hooks, what you ask is nigh impossible17:41
lazyPowerjose: pick a charm that has a :db relationship and you should be able to relate them via juju add-relation17:41
joseit's fine, as it's just for testing I'm installing mysql locally17:41
lazyPowerwell i dont understand what you're trying to do, there's no application on either end to support it. If you're just going to get/set the data exchange as an experiment?17:42
joseI'm trying to do a deploy of phpbb and wanted to relate it with the mysql charm17:42
joseso if it works then I just copy it over17:43
lazyPowerhttps://github.com/charms/wordpress/blob/master/hooks/db-relation-changed - here's an example of how the wordpress charm does it17:43
lazyPowermediawiki is another good one to reference.17:44
joseso, if wp doesn't have a relation with mysql, does it still run?17:44
jose(I understand not)17:45
lazyPowerit doesnt do anything, it no-ops until the relationship is present17:46
lazyPoweri have a charm written in chef thats optimized for single host / scale out operation - its got a few bugs that need to be worked out though.17:48
lazyPowernamely, it re-seeds the scale database with seed data on add-unit, and the secret-key is not present until first run, and chef is dealing me fits considering its pre-compiled on run, so i have to figure out how to lazy load it, but thats a horse of a different color17:49
=== vladk|offline is now known as vladk
jcastromarcoceppi, arosales: ok so I have a card, republish charm school schedule18:29
jcastrohow do we feel about just declaring "the first friday of every month"? Barring holidays18:29
arosalesjcastro: are you thinking once per month?18:30
jcastroyeah + any ondemand18:30
jcastroI have the topic list, we just need to pick the next topic18:30
jcastromarcoceppi, how about Juju plugins?18:30
marcoceppijcastro: we can do tath18:31
marcoceppiit's a short one18:31
marcoceppione we can probably do out of band18:31
arosalesjcastro: suggest to schedule 2-3 months out if you are looking at 1 charm school / month18:32
jcastrook18:32
arosaleswe may need to see how if that is too little or just right18:32
jcastrohey we never did "troubleshooting Juju"18:33
arosalesas we do more and record on specific topics though the video resource library grows18:33
jcastrothat could be a nice 2 parter, go deep, we've never done that before18:33
jcastroand it's on the list to do18:33
arosales+1 on trouble shooting part 218:33
marcoceppijcastro: we should do the troubleshooting next18:33
arosales+1 on juju plugins18:33
marcoceppiwe can talk for hours on that18:34
jcastroyeah so18:34
jcastroplugins18:34
jcastrotroubleshooting 118:34
arosalesosx and windows workflows18:34
jcastrotroubleshooting 218:34
jcastroand then I can put the rest of the topics on there, see what people want18:34
jcastroarosales, ooh, those are good18:34
jcastrowe should do the workflow one before release18:34
jcastromaybe do 2 in april? one with marco(plugins), one with chuck(OSX workflow?)18:35
arosalesjcastro: maybe sneek in an "intro to charming" every other month around the 15th18:35
jcastrolazyPower ^^ what do you think18:35
arosalesjcastro: that also sounds good18:35
* lazyPower thumbs up18:35
jcastromarcoceppi, ok you are 6 april18:37
jcastrolazyPower, you are 11 april18:37
lazyPowernext month is going to be crazy busy18:37
sarnoldwelcome aboard :)18:38
lazyPowerjcastro: on the eco calendar?18:38
* lazyPower didn't look - because lazy18:38
jcastrono, Ubuntu Fridge calendar, since it's a public project-wide thing18:38
jcastroIt will send invites18:38
lazyPowerhokay18:38
jcastroI'll add it to your work calendar too18:38
josejcastro: is it fine if you do it at uonair?18:38
joseI'd love to see it there18:39
jcastroyeah, I need to know how to use the account though, I don't remember how18:39
joseI can walk you through again, I have all the credentials and everything set18:39
jcastroactually, if you just jet me a mail that would be <318:40
josewriting that now!18:40
josejcastro: do you still have the password or should I resend it?18:41
jcastroI do not18:43
jcastroSorry for the calendar spam everyone!18:43
sinzuijcastro, I added a win installer for you to test https://bugs.launchpad.net/juju-core/+bug/129419818:47
joseyou have mail, jcastro!18:47
_mup_Bug #1294198: Juju package doesn't work on Windows 8.1 <windows> <juju-core:Triaged by sinzui> <https://launchpad.net/bugs/1294198>18:47
sinzuijcastro, I am going to do the reverse. I will feed the signed juju into CI. I hope it fails, because I can add a step to retest the signed win installer to ensure we don't post crack18:48
sinzui\o/ jcastro the signed win installer is rejected by CI.18:52
* sinzui tries the previous installer18:52
mbruzekI am running trusty and lxc18:53
mbruzekHas anyone seen this error18:53
mbruzekhttp://pastebin.ubuntu.com/7115719/18:53
mbruzek'(error: container "mbruzek-local-machine-1" is already created)'18:53
mbruzekIt is preventing my amulet tests from completing.18:54
mbruzeklazyPower, marcoceppi ^ ?18:54
marcoceppimbruzek: sudo lxc-ls --fancy18:54
mbruzekhttp://pastebin.ubuntu.com/7115730/18:55
sinzuijcastro, CI accepts 1.16.5's win installer. We know the signing is bad, and we can test it18:55
mbruzekstopped machines?18:55
marcoceppimbruzek: destroy environment18:56
mbruzekI saw this error before and destroyed environment at that time18:56
mbruzekI will also run my clean up script to get rid of the lxc18:56
marcoceppimbruzek: after you destroy environment18:56
marcoceppisudo lxc-ls --fancy18:57
mbruzekempty after I ran the clean up script18:57
marcoceppimbruzek: try bootstrapping again18:57
mbruzekSure.18:58
jcastrosinzui, I will give it a shot18:59
* sinzui ponders deleting the signed win installer from the release and uploading the unsigned.19:03
fishy_Is upgrading lxc on ubuntu 12 going to break everything?  My lxc-ls doesn't have a --fancy and I am jealous19:07
jcastrosinzui, works!19:17
=== varun_ is now known as Guest25908
Guest25908juju sync-tools is struck in lisint target bucket. what could be the problem?19:19
Guest25908its not showing any output..19:19
Guest25908*listing19:19
fishy_sudo lxc-ls --fancy ls: unrecognized option '--fancy' Try `ls --help' for more information. ls: unrecognized option '--fancy' Try `ls --help' for more information.19:20
marcoceppifishy_: lxc-ls --fancy is lxc-ls on precise19:21
fishy_that just lists machines, not IPs and such19:23
marcoceppifishy_: well, there's nothing wrong with upgrading lxc that I'm aware of, though you mihgt need a newer kernel19:25
fishy_sounds dangerous19:26
=== CyberJacob|Away is now known as CyberJacob
fishy_real problem:  i started a wordpress guy in a local environment and exposed him ala tutorial.. cannot get to him in browser.    Tried adding IPtables rule like so: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 10.0.3.93:80     .  Still no luck..19:27
fishy_lxc is doing something weird with the bridge19:28
fishy_by default19:28
lazyPowerfishy_: can you ssh to the unit with juju ssh wordpress/0?19:32
fishy_ya can get in that way19:32
fishy_just not though the external IP19:32
lazyPower...external ip?19:33
lazyPowerOH! you mean you've deployed an lxc container on another machine and you want to route that traffic into the lxc container(s)19:33
fishy_        open-ports:         - 80/tcp         public-address: 10.0.3.7319:33
fishy_no its on my box19:33
fishy_i want to just go over loopback to it19:33
lazyPowerhmm, whats your bridge interface? lxcbr0?19:33
fishy_ya19:33
lazyPowerand you get timeouts when pinging it? is your network on the 10.0.3.x octet?19:34
fishy_i think 10.0.3.x is used by some real machines on my network19:34
lazyPowerprobably having an ip collision then19:34
fishy_so pings hit that..  that was my first idea19:34
fishy_ok, back to how to change LXC network19:34
lazyPowerthat or the service isn't actually up19:34
lazyPowerthats configurable in... 1 sec19:34
fishy_i do have 1 error in juju status I should look at too19:35
fishy_  mysql:     charm: cs:precise/mysql-37     exposed: false     relations:       cluster:       - mysql       db:       - wordpress     units:       mysql/0:         agent-state: error         agent-state-info: 'hook failed: "start"'         agent-version: 1.16.6.1         machine: "2"         public-address: 10.0.3.10319:35
lazyPowerthere's the issue19:35
lazyPowerwordpress didn't actually do anything19:35
lazyPowerit noop's on setting up the web interface until the mysql host has joined.19:35
fishy_because it couldnt talk to mysql?19:35
fishy_ok19:36
lazyPowerthat may be a bit misleading, it does stuff19:36
lazyPowerbut you wont be able to get to it unless that completes successfully19:36
fishy_2014-03-18 19:32:30 ERROR juju.worker.uniter uniter.go:350 hook failed: exit status 119:36
fishy_from the wordpress log19:36
lazyPowerwhich hook?19:36
lazyPowerstart?19:36
fishy_yes19:37
lazyPowertry juju resolved -r mysql/0 -- if its a temporary hiccup, it should resolve itself on the re-run of the hook.19:37
fishy_2014-03-18 19:32:27 INFO juju.worker.uniter uniter.go:348 running "start" hook 2014-03-18 19:32:27 INFO juju.worker.uniter context.go:255 HOOK mysql stop/waiting 2014-03-18 19:32:30 INFO juju.worker.uniter context.go:255 HOOK start: Job failed to start 2014-03-18 19:32:30 ERROR juju.worker.uniter uniter.go:350 hook failed: exit status 119:37
fishy_same, need to find real logs19:38
lazyPowerfishy_: better yet, lets interactively debug it19:39
lazyPowerjuju resolved -r mysql/0; juju debug-hooks mysql/019:40
lazyPowerit'll be a race to see if it attaches to the tmux session before the hook re-runs, but 90% of the time, it works19:40
fishy_awesome19:40
lazyPowerotherwise, you just re-run juju resolved -r mysql/0 after you've attached (in a sep. terminal)19:40
lazyPowerthen you can re-run the hook that failed, eg: `hooks/start`19:41
lazyPowerif you get no output, add the xtrace to the top of the hook "set -eux"19:41
lazyPowerand then re-run it and see where it turned into a bowl of chunky salsa19:41
fishy_mysql/0:start % hooks/start stop: Unknown instance:  start: Job failed to start19:42
lazyPowerah19:43
lazyPoweralter line 5 to read as follows19:43
lazyPowerservice mysql start || service mysql restart19:43
fishy_line 5 of what?  in the tmux?19:43
lazyPowerlooks like it never started up in the config-changed hook19:43
lazyPowerthe start hook in hooks/start19:43
fishy_mysql/0:db-relation-joined % ./start  start: Job failed to start stop: Job has already been stopped: mysql19:44
lazyPowerinteresting19:44
lazyPowermarcoceppi: this happened before, it was due to a memory tuning bug right?19:45
lazyPoweror am i remembering some ancient workaround?19:45
fishy_was ./start the right way to execute the start hook?19:45
fishy_or do I need to do some more magic19:45
lazyPowernah thats it if you're in $CHARM_DIR/hooks19:45
fishy_ya19:46
lazyPowerhowever, typically you path it with hooks/start from $CHARM_DIR usually, as charms written in bash assume they are being called from $CHARM_DIR19:46
lazyPowerjust a bit of info to keep in mind moving forward19:46
fishy_what did set -eux do19:46
lazyPowersets explicit, xtrace, and i forget what u does19:47
fishy_i know e19:47
fishy_cool19:47
lazyPowerset -u makes Bash check whether you have initialised all your variables. If you haven't, Bash will throw an error about unbound variables.19:47
lazyPowerah! thats right. strict mode19:47
fishy_nice19:47
sinzuijcastro, One more test. IS resigned the installer. https://launchpad.net/juju-core/1.16/1.16.6 has the signed version that CI liked. Does your machine like it too?19:47
lazyPowerfishy_: well, i dont remember the exact cause of this bug but there is a mailing list post about it19:48
lazyPowerlet me try to fish it up for you19:48
fishy_The hook im "stuck on" is db-relation-joined19:49
fishy_could it be something that hook did that broke me19:49
fishy_that now is making start break19:49
lazyPowerwait, "stuck on"19:49
fishy_my tmux window title19:50
lazyPoweri dont kno what youv'e done so far, i was under the impression the service was stuck on the "start" hook19:50
fishy_is db-relation-joined19:50
lazyPowerdid you exit from the start hook? as db-relation-joined would be the next hook in the sequence.19:50
fishy_= thats the step im on?19:50
lazyPowerthat debug-hooks interactive tmux session is like a queue, when you complete one hook context it moves into the next automatically19:50
lazyPowerand db-relation-joined is what creates the myql user, database, password and hands off the information to the requesting charm, so without an active mysql daemon on the host, it will fail to do anything19:51
fishy_      mysql/0:         agent-state: error         agent-state-info: 'hook failed: "db-relation-joined"'19:51
fishy_makes sense19:51
josehey guys, how can I make a loop which ends when a statement is true?19:51
josethat's in bash19:51
fishy_you can ram your statement in a while block19:52
fishy_like its 199619:52
lazyPowerjose: http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html19:53
lazyPowerfishy_: https://lists.ubuntu.com/archives/juju/2014-February/003421.html19:53
lazyPowerhere's the thread19:53
joseuh, looks neat, thanks!19:53
fishy_hum my innodb_buffer_pool_size is set to 20 GB, that seems suspicious19:55
fishy_investigating mysql19:55
mbruzekfishy_, http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html19:55
mbruzeksorry that was for jose.19:56
mbruzekBut it looks like lazyPower was all over that one19:57
josembruzek: thanks! btw, any chance you already checked the mailman charm?19:57
mbruzekNot yet, there are a few other charms ahead of it on the queue19:58
joseok then :)19:58
mbruzekI will try to get to it as soon as possible.19:58
fishy_where do hooks live inside a container19:58
lazyPowerfishy_: are you still in your tmux session19:58
josefishy_: /var/juju/ I think19:59
fishy_nope ;/19:59
lazyPower/var/lib/juju/agents/unit-<service>-<unit#>/charm/hooks19:59
lazyPowerif you're in hook context, you have an environment variable $CHARM_DIR19:59
lazyPowerso, use either/or depending on context20:00
fishy_i dont see any env vars set20:00
fishy_after a juju ssh20:00
lazyPowerright, you *have* to be in the context of an executing hook to get those env variables20:01
lazyPowerjuju is very judicious in keeping its environment to itself.20:01
fishy_and debug hooks is how you do that?20:03
fishy_got mysql up:  mysql    23066  0.4  0.5 1485292 129720 ?      Ssl  20:01   0:00 /usr/sbin/mysqld20:03
lazyPowercorrect. so long as you're in one of those titled tmux sessions, you're in a hook-execution-context20:03
lazyPowerotherwise, you have none of the amenities, and its just a plane ole tmux session20:04
fishy_fancy20:04
lazyPowercool - what was the fix for you? changing the innodb size?20:04
=== vladk is now known as vladk|offline
fishy_yah from 20GB down to 1GB20:05
fishy_and a restart of mysql20:05
fishy_however that value is populated seems wrong20:05
fishy_my machine has 24GB ram.. but giving 20 to mysql seems excessive20:05
fishy_i guess on a 1 GB vm, giving it 756MB wouldn't be bad20:06
lazyPowerfishy_: i hate to be a bother, but could you file a bug with those findings for me? +1 that it affects you and give us a brief summary of what you did to correct the problem? the more feedback we have on this the better the charm will be for future users.20:07
lazyPowerhttps://bugs.launchpad.net/charms/+source/mysql20:07
fishy_yes20:08
fishy_while I type that up..  any pointers on changing my LXC IP range to not conflict?20:08
lazyPowerExcellent, ping me with the bug URL after its filed.20:08
lazyPowerah right - i forgot about that 1 moment20:08
lazyPowerfishy_: you edit the network in /etc/default/lxc20:09
lazyPowerfisy_: http://paste.ubuntu.com/7116089/20:10
lazyPoweraside from having the bridge be br0 (which unless you create that bridge, wont be available to you) - that's what the config will look like.20:10
lazyPowerand apparently some stray backslashes got in there when copy/pasting, strange...20:11
lazyPowerso yeah, disregard the bridge and the random backslashes.20:11
fishy_reported https://bugs.launchpad.net/charms/+source/mysql/+bug/129433420:13
_mup_Bug #1294334: mysql charm blows up on out of memory error <mysql (Juju Charms Collection):New> <https://launchpad.net/bugs/1294334>20:13
lazyPowerfishy_: thanks! You should be emailed when a fix lands and the bug is resolved.20:16
lazyPowersorry that was such a long winded fix too - but its intermittant in when it decides to rear its ugly head. I've been tracking that one on and off for about a month now.20:18
fishy_i still never saw a good error anywhere20:20
fishy_should have ended up somewhere20:20
fishy_but at least i have set up mysql enough to know when I see a crazy param20:21
lazyPoweryeah, that was the proposed work around in the mailing list too was to reduce the innodb buffer pool20:21
lazyPowerthing is, when i deploy mysql in lxc, i dont see that behavior, and haven't since i was on the 1.16 series of juju20:22
fishy_on a local deploy?20:22
lazyPowerthen again, i'm tracking the devel releases now - are you on the ppa:juju/stable release?20:22
lazyPowerright20:22
fishy_do you have a ton of ram on your machine20:22
lazyPower8gb, fairly normal size for a light weight dev rig20:22
fishy_ya it may only manifest with a lot of ram20:23
fishy_like 2420:23
fishy_i am on whatever tutorial said, assume stable20:23
lazyPowerWell, my juju farm in the closet has 32gb of ram, and doesn't do that either20:23
lazyPoweryeah, you would be on stable, we dont recommend people use devel unless you want shiney features and the iniability to safely upgrade (or so i've been told, ymmv, i haven't done it)20:23
fishy_i think i need   a) machine with 24g ram.   b) swap sapce disabled.     c) about 15gb of other stuff open20:23
fishy_could be part of my setup20:24
lazyPowerwell, by default when deploying to lxc i dont see the cause/effect for having a 20gb innodb cache - you're not exactly serving up the wikipedia database - however - there are those using lxc in production20:24
lazyPowerso thats a slippery slope20:24
fishy_well and if i deploy it to a 20GB machine with nothing else on it20:25
fishy_nothing better to use it for20:25
lazyPowerfishy_: if you need anything else dont hesitate to ping! I'm going to stuff my head back in a terminal20:25
fishy_assume most 20GB machines want a big cache20:25
fishy_ok thanks20:25
=== timrc is now known as timrc-afk
marcoceppilazyPower: I've got 32gb, but mysql doesn't have any issues on my machine20:32
lazyPowermarcoceppi: its strange how intermittant it is. we've confirmed 3 cases of it being silly now20:33
lazyPowersebas, daniele, and now fishy - my issues resolved when i jumped to 1.17.4 - not sure WHY that made a difference, and may be coincidental20:33
=== whit_ is now known as whit
varun123i am trying to install juju, in https://help.ubuntu.com/community/UbuntuCloudInfrastructure inside install juju it says "juju requires ssh keys to be able to access the deployed nodes" here which node does deploy nodes refer to?20:47
lazyPowervarun123: everything deployed with Juju uses key based authentication. You will not be given accounts with username/password combinations.20:48
varun123okay.20:48
varun123so we need to create ssh keys for all nodes?20:49
lazyPowerJuju will handle that for you. When you run juju init on the station you will be performing your orchestration from, the keys are generated and placed in ~/.juju/ssh20:50
jcastroI think in the past we didn't generate keys automatically20:50
jcastrowhich is why we say that20:50
lazyPowerits a good callout too - i can see where people would be confused. Not everybody does keybased authentication, even though they should be.20:50
lazyPower</my 2 cents>20:51
varun123okay but juju init u meant juju bootstrap? because juju-quick-start doesnt say juju init20:51
varun123*by20:51
joseguys, should I use db-relation-joined or db-relation-changed for when a DB starts a relation with my charm?20:56
lazyPowerjose: authors choice. Do you want to run the code on everytime something changes on the db unit?20:57
josenot at all, just run the code when the relationship is done to set up some config files20:57
=== timrc-afk is now known as timrc
lazyPowerjose: sounds like a joined hook to me21:09
joseok then :)21:09
timrcjuju destroy-service really needs --force and --with-fire options.  The --force option is self-explanatory the --with-fire option is basically an alias of --force but conveys a higher level of frustration :)21:50
timrcEspecially important while developing and testing a charm :)21:50
marcoceppitimrc: ;)21:53
=== whit_ is now known as whit
=== cmagina is now known as cmagina-away
=== thumper is now known as thumper-afk
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha

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