/srv/irclogs.ubuntu.com/2013/05/15/#juju.txt

=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== rvba` is now known as rvba
=== rogpeppe2 is now known as rogpeppe
davidbanhamHi all, interested in juju, but want to clarify something. Does juju provide any mechanism for running multiple units (processes) per computer? The docs read like a new EC2 instance (or equivalent) is spun up for each new unit.08:41
b_hi juju folks :)08:43
b_i was wondering if there's any tutorial online on getting some juju + linode magic going08:43
=== ehg_ is now known as ehg
=== freeflyi1g is now known as freeflying
=== wedgwood_away is now known as wedgwood
marcoceppiJust so I don't keep spinning my wheels, there's no way to get a charms metadata programatically without first branching the charm?13:10
SpamapSmarcoceppi: IIRC the charm store used to provide it via a simple GET13:20
marcoceppiSpamapS: thanks, I'll poke that code for a bit. See if it's still there13:20
=== dannf` is now known as dannf
marcoceppiSpamapS: looks like it exposes some high level data about the charm, but doesn't actually provide the full metadata for the charm. Thanks for the tip though13:33
SpamapSmarcoceppi: I used to run a nightly tarball of all the bzr branches ...13:34
SpamapSmarcoceppi: if you ask IS, they might still have my old crontab.. ;)13:34
SpamapSmarcoceppi: was quite useful for "wtf I need a full repo now"13:34
marcoceppiSpamapS: Yeah, I was thinking about tapping in to the tpaas service we have running for graph testing, since that has a local cache of all the charms, it'd just be nice to have it all in one central place13:36
tabibitohi, I was wondering if someone could help me with juju, I'm receiving following error when trying to bootstrap to EC2: ERROR 301 Moved Permanently13:37
tabibitoTried recreating the environment a few times13:38
tabibitoversion is 0.713:39
marcoceppiHi tabibito, what version of juju are you using? (dpkg -l | grep juju)13:39
marcoceppiBeat me to it :)13:39
tabibito:)13:39
marcoceppitabibito: Are you trying to deploy to a specific region? if so what's the region line look like in the environments file?13:39
tabibitocurrently it's looking like this: region: eu-west-113:40
tabibitobut even if I don't use a region, I get the same result13:40
* marcoceppi tries to bootstrap with 0.713:40
tabibitoExtra info: If I do a juju status, I see following error: ERROR Cannot connect to environment: 301 Moved Permanently13:41
tabibitoTraceback (most recent call last):13:41
tabibito  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 43, in run13:41
tabibito    client = yield self._internal_connect(share)13:41
tabibitoError: 301 Moved Permanently13:41
marcoceppitabibito: I'm not able to replicate with and without region on 0.7 Do you have an EC2_URL environment variable (or something similar) set in your shell?13:43
tabibitonot that I know of … How can I check?13:44
marcoceppitabibito: `env` but if you don't think you have it set then odds are you don't13:45
tabibitono don't see any EC2_URL13:45
tabibitostrange13:45
marcoceppitabibito: run "juju -v status" and paste the output to a pastebin please13:46
marcoceppierr, when  you try to bootstrap too, if you haven't gotten a successful bootstrap yet13:46
tabibitobootstrap: http://pastebin.com/gTyH8HCg13:48
tabibitostatus: http://pastebin.com/MpDeK3vs13:48
marcoceppitabibito: darn, I was really hoping it would show the URL it was trying to connect to13:50
tabibitoenvironment(sanitized):http://pastebin.com/YDNWBdTZ13:50
tabibitoI know right! … That would be easier to troubleshoot :)13:50
marcoceppitabibito: shot-in-the-dark, what if you used precise as your default series (Most all charms are written for precise anyways, and we typically recommend deploying to LTS)13:51
tabibitosame thing13:51
tabibitoTried with precise, quantal ...13:52
tabibitoI'm using 13.04 now, but I also tried with 12.04… results are the same, so it must be something I do… or :)13:52
marcoceppitabibito: You've got me puzzled, Ususally when you get a 301 from AWS it's because it's not looking at the right endpoint URL. I can't exactly replicate but opening a bug on LP or asking on Ask Ubuntu might get better traction than what I have to offer13:53
jcastromarcoceppi: flagbearer charms in 5?13:54
jcastroI can start the hangout13:54
marcoceppijcastro: cool, just point me at a URL13:54
* marcoceppi looks for a brush13:54
SpamapSjcastro: oh btw, your adobo made my breakfast amazing today (and btw, no clumping here)13:54
tabibito@marcoceppi thanks … I'll keep digging and if all fails I'll post a bug or go to Ubuntu13:55
jcastrohttps://plus.google.com/hangouts/_/fa6dea509240bfe96361ee99a233312bebed02b0?authuser=0&hl=en13:55
jcastrofor those who want to join13:55
jcastroSpamapS: tah, I think it was a bad bottle on my end13:56
tabibitomarcoceppi, I found it … needed to enter the EC2 and the S3 uri for the specific region and use HTTPS14:05
tabibitoduh14:05
marcoceppitabibito: interesting14:08
tabibitoindeed14:08
tabibitoexit14:44
tabibitobye14:44
=== scuttlemonkey_ is now known as scuttlemonkey
=== victorp_ is now known as victorp_uds
hazmatSpamapS, incidentally theres a new txzk for debian inclusion15:51
SpamapShazmat: ty, will upload ASAP15:54
irossiHi Robert, are you there? It's Ian.15:58
irossiI've got the go ahead to deploy our Cloud 1.0 on MAAS/Juju15:58
irossiBut now I'm hitting a major blocker15:58
jamespagebbcmicrocomputer, ^^16:02
bbcmicrocomputerirossi: hey, let's take this off channel16:05
dpb1When using juju-core, destroy-service seems to be not as "reliable" as it was in pyjuju.  I.e., if there is some kind of service error, I can't destroy the service successfully.  The agent state changes to "dying" and then sits there16:14
dpb1I'm actually not sure how to recover from this state.16:15
Makyodpb1, maybe similar to #1168154 or #1168145?16:17
_mup_Bug #1168154: Destroying a service in error state fails silently <juju-core:Confirmed> <https://launchpad.net/bugs/1168154>16:17
_mup_Bug #1168145: Destroying a service before it reaches started or running does not destroy the machine <juju-core:New> <https://launchpad.net/bugs/1168145>16:17
ubot5`Launchpad bug 1168154 in juju-core "Destroying a service in error state fails silently" [High,Confirmed]16:17
_mup_Bug #1168154: Destroying a service in error state fails silently <juju-core:Confirmed> <https://launchpad.net/bugs/1168154>16:17
ubot5`Launchpad bug 1168145 in juju-core "Destroying a service before it reaches started or running does not destroy the machine" [Undecided,New]16:17
_mup_Bug #1168145: Destroying a service before it reaches started or running does not destroy the machine <juju-core:New> <https://launchpad.net/bugs/1168145>16:17
MakyoOops..16:17
dpb1wow, dualing bots16:17
dpb1Makyo: checking those, looks similar.16:18
hazmatdpb1, juju resolved a few times.. or use juju-deployer -W -T16:19
hazmatit works around the issue by resolving the unit16:19
dpb1hazmat: yes, looks like resolved frees it up, thx.  Makyo: 1168164 looks like the issue, thx16:20
sinzuihi. I am pondering a deploy of charmworld and juju-gui behind a single apache to manage the ssl endpoint. I think I can create a vhost template to defines two reverse proxy relations, because each relation has a service name, such as jc-squidrev17:56
sinzuihi charmers. I want to write a unittest for the mongodb charm. I have written an function that should be independent of the juju environment so could be a simple python unit test. Are there any examples of this being done before?18:01
marcoceppisinzui: There's no real examples of unit testing yet. We have an idea for how it should look but nothing solid yet18:02
sinzuimarcoceppi: hmm, would my test be rejects if I included one with instructions to run it?18:03
sinzuis/rejects/rejected/18:03
marcoceppisinzui: for unit testing the charm? Probably not18:03
sinzuiokay, I think it is worth trying at least.18:04
sinzuiwedgwood, ^ any thoughts about 2 reverseproxy relations for a single apache charm deploy18:04
marcoceppisinzui: we're open to see how people want to do this. We were kicking around the idea of having charms stub most of their hooks and put a lot of logic in lib/<service-name> and then tests for that in lib/<service-name>/tests something like that18:05
marcoceppiagain, that's just a thought, we'd be interested to see how charm authors start tackling this18:06
wedgwoodsinzui: marcoceppi: that's not quite true. I believe that the haproxy and apache2 charms have unit tests.18:08
sinzuiI don't see any tests in apache218:11
* sinzui pulls haproxy18:11
sinzuithank you wedgwood, I see an example in haproxy18:14
sinzuimongodb is similar so this helps me a lot18:14
hazmatsinzui, i've got some in my aws-* charms re unit tests18:47
sinzuihazmat, fab, will I find them under ~hazmat on Lp?18:47
hazmatsinzui, yeah.. here's one lp:~hazmat/charms/precise/aws-elb/trunk18:48
sinzuiI got it. Thanks hazmat18:50
benjisinzui: the juju-gui charm has some unit tests (if I gather correctly what you're looking for)18:51
sidneisinzui: https://bazaar.launchpad.net/~sidnei/charms/precise/haproxy/trunk/files/head:/hooks/tests/ it's not merged yet18:52
sidneiwedgwood: ^ it's only merged into canonical-losas18:53
sinzuithanks benji, sidnei.18:54
sidneihazmat: ping?19:24
hazmatsidnei, pong19:25
sidneihazmat: https://pastebin.canonical.com/91061/19:25
sidneihazmat: looks like juju 0.7 failed to build on the ppa for precise19:26
sidneihazmat: the tb above is from bootstrapping with 0.619:26
hazmatsidnei, yeah.. i just noticed mgz moved that ppa off trunk to a branch.. i'll trigger the build19:27
hazmathmm19:27
hazmatsidnei, what version of txzookeeper?19:27
sidneihazmat: in the paste19:27
hazmatsidnei, its not in the paste..19:27
sidneiah, txzookeeper sorry19:27
sidneihazmat:   Installed: 0.9.8-0juju53~precise119:28
hazmatargh..19:28
sidneihazmat: actually, i bootstrapped with 0.7-0ubuntu1~0.IS.12.04, but the bootstrap node got 0.6 as that's what's in the juju ppa19:29
hazmatsidnei, hmm.. where's that from?19:32
hazmatsidnei, i queued some builds for the ~juju/pkgs ppa19:32
sidneihazmat: i assume you mean 0.7: https://pastebin.canonical.com/91063/19:33
hazmatsidnei, yeah.. i did19:33
hazmatwierd.. it build correctly for precise but says error on upload19:39
sidneihazmat: yup, because it has the same version as the previous failed build19:40
sidneineed to bump to ~precise2 or something19:40
hazmati'll commit something to the branch19:40
sidneiyeah, or that.19:40
sidneiyay, progress19:54
hazmati'm still surprised by the error, that aspect of txzk hasn't changed in quite a while19:55
fcorreayo, any of you having issues with pyjuju and local provider? Whatever service I try to deploy never get past "pending". Logs doesn't tell much19:57
sidneihazmat: funny you mention that: https://pastebin.canonical.com/91065/19:59
hazmatargh20:00
dpb1fcorrea: I can try20:00
dpb1fcorrea: bootstrap works ok?20:01
fcorreadpb1, cool. Found something similar up on askubuntu.com. Will try disabling the firewall20:01
hazmatsidnei, got a minute for a g+?20:01
fcorreadpb1, yep20:01
dpb1fcorrea: quantal?20:01
fcorreadpb1, raring20:01
dpb1k20:01
sidneihazmat: let me see if it's working today or if i need to reboot *wink*20:01
fcorreadpb1, it gets very quiet after deploying. In the logs I see a "Started service unit mysql/0" for example and that's it...it was working last week though. I guess I should head back to Oakland20:07
dpb1fcorrea: what series are you trying to deploy.  What charm?20:07
fcorreadpb1, default series is precise and charm is mysql20:07
fcorrealemme try to create an lxc container and check it works. I could be there maybe20:09
dpb1fcorrea: what does lxc list show you?20:10
fcorrealxc-ls correctly shows the container created by juju though20:10
dpb1ok20:10
dpb1what about lxc-ls --fancy20:10
dpb1you should get the ip20:10
dpb1which you should be able to ssh into the ubuntu account20:10
fcorreadpb1, yeah it's there: fcorrea-local-mysql-0  RUNNING  10.0.3.87  -     NO20:10
fcorreadoing it20:10
fcorreadpb1, mmm....the unit-mysql-0-output.log shows the issue: ImportError: No module named txzookeeper.utils20:12
dpb1fcorrea: ok, that is what hazmat is debugging right now20:12
fcorreadpb1, hah! Awesome20:12
dpb1I think same here20:12
dpb1I guess it's not just quantal. :(20:13
hazmatsomehow the debian build changed to not include the src20:13
hazmatfor the ppa txzk20:13
fcorreaic20:13
hazmatand its python.. so no binaries.. it seems quite strange20:13
fcorreawell, feeling better now20:13
hazmatpypi is seeming pretty awesome right now ;-)20:13
dpb1ya, dpkg -L python-txzookeeper is pretty embarrassing. :)20:14
fcorreahazmat, lets use buildout as a package manager ;)20:14
hazmatSpamapS, the txzk recipe was just using the embedded packaging?20:20
SpamapShazmat: probably?20:21
SpamapShazmat: uploading 0.9.8 to debian unstable shortly20:22
hazmatSpamapS, k, i don't see the recipe do anything different, and the embedded packaging hasn't changed.. but now the package being generated is empty.. which is just odd20:22
hazmatSpamapS, cool, thanks20:22
SpamapShazmat: yeah probably needs a kick, not sure why20:22
sidnei_SpamapS: i suspect the recipe got changed to not use a nested the packaging branch at some point, since the build log for 0.9.7 have --with python2 and the one for 0.9.8 doesn't, and the debian/rules in lp:txzookeeper have not changed.20:32
SpamapSquite likely the recipe has been broken for a long time. They tend to break over time in my experience.20:33
m_3SpamapS!  /me waves20:34
SpamapSm_3: howdy20:34
=== Makyo is now known as Makyo|out
SpamapShazmat: anyway, 0.9.8-1 is in unstable now.. should make its way through the tubes to saucy by tomorrow20:35
hazmatSpamapS, sweet20:35
hazmatSpamapS, yeah.. that seems quite likely re the recipe, it hasn't built in a while20:36
hazmater.. been built20:36
SpamapSGiven how ridiculously simple it is to package.. kind of sad that it broke :-P20:37
=== BradCrittenden is now known as bac
hazmatSpamapS, agreed20:49
dpb1hazmat: can the ppa get changes faster?20:50
hazmatdpb1, not sure what you mean20:52
dpb1hazmat: sorry, I'm not sure why I typed that.  I meant, can the package be uploaded to the ppa?  (maybe you already have).20:57
hazmatdpb1, the alternative is running a non ppa origin20:57
hazmater. removing origin and relying on distro version20:58
ahasenackyou can probably ask a web-op to kick the ppa and bump its priority21:00
ahasenackif a new package is being uploaded, you should probably do that21:01
Akira1_anyone else running into the python-txzookeeper thing floating around today?21:02
hazmatahasenack, the problem is the recipe is foobar21:08
hazmatAkira1_, yes..21:08
ahasenackhazmat: where is it? url21:08
hazmatdpb1, ahasenack .. anyone else if your interested.. and have packaging knowledge.. we're hanging in https://plus.google.com/hangouts/_/a278ee33e829a90be5c6c364a6754726e6b975ee?authuser=0&hl=en21:08
=== defunctzombie_zz is now known as defunctzombie
hazmatahasenack, https://code.launchpad.net/~juju/+recipe/txzookeeper21:10
SpamapShazmat: I'll try and join you shortly21:11
hazmatSpamapS, that would be awesome.. i'm digging through dh_python2 conversion docs atm21:12
dpb1my packaging knowledge is pretty minimal21:12
Akira1_hazmat: we've been following your commits so coo21:13
ahasenackhazmat: if I type "make" in the txzookeeper directory, I get the "done" target, that is confusing dh_auto_build21:18
=== defunctzombie is now known as defunctzombie_zz
ahasenackthere is an override to get it to use python build in this case, it is finding the Makefile and assuming that's how the thing is built21:19
hazmatahasenack, aha!21:19
ahasenacklet me find it21:19
hazmatahasenack, i'll just kill the makefile21:19
ahasenackthat would work too21:19
ahasenackI don't remember how recipes handle 3.0 quilt packages, i.e., if they fetch the orig tarball or not21:20
ahasenackso maybe you want to kill r55 too, or just try it without the makefile first and see what happens21:21
hazmatahasenack, killing the makefile and it seems to work locally.. recipe builds requeued21:22
ahasenackok21:22
adam_ghazmat, ping21:24
adam_goh wait21:24
hazmatfubar in progress.. crossed fingers on next recipe build21:25
mgzthere's also a note on the mailing list about txzookeeper in the ppa,21:26
mgzso probably want to respond there when it's built and confirmed fixed21:27
hazmatsidnei, ahasenack, adam_g thanks for your help21:48
hazmatppa should be good now21:48
sidnei_or as soon as the index gets rebuilt21:48
Akira1_working for us too21:49
Akira1_was pretty neat as I was planning to demo juju to my project team about 90 minutes ago and we couldn't bootstrap21:49
Akira1_I figured it just stopped working cause we were demoing it cause, you know, that is how things work, especially on wednesdays21:50
hazmatAkira1_, ouch.. sorry. the root cause seems to have been the makefile and then some flailing trying to get to that introduced another issue (source/format). its generally been pretty good, but that particular build recipe hasn't been exercised in a long while.21:51
Akira1_yeah, it happens ;)21:52
Akira1_I'm loving this stuff otherwise. we've cooked up saltstack integration and I'm hoping to distill 4.5 years of garbage bash deployment scripts down to some minor charms and salt grains21:53
Akira1_so cheers even with the hiccups21:54
jcastrobah!21:54
jcastroI missed him21:54
jcastrowould love to see some salt stack stuff21:54
robbiewjcastro: see the new google plus?21:59
robbiewman...not feeling it...but maybe it'll grow on me21:59
AskUbuntujuju: deploying lamp charm on ec2 causes instances to terminate | http://askubuntu.com/q/29596122:21
=== wedgwood is now known as wedgwood_away
=== gianr_ is now known as gianr

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