/srv/irclogs.ubuntu.com/2014/01/17/#juju.txt

=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== timrc is now known as timrc-afk
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== mwhudson is now known as zz_mwhudson
noodles775marcoceppi: Hi! So with 1.17.0 I get a bit further with amulet - now jujuclient is erroring with 'state watcher was stopped' - http://paste.ubuntu.com/6766988/ If that's familiar, let me know. I'll start digging.09:53
=== rogpeppe2 is now known as rogpeppe
=== nate_finch is now known as natefinch
marcoceppinoodles775: it's a know dwployer/juju bug13:37
noodles775marcoceppi: OK, so how are you working around it when you test amulet using juju 1.17.0??13:39
* noodles775 checks for the bug (sorry, the two ?? there is just because of net-lag :P)13:40
marcoceppijust run the rest a second time without destroying env13:40
marcoceppinoodles775: let me see if i can find it13:42
noodles775marcoceppi: oh - as in, you write your first amulet test to simply create the environment, then other files in tests/* are run with the existing already-setup env? (I'd assumed each file would be run with a freshly-bootstrapped env)13:44
marcoceppinoodles775: you /can/ do that, but juju-test is designed to destroy environment before each test file13:45
marcoceppinoodles775: what you can do is just run the tests again without destroying environment, IE: tests/01-amulet-test-name13:45
marcoceppiit'll fail with https://bugs.launchpad.net/juju-deployer/+bug/126951913:45
_mup_Bug #1269519: Error on allwatcher api <juju-core:In Progress by rogpeppe> <juju-deployer:Confirmed> <https://launchpad.net/bugs/1269519>13:45
marcoceppithen just run the test again and deployer will pick up where it left off13:46
noodles775marcoceppi: oh? Let me try that (I'd assumed it creates a separate deployment).13:46
marcoceppinoodles775: no, juju test files expect to have a clean environment, they don't actually destroy anything13:47
marcoceppinoodles775: since amulet uses deployer, deployer just picks up where it left off13:47
noodles775Yeah, I was assuming that the test files expect a clean env (and wasn't doing any destroying), but didn't realise I could re-run the test and have it pick up where it left off. Great. Thanks!13:48
marcoceppinoodles775: np! Just know that's not normal behavior of the juju test plugin, the test plugin (which executes each test file) does the destroying, bootstrapping, and log archival. The tests can be written in anything (amulet, for example)13:52
rogpeppemarcoceppi: can you reproduce that bug?13:56
rogpeppemarcoceppi: i really don't have much to go on until i see a way to reproduce it - nothing jumps out in the code13:56
marcoceppirogpeppe: not personally, but lazypower and mbruzek both can13:56
marcoceppiand noodles775 just encountered the issue as well13:56
mbruzekHello rogpeppe which bug are we talking about13:57
rogpeppelazypower, mbruzek: it would be great if you could add the way you can reproduce the bug to the #126951913:57
_mup_Bug #1269519: Error on allwatcher api <juju-core:In Progress by rogpeppe> <juju-deployer:Confirmed> <https://launchpad.net/bugs/1269519>13:57
mbruzekrogpeppe, I just did it today, it happens when I run an amulet test on my local juju environment13:58
mbruzek1.17.0-trusty-amd6413:59
=== gary_poster|away is now known as gary_poster
mbruzekI can send you the amulet test if you like?13:59
rogpeppembruzek: if you could post a from-scratch way that you can reproduce it to that bug, that would be marvellous, thanks!13:59
rogpeppembruzek: better to attach it to the bug report, i think14:00
mbruzekYes absolutely.  My only concern is there is nothing special I am doing, no complicated setup.14:00
* noodles775 can do that too, I've got a public branch.14:01
mbruzekAnd I have not committed my amulet test14:01
mbruzekno wait it is committed just not pushed,  will update bug14:01
noodles775rogpeppe: my repro instructions too - I'll add them to the bug. http://paste.ubuntu.com/6768177/14:26
=== jam1 is now known as jam
Ming_What is best way to layout my charm source if I want to support multiple Ubuntu release?  I see most charm has precise/<charm name>. But seems I need change it saucy/<charm name> if want to deploy the charm on Ubuntu 13.1014:55
Ming_at lest with local provider14:56
marcoceppiMing_: that's correct, typically people will create ~/charms/{precise, saucy}, then put their charm in precise, and symlink it to saucy15:01
Ming_k. thx15:03
Ming_Does charm must use suggested template for the shape?  Our company has rule on logo/icon. I have hard time to select background color.15:17
Ming_I mean charm icon15:18
marcoceppiMing_: yes, if you want the charm in the charm store it should follow our charm icon guidelines. Depending on the icon we may be able to make exceptions15:21
marcoceppiMing_: you should email juju@lists.ubuntu.com about that15:21
Ming_Thanks Marco.  We talked before in the workshop you and Jorge provided.15:23
marcoceppio/ awesome welcome back15:23
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
noodles775marcoceppi: after calling d.configure() to change some charm configs after an initial deployment, what needs to be called to do the juju set's? (I expected d.configure() to do that, but it just sets some state in a local dict).16:03
lazypowerd.setup() i believe16:13
* noodles775 tried that, but the expected config change didn't happen... it works fine with juju set though. I'll keep digging, thanks lazypower16:14
marcoceppinoodles775: this is a bug atm16:18
mbruzekSo configure does not set the values?16:20
Ming_Can I call "relation-get" and "relation-set" in config-changed hook?16:25
marcoceppimbruzek: it does, just not after deployment16:27
marcoceppiMing_: not easily16:27
marcoceppinoodles775: https://bugs.launchpad.net/amulet/+bug/127017416:28
_mup_Bug #1270174: Post deployment commands <Amulet:Triaged by marcoceppi> <https://launchpad.net/bugs/1270174>16:28
lazypowerMing_, Its best practice to create relational hooks to work with any data coming over the wire for the relationship.16:28
Ming_but I cannot configure our cluster when all nodes are ready. I want to manually trigger the action through configure-changed16:30
mbruzekHello Juju.  I am encountering a problem with my local LXC environment.  When I run juju status I see16:31
mbruzekagent-state-info: '(error: container "mbruzek-local-machine-1" is already cr16:31
mbruzekeated)'16:31
marcoceppimbruzek: you had a dirty stage16:31
mbruzekI recognized this as a clean up error that jorge reportd in bug 122714516:31
_mup_Bug #1227145: Juju isn't cleaning up destroyed LXC containers <cts-cloud-review> <local> <papercut> <juju-core:Fix Released by thumper> <https://launchpad.net/bugs/1227145>16:31
mbruzekMarco I cleaned up since my last bootstrap and I watched the script remove those files16:32
marcoceppiMing_: there is a way to do this, the relation hooks set special environment variables, so you'll need to record these for each unit then when you want to run the commands you'll need to loop through the available units on the relation and set the -r flag for relation-get/set16:32
marcoceppiMing_: I don't know off the top of my head and I'm not at my main computer to get you exact details, you may want to mail juju@lists.ubuntu.com or ask on http://askubuntu.com/ with the tag juju and Ican get back to you (or someone else) with more details16:33
mbruzekmarcoceppi, you are right I remembered to run the script16:33
Ming_Sure. thx16:33
=== rogpeppe1 is now known as rogpeppe
mbruzekBut I see they were directories rather than files16:34
marcoceppimbruzek: yes, they're the contents of the LXC container16:34
mbruzekmy scritpt tried to rm those rather than rmdir or rm -rf16:35
mbruzekThanks16:35
mbruzekfixing that16:35
rogpeppenoodles775: i didn't get too far with your instructions - i get this error when trying to run 00-single-node-install: http://paste.ubuntu.com/6768907/16:51
rogpeppenoodles775: is "requests" a python module that i should apt-get from somewhere?16:51
rogpeppembruzek: ^16:51
lazypowerrogpeppe, sudo apt-get install python-requests16:52
rogpeppelazypower: ta!16:52
mbruzekrogpeppe, I don't have import requests in my code16:53
mbruzekDo I ?16:53
rogpeppembruzek: the third line in 00-single-node-install ?16:53
mbruzek00-single-node-install is not my code16:53
mbruzekNot the one I posted.  basic_deploy_test.py16:54
mbruzekThat is the one in the tests directory16:54
marcoceppimbruzek: I think it's a bad dep on the amulet package16:54
mbruzekOK16:54
marcoceppisince amulet uses requests16:55
mbruzekyeah I got it16:55
rogpeppeha, it barfs on my environments.yaml16:56
MingIs there a way to broadcast an event to every node? change configuration variable persist the change so is not desired in this case16:56
MingHI Marco, I sent the email to juju@lists.ubunut.com16:57
* rogpeppe hates yaml, once more16:57
mgzrogpeppe: when in doubt, just write json :)16:58
rogpeppemgz: i do, and i did16:59
rogpeppemgz: but the python yaml parser barfed on it16:59
rogpeppemgz: it didn't like my tab characters16:59
rogpeppemgz: perfectly valid json :-)16:59
rogpeppembruzek: i was trying to follow Michael Nelson's (noodles775?) instructions, since they seemed a little more specific, but it's not working for me; i'll try yours17:00
rogpeppembruzek: should i get juju-deployer via apt-get or branching a repo?17:02
mbruzekI am in a meeting, I didn't do anything to juju-deployer17:03
mbruzekI used apt-get to get juju-deployer17:04
* mbruzek is in a meeting17:04
rogpeppembruzek: thanks17:07
rogpeppembruzek, noodles775: i got a traceback from the code, but the issue itself doesn't seem to have reproduced (i don't see the "state watcher was stopped" error mentioned in the bug description and logs)17:08
rogpeppeah, sorted that out17:15
rogpeppembruzek, noodles775: reproduced! thanks v much for the test case17:19
mbruzekgreat17:19
rogpeppembruzek, noodles775: found the bug, i'm pretty sure18:42
mbruzekGreat18:42
rogpeppemarcoceppi: ^18:42
marcoceppirogpeppe: excellent!!!!!18:42
rogpeppemarcoceppi: the issue is that if a client connection goes three minutes without sending a Ping, it gets terminated18:43
rogpeppei'm not sure that's actually what we should do for a client connection, but i'm pretty sure that's the culprit18:43
marcoceppirogpeppe: is it something we can patch in on jujuclient python lob? to juat send a ping18:47
rogpeppemarcoceppi: probably18:47
rogpeppemarcoceppi: except that the python library doesn't allow concurrent requests, which is a bit of a problem18:48
rogpeppemarcoceppi: so no, i think it might not be possible to fix without fixing that client lib18:48
rogpeppemarcoceppi: we could probably just turn off the ping requirement for non-agents.18:50
rogpeppemarcoceppi: it's really there so that we know when agents are still alive18:50
marcoceppirogpeppe: thatd be great18:50
rogpeppemarcoceppi: i objected to this feature when it was implemented originally FWIW18:51
* rogpeppe likes naivity18:51
mbruzekHello Juju.  I am trying to use juju 1.17.0-trusty-amd64 with trusty and a local lxc environment.19:07
mbruzekI am aware of the clean up commands that Jorge put on askubuntu19:07
mbruzekWhen I bootstrap a clean local environment it comes up ok, but when I try the first deploy I see the following in my juju status19:08
mbruzekagent-state-info: '(error: symlink /var/lib/lxc/mbruzek-local-machine-1/co19:08
mbruzeknfig19:08
mbruzek      /etc/lxc/auto/mbruzek-local-machine-1.conf: no such file or directory)'19:08
mbruzekI can paste bin the whole thing, if that helps19:08
mbruzekI am certain the /var/lib/lxc/mbruzek-local-machine-1 directory was cleaned up from the script19:10
mbruzekhttp://paste.ubuntu.com/6769679/  <- Whole juju status19:10
mbruzekDoes anyone on the juju team have an idea?19:10
mbruzekof what is wrong19:10
mbruzekIt looks similar to Jorge's bug 122714519:12
_mup_Bug #1227145: Juju isn't cleaning up destroyed LXC containers <cts-cloud-review> <local> <papercut> <juju-core:Fix Released by thumper> <https://launchpad.net/bugs/1227145>19:12
mbruzekBut I used the commands he has to clean up after a destroy-environment and can not get anything to deploy on my local env19:12
mbruzekThat bug is linked to 123854119:14
rick_h_mbruzek: yea, I have the same issue. I assumed it was trusty/lxc bits getting sync. Looking at that bug looks ilke it's set for 1.17.119:16
mbruzekis there any way I can get that version?19:16
rick_h_sinzui: what's the next release timeframe that might include that?19:16
mbruzekCan I add the dev repository ?19:16
sinzuirick_h_, maybe next week.19:17
mbruzekWhat package is it in so I can watch for it?  juju-core?19:18
sinzuimbruzek, you can add the dev repo. 1.17.x does not work with 1.16.x and it is unstable; it is not suitable for production use yet19:18
sinzuimbruzek, that's right, juju-core19:18
mbruzekI am trying to make progress on amulet tests for the eco team19:19
rick_h_mbruzek: bring up a non-trusty venv?19:19
mbruzekRight will do that.19:19
mbruzekThanks for clarification rick_h_ and sinzui19:24
mbruzekI will look for this next week19:24
mbruzekand work on a different env in the mean time19:24
sinzuimbruzek, I can provide precise, saucy, and trusty debs that we build for testing19:25
sinzuimbruzek, http://162.213.35.54:8080/job/prepare-new-version/ always shows what we built for testing19:26
mbruzekThat is great now I know where to look.19:26
jcastromarcoceppi, this one is all you: http://askubuntu.com/questions/407010/413-request-entity-too-large-nginx-1-1-1919:32
rogpeppembruzek, marcoceppi: i've proposed a fix: https://codereview.appspot.com/5381004519:44
adam_gthe mysql charm is not deployable on newer ubuntu versions. when can we expected trusty charms to start showing up?21:01
jcastroadam_g, probably in the next few weeks21:55
=== medberry is now known as med_
=== gary_poster is now known as gary_poster|away
arosalesdoes anyone know what the tools-url for aws is off hand?23:21
* arosales is working around https://bugs.launchpad.net/juju-core/+bug/1254401 23:22
_mup_Bug #1254401: error reading from streams.canonical.com <bootstrap> <juju-core:Fix Committed by wallyworld> <https://launchpad.net/bugs/1254401>23:22
arosalesI thought it was tools-url: http://juju-dist.s3.amazonaws.com/tools23:22
wallyworld_arosales: try http://juju-dist.s3.amazonaws.com/23:47
wallyworld_without the /tools at the end23:47
arosaleswallyworld_, thanks I did get aws bootstrapped with     tools-url: https://juju-dist.s3.amazonaws.com/tools23:48
arosalesI needed to remove .juju/environments/aws.jenv first though23:48
wallyworld_ok23:48
=== scuttlemonkey_ is now known as scuttlemonkey

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