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

marcoceppidavecheney: you can nag me00:32
marcoceppidavecheney: I'm guessing you want more trusty charms, I'll modify the test runner to test a the charms with tests against trusty and promulgate the successes00:33
davecheneymarcoceppi: you guessed correctly00:41
* davecheney is trying the manual provider for the first time in anger00:41
=== Guest84660 is now known as bodie_
davecheneyaaaaaaaaaaaaand, broke it01:40
rick_h_mission accomplished!01:43
rick_h_it's something I've wanted to try out for rackspace so look forward to hearing how this goes/gets better hopefully davecheney01:43
davecheneyrick_h_: do be fair02:37
davecheneythis was a ppc bug02:37
davecheneywhich causes our mongo to asspolode02:37
davecheneyif that didn't happen it would have worked as advertised02:37
rick_h_davecheney: oh very cool then02:37
davecheneyaxw: knows what he is doing02:38
axw?02:39
axwtalking about things not uninstalling properly?02:40
davecheneynope02:40
davecheneytalking about how manual provisioning would have worked if mongodb didn't SEGV02:40
axwright :)02:40
=== timrc is now known as timrc-afk
=== timrc-afk is now known as timrc
davecheneymarcoceppi: lazyPower is there a LP project for the juju-test plugin ?04:55
davecheneys/a/an04:55
davecheneygammer and shit04:55
=== vladk|offline is now known as vladk
josehey guys! do you know if juju stops the service before a config-changed and then re-starts it?06:56
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
jamespagejose: hello - no it does not09:18
josejamespage: good to know, thank you09:18
josewell, not actually good, but anyways09:18
jamespagejose: the approach I've taken in the openstack charms (written in python) is todo a restart of services conditional on config files changing using the restart_services helper09:22
joseunfortunately, I'm writing on bash, and my python skills are not that good like to write a charm :)09:22
joseI'll see what can I do09:22
joseit's mostly a thing about ports09:22
noodles775Should I need the devel PPA to get 1.17.6 on trusty? I'm only seeing 1.17.4 in trusty/universe, but expected 1.17.6 from the dev email? http://paste.ubuntu.com/7145471/09:50
marcoceppijose: only if you tell yoru charm to do it10:49
zchandermarco11:08
zchandermarcoceppi: How can I  upgrade my local altered charm to my juju environment?11:09
marcoceppizchander: how did you originally deploy the charm?11:09
zchanderI did a deploy from my local disk (juju deploy —repository=$HOME/owncloud_xjm local:owncloud)11:10
* zchander is working on ceph-client connection for ownCloud11:10
marcoceppizchander: the `juju upgrade-charm --repository=$HOME/owncloud_xjm owncloud`11:10
zchanderIt seems the upgrade-charm isn’t copying the new/edited files11:11
zchanderAlso, when I destroy owncloud and redeploy the charm, it seems like it is deploying a cached version11:12
=== dimitern is now known as dimitern|lunch
marcoceppizchander: try this11:20
marcoceppijuju upgrade-charm -u --repository=$HOME/owncloud_xjm owncloud11:21
marcoceppiif you're using 1.16 you'll need the -u, 1.17 you don't11:21
zchanderI am using 1.1611:21
marcoceppithen you'll want to use -u flag11:21
zchanderlfag isn’t defined11:21
zchanderlfag == flag11:22
marcoceppiuh, yeah it should be11:22
marcoceppimgz: ^?11:22
zchanderjuju —version ==> 1.16.6-precise-amd6411:23
mgz`juju upgrade-charm --help` tells you the flags11:24
mgzseems -u was gone in 1.16 too11:24
snewpyis there a way to customize the hostname given to a juju machine when using openstack?11:25
mgzsnewpy: now but your charm can fiddle with it presumably11:26
mgz*no11:26
zchandermgz: Should I use the —switch flag?11:26
mgzzchander: not if it's really a new version, but if you didn't version bump then maybe11:27
snewpymgz: ok, thanks.. that's what i thought, but wanted to check before i go messing with charms to do it11:27
marcoceppizchander: just trying incrementing the number in revision file first11:27
marcoceppizchander: --switch is really for something more...intense11:27
marcoceppisnewpy: if you don't want to fork a lot of charms, you could build a subordinate charm to do it11:27
zchanderAhhh11:28
snewpymarcoceppi: ah, good idea.. thanks11:29
zchandermarcoceppi / mgz: Seems the new/edited file aren’t uploaded11:33
marcoceppizchander: even after incrementing the revision file?11:33
zchanderyep11:34
zchanderI incremented the number 7 to 10…..11:34
marcoceppizchander: what does juju status show for the service?11:34
marcoceppiit should say charm: local:precise/<charm>-10 now11:34
zchanderstarted11:34
zchandercharm: local:precise/owncloud-1411:35
marcoceppiwell, that's why. The current deployed charm is revision 1411:35
marcoceppiif the revision file is less than 14 upgrade-charm won't actually upgrade it11:35
marcoceppiset revision file to 15 and try again11:35
zchanderBut the original deployed charm (if correct) was revision 7 (local)11:36
marcoceppizchander: well, it would seem to be, but the envrionment doesn't lie11:36
marcoceppiwell, the environment can lie, but we have to play by it's game and what it knows of itself11:37
zchanderHmmmmm.. Also foudn a slight typo in the original upgrade-charm script. This also prevented a succesfull upgrade11:43
marcoceppizchander: you can launch debug-hooks11:43
marcoceppijuju debug-hooks owncloud/011:43
marcoceppithen in another terminal run juju resolved --retry owncloud/011:44
marcoceppiback in the first window you can now edit the upgrade-charm hook, fix the typo11:44
marcoceppithen run hooks/upgrade-charm in the same window11:44
marcoceppihttps://juju.ubuntu.com/docs/authors-hook-debug.html11:44
zchandermarcoceppi: Busy in that… ;)11:45
zchanderon == on11:45
zchanderon == in == on :D11:46
jamespagehey marcoceppi11:46
* zchander has fat fingers11:46
marcoceppihey jamespage11:46
jamespagemarcoceppi, how do I go about proposing someone for charmers?11:46
jamespagemarcoceppi, dosaboy has done good work on charm-helpers and the openstack charms (plus associated friends)11:47
marcoceppijamespage: they typically propose themselves. They need to have joined ~charm-contributors and follow this guide https://juju.ubuntu.com/docs/reference-reviewers.html#join11:47
marcoceppijamespage: here's an example dosaboy can use for an application https://lists.ubuntu.com/archives/juju/2014-March/003539.html11:48
jamespagemarcoceppi, ack11:49
overm1ndhi guys11:52
lazyPowerAllo11:52
overm1ndany idea why mysql charm fails on precise?11:52
overm1ndit's my first deploy and I get11:53
overm1nd agent-state-info: 'hook failed: "start"'11:53
=== vladk is now known as vladk|lunch
lazyPoweroverm1nd: whats the unit log say?11:54
overm1ndunit-mysql-0.log right?11:55
lazyPowerIf mysql/0 is the unit thats got the failed start hook11:55
overm1ndok11:55
overm1ndmmm11:56
overm1nd2014-03-24 11:51:14 INFO start stop: Unknown instance:11:57
overm1nd2014-03-24 11:51:17 INFO start start: Job failed to start11:57
overm1nd2014-03-24 11:51:17 ERROR juju.worker.uniter uniter.go:475 hook failed: exit status 111:57
overm1nd2014-03-24 11:51:17 DEBUG juju.worker.uniter modes.go:420 ModeStarting exiting11:57
lazyPoweryou can try to re-run the hook, or you can attach to a debug-hooks session and start the service manually11:59
overm1ndyou mean using juju resolve?11:59
lazyPowerwith the --retry flag11:59
overm1ndso juju deploy mysql --retry12:00
lazyPowerjuju resolved --retry mysql/012:00
overm1ndah ok12:00
overm1ndsame error, I will try to debug12:02
=== lazyPower changed the topic of #juju to: Weekly Reviewer: lazyPower || Welcome!! Docs: http://juju.ubuntu.com/docs || FAQ: http://goo.gl/MsNu4I || Review Queue: http://goo.gl/9yBZuv || Unanswered Questions: http://goo.gl/dNj8CP
=== dimitern|lunch is now known as dimitern
overm1ndon juju debug-log i don't see anything useful12:33
overm1ndnow I will try the debug-hooks12:33
lazyPoweroverm1nd: try attaching to a debug-hooks session and running the start hook interactively, or manually starting the service.12:33
overm1ndbut I was hoping for something more stable12:34
lazyPowerthere has been some discussion around the innodb_buffer size setting, and by default its too large and causes failure.12:34
overm1ndat least for mysql12:34
lazyPowerit affects maybe 1% of all installs, and is inconsistent when it decides to rear its head12:34
=== vladk|lunch is now known as vladk
overm1ndthx lazyPower12:35
overm1ndlet's see what is failing12:35
lazyPoweroverm1nd: if you find the root cause of the hook failing, and you deem it to be a bug please file a new one against the charm itself - https://bugs.launchpad.net/charms/+source/mysql/+bugs?field.status:list=NEW12:38
overm1ndok I hope to find it12:38
lazyPowerattach the unit log to the bug and provide the output from juju status, and juju get mysql12:38
lazyPowerthat way we can reproduce witht he same settings / deployment configuration12:39
overm1ndi'm not a guru :P12:39
lazyPowernever fear, we're here to help12:45
overm1ndlazyPower how can I force to close a previous debug session?12:49
lazyPoweras in you started one and detached from the unit?12:49
lazyPowerjuju ssh unit-#, and find it in the process list (ps aux) then kill the PID of the existing tmux session.12:50
overm1ndI closed the putty shell while it was running12:50
overm1ndok thx12:50
overm1ndworked, nut I cannot use the tmux, something goes wrong, the cursor does not change and lot's of stuff if different from the screen in the docs12:54
lazyPowernot sure what you're telling me overm1nd. Have a screenshot for reference?12:54
overm1ndit's not findind the /bash whewn I write something in the window12:54
overm1ndyes 1 moment12:55
overm1ndhttp://dropcanvas.com/f475012:59
overm1ndusing juju debug-hooks mysql/0 start13:01
lazyPowerhmm... looks like the status line is having an issue displaying over putty. Which is strange - i've used it over putty in the past.13:01
overm1ndI agree13:01
overm1ndmaybe some charset setting13:01
lazyPowerdid it work before i told you to kill the pid of the tmux session?13:01
overm1ndyes13:02
lazyPoweri dont see why that would have an effect on it, but curious that it seems to have caused and issue.13:02
overm1ndthe tmux is like that from the beginning on putty13:03
lazyPowerrogpeppe: Have you seen this behavior out of the debug-hooks session after killing the pid of a previously running debug-hooks session?13:03
rogpeppelazyPower: i've never used debug-hooks, i'm afraid13:03
overm1ndeven the first time when I tried13:03
rogpeppelazyPower: axw might know more about it13:03
lazyPoweraxw: ping ^13:03
* axw reads up13:04
axwlazyPower: sorry don't know the answer to that one13:05
lazyPowerwooo, breaking stuff and stumping devs. Monday is off to a great start :)13:05
bloodearnestjamespage: marcoceppi: heya guys - either of you willing to land my simple charm-helpers branch? https://code.launchpad.net/~bloodearnest/charm-helpers/add-ips-address-to-template-context/+merge/20145513:06
lazyPowerthanks for looking at it axw and rogpeppe13:06
overm1ndehehe I just wanted to deploy a mysql service :P13:06
lazyPoweroverm1nd: what env are you running in? We should probably start from teh top13:06
lazyPowerdestroying that service and re-deploying.13:07
overm1ndI did twice13:07
overm1ndI'm deployng on an emnty machine13:07
overm1ndusing digitalocean env13:07
lazyPowerbare metal? maas?13:07
lazyPowerahhh13:08
lazyPowermanual provider13:08
lazyPowerok, looks like this is more than likely in reference to the innodb pool13:08
overm1ndI got it bootstrapping thx to hazmat13:08
lazyPoweroverm1nd: keep in mind that provider is in alpha state13:08
overm1ndI see13:09
lazyPowerbut, thats not specific to the mysql charm13:09
lazyPoweris the status listing for the unit still failed on the start hook?13:10
overm1nd        agent-state: error13:10
overm1nd        agent-state-info: 'hook failed: "start"'13:10
overm1nd        agent-version: 1.17.6.113:10
hazmatoverm1nd, you might want to up the memory for machines running mysql to 1g13:10
overm1ndok13:11
hazmatafaicr it worked okay for me with 512 though (mysql + wordpress demo)13:11
* hazmat tries again13:11
overm1ndthe droplet is 51213:11
lazyPowerhazmat: is this consistent with what you've seen? I've bootstrapped a 512 machine without any fuss13:11
=== cmagina-away is now known as cmagina
overm1ndis there a way to pass the option to reduce the ram required during deploy?13:12
hazmatlazyPower, i've haven't had any issues with mysql and 512.. but i've seen reports of it wrt to mysql13:12
lazyPowerhazmat: the mailing list suggests otherwise - https://lists.ubuntu.com/archives/juju/2014-February/003421.html  -- all of those users had an excess of ram.13:12
lazyPowerand had to reduce the innodb pool size to get it to start without complaints13:12
hazmatlazyPower, hmm.. are those issues local provider specific?.. local provider containers .. most see the memory of the machine13:13
lazyPowerhazmat: i've seen it reproduced on HP and AWS13:14
lazyPowerlast week i helped 2 users by referencing that post.13:14
overm1ndok seems fixed13:18
overm1ndI just added some swap to test it13:18
overm1ndAnd now it's started13:18
overm1nd:)13:18
lazyPowerNothing like a bit of monday voodoo13:19
lazyPoweroverm1nd: glad its sorted.13:19
lazyPowerhazmat: thanks for the winning suggestion13:19
* hazmat goes through the digital ocean provider pull requests13:20
=== cmagina is now known as cmagina-away
overm1ndhazmat the fix #11 has to be merged :)13:22
hazmatoverm1nd, indeed.. i made the mistake of assuming existing juju users, instead of new juju users on the plugin.. merging13:24
overm1ndlol it's not my day13:25
overm1ndnow wordpress fails baha13:25
=== cmagina-away is now known as cmagina
overm1ndresolve finally, seems the wordpress charm fails if  you destroy the service and deploy again13:32
overm1ndit does not delete all the folders13:32
overm1ndcorrectly13:33
melmothanyone knows my mysql charm's default value for query-cache-size is -1 ? I dont find any mysql doc that tells what a negative value could mean.13:34
melmothand the doc states to disable it, one must set it to 013:34
melmothso i dont get the point of having it set to -1 by default.13:35
hazmatoverm1nd,  fwiw. works for me..  on docean .. http://paste.ubuntu.com/7146314/13:35
hazmatmelmoth, its a computed value by default13:36
melmothhazmat, it make no sense to me.13:36
hazmatmelmoth, "Override the computed version from dataset-size. Still works if query-cache-type is "OFF" since sessions can override the cache t\13:36
hazmatype setting on their own."13:36
melmoth1) its set to -1 in the default config.yaml, and 2) the mysql doc mention it should be a positive value13:36
melmothor 0 if you dont want any cache. So what does -1 mean ?13:37
hazmatmelmoth, its because the mysql charm has knobs that attempt to autoconfigure a number of values13:37
hazmatmelmoth, -1 means use a value computed based on dataset-size config param13:37
melmothis it documented in mysql doc somewhere ?because this setting ends up as it is in the /etc/mysql/my.cnf13:38
melmothand not any value that the charm may have compute13:38
overm1ndhazmat this is bad, I did anything strange this time...13:38
overm1ndmy wordpress now it's not able to access to the db now13:39
overm1ndeven if I tried to remove and add a relation again13:39
overm1nd:(13:39
melmothhazmat, should /etc/mysql/my.cnf set query_cache_size = -1 by default ?  If yes, is there a mysql doc that explain what -1 means ? If no, should i open a bug ?13:39
hazmatmelmoth, there are thousands of mysql params.. the charm has *its own  config params* and interpretation so that you don't need to use those thousands... ie so it can autotune13:40
hazmatmelmoth, your missing the key distinction that this is not simple substitution into my.cnf13:40
melmothwell, it end up with -1 for a positivie variable in a configuration file13:40
melmothi dont think it computed the value correctly then.13:41
overm1ndhazmat I spotted the difference, I'm deployng on the same machine 013:41
hazmatoverm1nd, yeah.. for a 512 mb machine that might be a bit much.. mongo, mysql, wordpress, etc13:43
overm1ndmmm the node ram used in 40%13:43
hazmatmelmoth, what do you have query-cache-type set to?13:44
melmothOFF (default)13:45
melmothall default13:45
melmothjust a simple juju deploy mysql13:45
hazmatmelmoth, yeah.. ic the same.. if its OFF then it is a simple substitution... if its ON, DEMAND the value gets computed13:45
hazmatON or DEMAND that is13:45
melmothto be it looks like  a bug, the chamr should not set query-cache-size in /etc/mysql/my.cnf to a negative value it makes no sense13:46
melmothand i dont undertsand why the default value for it in config.yaml is -113:46
hazmatmelmoth, it does indeed look like a bug13:47
melmothok.thanks :-). ill open a bug.13:48
hazmatmelmoth, fwiw.. bugs against mysql charm can be filed here.. https://bugs.launchpad.net/charms/+source/mysql13:48
melmoththanks, that s exactly what i was about to look for !13:48
gnuoyHi, I'm using juju-core 1.17.4-0ubuntu2 on trusty and whenever I try and terminate my lxc env with "juju destroy-environment local" it errors with "sudo: Sorry, you are not allowed to set the following environment variables: JUJU_HOME". Is this a known issue, I couldn't find a matching bug against juju-core13:50
hazmatgnuoy, sounds like a bug to me..13:58
gnuoyI shall file one then, ta13:58
hazmatgnuoy, sudo -E has a restricted set of env vars it passes through, sounds like maybe in trusty JUJU_HOME got added to that set.. which is going to cause issues for local provider.13:58
gnuoyhazmat, do you know where that set is defined ooi ?13:59
hazmatgnuoy, not sure.. nothing obvious poking through files from dpkg -L sudo14:02
hazmatgnuoy, the /usr/share/doc/sudo/README.Debian has some notes14:02
gnuoyhazmat, thanks, I'll take a look14:02
hazmatgnuoy, try etc_keep+="JUJU_HOME" in /etc/sudoers14:03
gnuoyhazmat, I'll give that a spin, thanks14:04
gnuoyhazmat, do you mean env_keep ?14:06
overm1ndhow can I change the port for a service like juju-gui or phpmyadmin?14:10
overm1nd--open-ports does not work during deploy14:11
lazyPoweroverm1nd: unless the charm exposes that configuration option, its not possible "from juju"14:11
overm1ndok thx14:11
gnuoyhazmat, yep, fixed by adding :Defaults        env_keep += "JUJU_HOME"14:13
gnuoyI'll make a note of that in the bug14:13
yolandajamespage, added postgresql in charm-helpers: https://code.launchpad.net/~yolanda.robla/charm-helpers/postgresql/+merge/21242714:19
overm1ndCan’t select database14:22
overm1ndWe were able to connect to the database server (which means your username and password is okay) but not able to select the wordpress database.14:22
jamespageyolanda, +1 aside from one niggle14:22
overm1ndthis is what I get installing on the same unit mysql and wordpress14:22
yolandajamespage, which one?14:24
yolandaok, i see14:24
yolandacauses of the copy&paste14:25
yolandajamespage, pushed14:27
zchandermarcoceppi lazyPower : Got it! I now have a Ceph volume mounted as data folder in ownCloud14:32
lazyPowerhi5!14:32
marcoceppizchander: BRILLIANT!14:32
zchanderNeeds some more finetuning (including potential) removal of image from Ceph when we destroy the service/relation (desired??)14:33
zchanderBut right now, I have to recommission my node, so I can restart (fairly) clean. Also I had to return to 5.0.12+. ownCloud 6.0.2 gave me no data folder(??)14:34
lazyPowerzchander: i'm a fan of non-destructive execution, and using latest versions of apps.14:34
lazyPowerbut if 6.0.2 is giving you a headache, go with what works ;)14:34
lazyPowerzchander: actually, if you made it a configurable option, off by default, i'd be ok with a destructive stop hook that removes the volume.14:35
lazyPowerso its up to the user, and their expectations are set by the configuration option.14:35
zchanderlazyPower: It’s that I create a 100GB data image in Ceph, adn when removing the relation leaves 100GB reserved :/14:37
* zchander is going to get a coffee, brb14:37
zchanderlazyPower: The relation to Ceph is optional, so I might implement the destructive stop hook. I took the code from the MySQL charm to create the hooks.14:55
zchandermarco14:56
zchandermarcoceppi lazyPower: any of you interested in my changes?14:56
lazyPowerzchander: if you open a merge proposal against the charm i'd be happy to review it14:56
* zchander needs some help with that ;)14:57
lazyPowerzchander: are you registered on launchpad and have your ssh key added to your account?14:57
zchanderNope (not yet)14:58
lazyPowerok, ping me when you've gotten that far :)14:58
=== hatch__ is now known as hatch
zchanderIs it possible to add multiple ssh keys to my account? As I might be working from my iMac at school and my MacBook Pro at home14:59
lazyPowerindeed. I have 2 keys attached to my account at present, but i've seen others with up to 815:00
zchanderlazyPower: ok, got the public key added15:03
lazyPowerzchander: in your owncloud directory, type 'bzr info' - if the parent branch is the ~charmers/charms/owncloud/trunk branch - we're ready to move on to the next step15:04
lazyPowerotherwise you'll have some legwork to do, by fetching the existing branch, and pulling your changes in to stack on top of that branch so the MP is created accurately.15:04
zchanderI’ll branch a fresh copy of the charm and copy my changes into it15:06
zchanderlazyPower: Should I use the ‘charm get’ command?15:07
lazyPowerthat works, it fetches from bzr15:08
zchanderlazyPower: parent branch: http://bazaar.launchpad.net/~charmers/charms/precise/owncloud/trunk/ (changes copied into folder)15:14
lazyPowerok, now you need to push to your personal branch after you've comitted the changes (via bzr add / bzr commit)15:14
lazyPowerbzr push lp:~<your launchpad id>/charms/precise/owncloud/<your branch name>15:14
lazyPoweryou may need to log into bzr before that works though, looking for the docs to do that 1 sec15:15
lazyPowerbzr launchpad-login userid15:16
zchanderCommitted and pushed my changes15:27
lazyPowerok, now we need to create the Merge Proposal. When looking at the branch page on LaunchPad you'll see something similar to the following: http://i.imgur.com/zB4oFPw.jpg15:29
lazyPowerclick that button, fill out the details, assign ~charmers to the MergeProposal and it will ingest into the queue int he next 15 - 30 minutes.15:29
zchanderlazyPower: Where do I assign ~charmers? Is that at ‘Reviewers'?15:33
lazyPowerzchander: correct15:33
zchanderI am not allowed to propose a merge? http://imgur.com/T8aTwPD15:36
lazyPowercan you link me against the MP?15:38
lazyPoweror is it preventing you from making the merge all together?15:38
zchanderI am at the page ‘Propose branch for mrging'15:39
zchanderSeems I cannot merge at all15:40
=== cmagina is now known as cmagina-away
zchanderlazyPower: I’ll get back to this tonight, when I am at home. Although I won’t have much time… ;)15:52
=== zchander is now known as _zchander_
lazyPowerzchander: sorry about that, i'll look into it again later today15:53
overm1ndcan I mix an environment with a manual ?15:54
=== cmagina-away is now known as cmagina
marcoceppioverm1nd: yes16:03
overm1ndthx16:04
overm1ndfyi I tried to deploy wp + mysql on one unit and it fails, on 2 units works ok (as hazmat showed me)16:08
jamespageoverm1nd, have you tried reducing the dataset size via config on mysql?16:09
jamespageit tries to use all of the server's memory by default (80%)16:09
jamespageyou can drop that a bit16:09
overm1ndin the end I used a swap partition and mysql was starting ok16:10
overm1ndalso I resolved the issue with re-installing wp on the same unit16:11
overm1ndbut then I get this error16:11
overm1nd[24-Mar-14 03:21:38] <overm1nd> Can’t select database16:11
overm1nd[24-Mar-14 03:21:38] <overm1nd> We were able to connect to the database server (which means your username and password is okay) but not able to select the wordpress database.16:11
overm1ndand I cannot move forward16:11
overm1ndin any way (tried more than once)16:11
=== rcj` is now known as rcj
jamespageoverm1nd, try reducing the dataset size to 50%16:15
jamespageI have todo that in some of our lxc deployments otherwise nothing else can run16:16
jamespagemysql pre-allocs the memory16:16
overm1ndjamespage but it should fail to start if ram is the problem16:16
overm1ndas it was doing16:16
overm1ndhere is something else, the user an pass were created16:17
overm1ndfor the db16:17
overm1ndis something strange in creating the relation with wp I think16:17
overm1ndby the way i'm testing with more than one now16:18
overm1ndbut thanks for the suggestion16:18
lazyPoweroverm1nd: thats by design. Each unit relationship will get their own user/pass bound to the host initating the relationship. (im 90% sure thats the case)16:25
=== teknico__ is now known as teknico
=== vladk is now known as vladk|offline
=== cmagina is now known as cmagina-away
=== cmagina-away is now known as cmagina
themonkmarcoceppi: hi17:17
themonkmarcoceppi: is juju 1.18 released?17:18
marcoceppithemonk: no, not yet17:18
themonkmarcoceppi: i created apache-mod subordinate charm successfully :)17:19
marcoceppiwoo who!17:19
overm1ndjamespage you suggestion worked, thank you very much!17:21
jamespagenp17:21
overm1ndI wish I could read it in the docs17:21
themonkmarcoceppi: i am going to make it generic so that people can set mod.so as a base64 config data and charm will decode and put it in apache mod location17:21
themonkmarcoceppi: just thinking about it not sure will it be a good idea :)17:22
themonkmarcoceppi: i need in know deep about relation call backs (joined-changed-departed-broken) if provider has only *-relation-joined and requirer has *-relation-changed will it work17:25
josehey guys, is $JUJU_REMOTE_UNIT going to get me the private address of the unit?17:35
marcoceppijose: no, relation-get private-address will17:36
josethanks17:36
marcoceppi$JUJU_REMOTE_UNIT is in the format of service/#17:36
marcoceppilazyPower: didn't you work on a charm that was able to move between MySQL and SQLite?17:36
lazyPowermarcoceppi: Seems familiar, but not that I recall.17:41
lazyPowerlet me look17:41
lazyPowermarcoceppi: i think we're thinking of the scale-out usage of errbit where it migrates from localhost mongodb => shared mongodb17:42
zchanderping lazyPower18:17
lazyPowerzchander: o/18:17
zchanderWhat could it be that I cannot propose a merge?18:18
overm1ndcan I have multiple charms relations with a haproxy instance as frontend?18:20
=== zchander_ is now known as zchander
kirklandjcastro: marcoceppi: question about charmtools/quickstart ...18:41
kirklandjcastro: marcoceppi: why does it generate README.ex rather than README.md?18:41
kirklandjcastro: marcoceppi: Altoros is asking this;  they noticed that it prevents github from pretty printing it in the web interface18:41
lazyPowerkirkland: readme.ex is intended to be an example template to guide your readme.md off of18:43
lazyPoweri think that was more of an immediate identifier that it hasn't been populated, and should be renamed/edited.18:43
kirklandlazyPower: hmm, it would be much nicer if it just created README.md, and then you edit it18:43
kirklandlazyPower: and profit18:44
lazyPowerWant to open a bug against charm tools or shall I?18:44
kirklandlazyPower: would be wonderful if you could, and copy me on it (kirkland)18:45
kirklandlazyPower: cheers!18:45
lazyPowerkirkland: ack. Will do18:46
kirklandlazyPower: woot :-)18:46
jcastroyeah the .ex is a template18:46
jcastrothough iirc charm tools lints against the contents anyway, so I think could just make it .md18:47
lazyPowerjcastro: already on the bug - making that point in the bug :)18:48
jcastrowe also support README.rst too18:48
jcastroso maybe that's why we don't make that explicit18:48
lazyPowerhttps://bugs.launchpad.net/charm-tools/+bug/129689218:48
_mup_Bug #1296892: Template Generator creates Readme.ex instead of Readme.md <Juju Charm Tools:New> <https://launchpad.net/bugs/1296892>18:48
manjiriHello! Is there a way to specify cloud-init user-data for juju?18:53
marcoceppikirkland: if you run charm proof, proof will WARN when there's a README.ex18:56
kirklandmarcoceppi: cool, thanks18:56
kirklandjcastro: cool, thanks;  I really think just README.md would be the cleanest, simplest, most human approach18:57
marcoceppikirkland: sure, I'll try to get that in to the next release19:00
=== hatch__ is now known as hatch
kirklandmarcoceppi: you rock!  ciao!19:15
cjohnstonmarcoceppi: is there a way to open a port using the ansible playbook?19:26
marcoceppicjohnston: probably19:27
=== roadmr_nothere_f is now known as roadmr
lazyPowerzchander: sorry for the delay, i had a standup among other things happening around me19:36
lazyPowerzchander: one of two things happened. And I'm not positive on which19:37
zchander;) No problem19:37
zchanderI am @home right now and in no hurry19:37
lazyPowerzchander: can you try opening the merge proposal again, but this time, not assigning anyone before creating the MP? just enter the topic branch, your branch, and try the proposal?19:38
zchanderI am going to sport in a few minutes, so maybe we can continue tomorrow19:38
lazyPowerah ok - sorry i missed the free window. Ping me and i'll do my due dilligence19:38
lazyPowercjohnston: command open-port works.19:39
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
zchanderlazyPower: No problem.. It is still for testing the setup before we consider deploying it in production at school19:40
zchanderSee/hear you tomorrow again....19:40
lazyPowero/ looking forward to it zchander19:40
=== Ursinha is now known as Ursinha-afk
cjohnstonlazyPower: ta19:42
lazyPowercjohnston: i've got some sample code up for gitlab-ci in ansible if you want to use it as a reference19:43
lazyPowerreview/comments welcome and appreciated19:43
cjohnstonlazyPower: sure..19:44
lazyPowerhttps://launchpad.net/~lazypower/charms/precise/gitlab-ci/trunk19:44
cjohnstonta19:44
=== Ursinha-afk is now known as Ursinha
Fishy__would a juju maas environment spin up any local LXC vms?20:25
Fishy__for a management server or something20:26
marcoceppiFishy__: it /could/ if you did a juju deploy --to lxc:MACHINE_NUM where MACHINE_NUM is a maas machine already allocated to juju20:39
Fishy__i want to blow everything away and start using a new maas setup20:39
Fishy__my maas bootstrap is dying20:39
Fishy__was wondering if due to leftovers from my local goofing off days20:40
* lazyPower ponders on using juju to deploy maas to deploy juju...20:40
marcoceppilazyPower: you can, we have maas and vmaas charms20:41
Fishy__well maas server is running20:41
Fishy__now i need to make a juju environment20:41
Fishy__that can do stuff to it20:41
Fishy__but juju bootstrap diez20:41
lazyPowermarcoceppi: i may do that when I reconfigure my "juju lab" after the new disks arrive mid week.20:42
Fishy__sudo juju bootstrap ERROR could not access file '2129bfad-9494-4ed0-82d1-63ee5c268117-provider-state': Get http://192.168.1.1/MAAS/api/1.0/files/2129bfad-9494-4ed0-82d1-63ee5c268117-provider-state/: dial tcp 192.168.1.1:80: connection timed out20:42
Fishy__not sure where it is getting that IP from20:42
Fishy__"192.168.1.1"20:42
marcoceppiFishy__: don't run sudo for maas bootstraps, as a starter20:43
marcoceppiFishy__: try juju destroy-environment --force20:43
marcoceppiFishy__: 192.168.1.1 is what juju thinks the maas server is located20:44
Fishy__its at 4.120:44
marcoceppiFishy__: edit environments.yaml and change maas-url if it's not at 192.168.1.120:44
Fishy__ok looking20:44
Fishy__genius20:46
marcoceppiFishy__: you may have to delete ~/.juju/environments/maas.jenv if you're still getting 192.168.1.1 errors20:47
* marcoceppi isn't sure what version juju you're on20:47
Fishy__juju --version 1.16.6-precise-amd6420:48
Fishy__deleted that file20:48
Fishy__its going to fail in a different way now20:48
Fishy__juju bootstrap WARNING no tools available, attempting to retrieve from https://juju-dist.s3.amazonaws.com/ ERROR cannot start bootstrap instance: cannot run instances: gomaasapi: got error back from server: 409 CONFLICT20:48
Fishy__that conflict is what I originally worried about being a lxc vestage20:48
Fishy__as my maas IP is the same as I had set my lxc up to20:49
marcoceppiFishy__: which LXC, LXC on your computer or the LXC network on MAAS master?20:50
Fishy__none right now20:50
marcoceppiFishy__: also, 409 conflict means a few things20:50
Fishy__i killed it all20:50
marcoceppitypically it means it can't request a machine20:50
Fishy__my computer i am on used to run LXC for a juju local. killed it.  now runs a maas server20:50
marcoceppiFishy__: do you have machiens listed as ready in your MAAS api?20:50
Fishy__ok good20:50
Fishy__thats the error I expect20:50
Fishy__its off, and want to make WOL or something turn it on20:51
Fishy__can't turn it on and do a normal boot, because the i have 2 dhcp servers on the network and the maas one loses20:51
marcoceppiFishy__: you can configure maas to use your external DHCP instead of setting it's dhcp server rogue on your network20:52
Fishy__ha that works, except for the network boot part20:52
Fishy__current dhcp server has a PXE boot to cobbler20:52
Fishy__which i want to delete20:52
Fishy__but can't yet20:52
Fishy__till 100% maased20:52
marcoceppiFishy__: ahh20:53
Fishy__thought about mac address filtering on cobbler server, block all the cobbler machines?20:53
Fishy__err block all the future maas machines...20:53
marcoceppiFishy__: possibly, I've always just given MAAS it's own network20:53
Fishy__ya and that is the end state20:54
marcoceppicool20:54
Fishy__i want to kill all redhat20:54
marcoceppi( ͡° ͜ʖ ͡°)20:55
Fishy__redhat/ubuntu mixed network is no bueno20:55
marcoceppiWell, I'm sure they place nice in isolation. I'm guessing you're using Cobbler to setup you RH machines?20:56
Fishy__the guy who quit did20:56
=== hatch__ is now known as hatch
themonkdoes amy one know why '{"port":{myport}}'.format({'myport':'9999'}) is geting KeyError: '"port"' and how to fix it?21:05
themonkmarcoceppi: why '{"port":{myport}}'.format({'myport':'9999'}) is geting KeyError: '"port"' and how to fix it?21:11
roadmrthemonk: try doubling ({{ }}) the first and last brackets on the string:21:11
marcoceppithemonk: I have no idea, I rarely ever use python formatting21:11
roadmr'{{"port":{myport}}}'.format({'myport':'9999'})21:11
marcoceppithemonk: I typically just do '{"port":%s}' % 999921:11
roadmrthemonk:  try that, you'll advance one error ahead :)21:12
marcoceppithemonk: I typically just do '{"port":%s}' % "9999"21:12
=== timrc is now known as timrc-afk
roadmrthemonk: also, the value argument to format can't directly be a dictionary, it must be named arguments as for a function21:14
roadmrthemonk: this works: '{{"port":{myport}}}'.format(myport='9999')21:14
roadmrthemonk: if you already have the dictionary from elsewhere, expand it with .format(**your_dictionary)21:14
roadmrthemonk: with your in-line dictionary, this trick works:21:14
roadmr'{{"port":{myport}}}'.format(**{'myport':'9999'})21:14
themonkroadmr: its working now thanks man :)21:19
themonkroadmr: i am curious to know why it needs extra second bracket ?21:21
roadmrthemonk: you always need to escape control characters somehow. Otherwise, format thinks that everything inside the first set of brackets is a key specification21:26
roadmrthemonk: (but I didn't invent this, I just googled it)21:26
=== cmagina is now known as cmagina-away
=== roadmr is now known as roadmr_afk
themonkroadmr: i was googleing it too :) thanks. now i am facing another problem my format function sometime gets normal string with {myport} place holder and sometime gets json string with {myport} plase holder :)21:31
=== cmagina-away is now known as cmagina
=== timrc-afk is now known as timrc
hazmatmarcoceppi, in amulet how do you reference self charm? ie deploy self.. via ?21:58
marcoceppihazmat: self.charm is the name of the charm that's being deployed21:59
marcoceppihazmat: what are you trying to get at?21:59
hazmatmarcoceppi, and that will preferentially pick up the current charm dir vs a charm store charm?22:00
hazmatmarcoceppi, ie.. if i'm in a wordpress charm, and i do deployment.add('wordpress') .. will i get my wordpress charm .. or the one from the store22:00
marcoceppihazmat: right, so if you have self.charm_name set to the name of the charm being deployed, and you d.add that charm name it'll use os.getcwd() as teh charm path. So it assumes that amulet tests are running from the CHARM_DIR22:01
hazmatie.. do i need to defined JUJU_REPOSITORY and local: for my charm22:01
marcoceppihazmat: you can just set JUJU_TEST_CHARM environment varialbe22:01
marcoceppiinstead of setting it explicitly in the test22:01
marcoceppithat's what the juju test plugin sets when executing tests in  the CHARM_DIR22:01
hazmatmarcoceppi, thanks.. will explore some more22:02
marcoceppihazmat: ack, there's a bug being fixed in 1.4.1 where if the charm is not a bzr charm, deployment will fail22:02
marcoceppithat should be out later tonight22:02
hazmatmarcoceppi, hmm.. k, good to know.. current charms being tested are all github based.22:04
marcoceppihazmat: right, figured since you were sprinting that you were working with gh charms22:04
hazmatmarcoceppi, yup.. thanks for the heads up22:04
hazmatmarcoceppi, so even in a regular test (not amulet).. its kinda of tricky deploying self..22:05
marcoceppihazmat: yeah22:05
hazmathave to create a repo and series dir,  and symlink parent or copy parent22:05
hazmatick22:05
marcoceppiit's always been a hairy situation, even with the old juju test plugin22:05
=== ajmitch_ is now known as ajmitch
=== cmagina is now known as cmagina-away
=== cmagina-away is now known as cmagina
=== cmagina is now known as cmagina-away

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