/srv/irclogs.ubuntu.com/2014/05/07/#juju.txt

lazyPowerjose: you need to put it behind a proxy service, is the proper way to do it00:43
lazyPowereg: setup nginx to forward to the socket or localhost:port00:43
lazyPowerwhichever way you choose to setup the daemon00:43
josecak00:44
lazyPowerhttps://github.com/groovyobject/Ansible-Playbooks/blob/master/templates/nginx_site_proxy.j200:44
joseack*00:44
josehmm00:44
lazyPowertheres an nginx vhost that would reverse proxy to a port configured daemon. in this case, a node.js app for ghost00:44
lazyPowerotherwise, you specify the proxy-pass to the full path of the socket file00:44
lazyPowerjose: also since i didn't specify, thats in a jinja2 template format01:05
lazyPowerthe {{ }} is for variable substitution. You dont want to leave those behind. I bet you gathered that - but just in case.01:05
josetahnk you :)01:07
joseI'm looking into that tomorrow, for sure01:07
joselazyPower: did you get the tests to pass? because I got some weird clock01:07
lazyPowerjose: that means it skipped02:39
lazyPowerare you still running on free tier of AWS? you'll probably need to kick up the deployment wait time02:39
lazyPowerif you're running on smalls, the 900 it waits by default should be plenty, and one of the tests failed. run it with the -v flag and you'll get more output to tell you why it gav eyou a skip02:39
joselazyPower: I'm running on the free tier, under micros02:43
lazyPoweryeah, you'll want to tune the timeout setting to something more reasonable02:43
jose1200 is default02:43
lazyPowerit was 900 last i checked. that my be set th 1200 and it still may not be long enough02:44
lazyPowerif you dont get a response messag elike "Unable to connect to MySQL" then chances are it timed out during the d.deploy phase02:44
lazyPoweryou can test with the local provider to keep your cloud costs down if you comment out the NFS tests. and unit. thats the only one in the bunch that doesnt play well with LXC02:44
josewell, I don't use local as it takes forever to deploy :P02:48
josemy internet connection is still slow02:48
joseI can keep up with cloud, it's good for me02:48
=== CyberJacob|Away is now known as CyberJacob
=== vladk|offline is now known as vladk
=== CyberJacob is now known as CyberJacob|Away
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== liam_ is now known as Guest5040
sebas_Juju and the Drupal charm was just presented here at FISL 15, in Brasil :)13:51
=== sebas_ is now known as _sEBAs_
=== vladk is now known as vladk|offline
frankbanrbasak: ping re new quickstart release14:10
rbasakfrankban: hi! I have looked at it, but haven't finished testing it yet. Had some issues with my test environment.14:10
rbasakfrankban: I'm at a sprint this week, so I'm quite time limited. Sorry for the delay.14:11
rbasakOne of the issues I have, BTW, is that on a loaded box, juju times out creating an lxc container template, even though it will finish in the end anyway14:12
frankbanrbasak: no worries and thanks! so, as I mentioned yesterday, the revisions which should be included are revno 65, 66 and 67. Please feel free to ping me if you need any help14:12
frankbanrbasak: uhm, timeout while creating the template never experienced that :-/14:13
rbasakI think it's an assumption that juju (not quickstart) is making about how long it should take to build the template container14:15
alexpilottinatefinch: hi!14:18
natefinchalexpilotti: howdy!14:19
frankbanrbasak: OIC14:19
alexpilottinatefinch: good tx, frantically getting ready for Atlanta :-)14:19
frankbanrbasak: so on slower machines it can timeout14:19
frankbanrbasak: or on slower connections I guess14:19
rbasakfrankban: right. WHere I'm testing, IO performance is poor because it's on a VM where the metal is shared by other tenants.14:20
frankbanyeah14:20
mhall119marcoceppi: one of these days I'll remember how to fix this,until then I need your help again14:32
mhall119mhall@mhall-thinkpad:~$ juju status14:32
mhall119ERROR state/api: websocket.Dial wss://10.0.3.1:17070/: dial tcp 10.0.3.1:17070: connection refused14:32
mhall119after having to reboot14:32
* mhall119 has a tomboy note open now to record the fix14:33
jcastrowe really need to fix that14:33
marcoceppimhall119: it's okay, if you remember how to fix this I'll not be needed anymore14:33
marcoceppimhall119: initctl list | grep juju14:33
mhall119nothing listed14:34
marcoceppimhall119: sorry14:34
marcoceppimhall119: sudo initctl list | grep juju14:34
mhall119mhall@mhall-thinkpad:~$ sudo initctl list |grep juju14:34
mhall119juju-db-mhall-local stop/waiting14:34
mhall119juju-agent-mhall-local start/running, process 106414:34
marcoceppimhall119: sudo start juju-db-mhall-local14:34
mhall119mhall@mhall-thinkpad:~$ sudo start juju-db-mhall-local14:35
mhall119juju-db-mhall-local start/running, process 1137114:35
mhall119mhall@mhall-thinkpad:~$ sudo initctl list |grep juju14:35
mhall119juju-db-mhall-local stop/waiting14:35
marcoceppimhall119: sudo service monogdb stop14:35
marcoceppithen start juju-db-mhall-local14:36
mhall119still goes back to stop/waiting14:36
marcoceppimhall119: pastebin /var/log/upstart/juju-db-mhall-local.log14:36
mhall119marcoceppi: http://paste.ubuntu.com/7410772/14:37
marcoceppimhall119: this was more than a reboot I'm guessing14:38
mhall119at 10am today I manually rebooted after updating my system, because hangouts weren't working14:39
mhall119a couple days ago my laptop powered itself off for no reason, I haven't tried accessing my juju env since then, so it may have been broken for a while14:39
marcoceppimhall119: so there's a --repair flag for mongo (really just need to remove a lock file but I don't know where it is)14:41
marcoceppimhall119: can you pastebin /etc/init/juju-db-mhall-local.conf14:41
mhall119http://paste.ubuntu.com/7410785/14:42
mhall119it was ~/.juju/local/db/mongod.lock14:44
mhall119removed that, re-ran sudo start juju-db-mhall-local and now I can `juju status`14:44
marcoceppimhall119: awesome, good to know14:47
marcoceppimhall119: thumper is working on a new `juju local` plugin that will make managing local environments way easier in the future14:47
mhall119I look forward to breaking it :)14:47
whitwwitzel3, you put up your pyramid charm somewhere yet?15:38
jcastrohttp://askubuntu.com/questions/462391/juju-bootstrap-node-cant-access-ubuntu-archives-via-maas16:09
jcastroanyone see this problem before?16:09
tedglazyPower, So I got the ownCloud charm setup on docean. It works well.16:31
tedglazyPower, How is the SSL bit going?16:31
lazyPowertedg: thats awesome!16:31
lazyPowertests are blocking the merge, but its incoming. Jose and I were having a bit of back and forth about it lastnight.16:32
lazyPowerI expect it to land in the next couple of days16:32
tedgCool, I didn't want to take it beyond playing with if there was no encryption.16:32
lazyPowerYeah - another thing to note16:32
lazyPowerthere's a server side encryption plugin - i *highly* recommend it16:33
tedgOh, that's interesting.16:33
tedgBTW, I used DAVdroid on Android.16:33
lazyPowerthat way anything you put on your DO instance is encrypted as well. its more of a safeguard in case someone goes spelunking on your instance.16:33
tedgYou still have to pay, but it's OSS>16:33
lazyPowernice! There's a disqus on my blog, would you mind dropping that int eh comment feed for future users that sumble across the post?16:33
lazyPowerstupid template has a bug where disquss doesn't always load, you may have to reload the article to get it to show :(  I'll eventually get around to fixing that...16:34
tedgAh, k16:34
lazyPowerthanks for the feedback though tedg - Glad to hear it's helping someone.16:35
tedgHmm, seems you can't post to Disqus with OpenID?16:36
cory_fuI'm trying to install cobzr from launchpad, and the instructions on http://labix.org/cobzr just say to do `go install launchpad.net/cobzr` but I get a "cannot find package" error.17:06
cory_fuI'm assuming there's a missing step in there (e.g., go get)?17:06
cory_fuWhy do so many instructions involving go seem to be missing steps?  (`go get launchpad.net/cobzr ; go install launchpad.net/cobzr` worked)17:08
themonkhow to restart a unit?17:24
dpb1hi marcoceppi: any chance we could kick #1259630 a bit now?  I think we would like it to move forward.17:30
_mup_Bug #1259630: add storage subordinate charm <landscape> <Juju Charms Collection:Fix Committed by davidpbritton> <https://launchpad.net/bugs/1259630>17:30
marcoceppidpb1: it's on the list for this week17:30
dpb1marcoceppi: great, thanks!17:31
marcoceppiexpect a proper review/response either tonight or tomorrow17:31
dpb1look forward it it. :017:31
dpb1:)17:31
themonkmarcoceppi: how do i restart a pending unit?17:44
marcoceppithemonk: what version of juju?17:46
cory_fuMan.  Adding bzr-pager, bzrtools (for cdiff), aliasing bzr diff -> bzr cdiff, and creating a ~/.colordiffrc makes bzr much nicer to work with17:57
themonkmarcoceppi: juju version is 1.18.2-precise-amd6418:01
themonkmarcoceppi: and why lxc local container deployment is too slow?18:04
marcoceppithemonk: odds are something is stuck during deployment18:09
marcoceppithemonk: which is why you see it in pending18:09
marcoceppithemonk: can you run `sudo lxc-ls --fancy` and report back what is listed?18:10
themonkmarcoceppi: output is themonk-local-machine-1  RUNNING  10.0.3.113  -     YES18:13
marcoceppithemonk: no other machines listed?18:17
themonkmarcoceppi: no18:19
=== CyberJacob|Away is now known as CyberJacob
cory_fujose: You around?19:07
josecory_fu: I am always around ;)19:07
cory_fu:)19:07
cory_fuI was wondering if you got my message last night regarding the tracks charm?  My IRC client sometimes tells me I'm connected when I'm not19:08
joseoh, the permissions one19:08
joseyeah, I did19:08
joseand ports <=1024 are root only, that one too19:08
cory_fuYeah, so I don't think it will be feasible to use setcap, so I think our only choice is to just run it as root19:09
cory_fu:-/19:09
josehey, what we can do is if the port is <1025, then run it as root19:10
joseand if port is >1023, run as tracks user19:10
joseadding a note to the README, of course19:11
cory_fuYeah, that's a possibility, though it complicates the hooks.  Keep in mind that we need to handle the case of the user changing the port (i.e., we'll have to update the tracksapp.conf file in the config-changed hook)19:11
joseit actually does19:11
joseI think I can write this up while these owncloud tests are running19:12
cory_fuWell, it changes the port in the conf file, but we'd also have to add / remove the setuid line19:12
cory_fuJust another sed line, I suppose.  :)19:13
joseyep!19:13
cory_fuAwesome.  Well, I have to step away for a few minutes, but if there's anything I can do to help, let me know.19:13
josesure thing19:14
joseI'll work on this and let you know when I have any results19:14
cory_fuThanks!  :)19:15
lazyPowercory_fu: jose - please dont run the service as root19:20
lazyPowera) its against CS guidelines, and b) its a huge security hole19:20
joselazyPower: then the quick workaround for me would be to only run it if port is >102419:20
josewill do that19:20
lazyPowerthat's a far better option.19:21
lazyPowerjose: i'd also mark that in the readme - that the service is intended to be run at scale - so if you want port 80, deploy it behind a reverse proxy.19:22
josemhm, will do19:22
lazyPoweryou can co-locate the service, if the end user is concerned about machine consumption19:22
joseat this point the readme is *pretty* lightweight19:22
astarkHello.  I am trying to get around the fact that Maas / Juju do not seem to work well with i386 hardware.  I tried 'juju bootstrap --constraints arch=i386', but I get a response that suggests the only valid value is amd64.  Does anyone have any ideas?  Thanks.19:43
josehey guys, has anyone seen this error while testing before? http://paste.ubuntu.com/7412268/19:45
lazyPowerastark: i'm assuming this is in realtion to ensuring you're getting a 32bit machine?19:46
lazyPower*relation19:46
lazyPowerjose: your test timed out during the deployment19:47
joseand I gave it 25 minutes!19:47
lazyPowerwell thats fun19:47
lazyPowermaybe that's not what happened, but thats what it leads me to believe19:48
lazyPowermarcoceppi: ^ amulet's being finicky it looks like. Any idea? 25 minutes is long enough to setup pretty much anything....19:48
joseI'm running it again just in case19:49
astarklazyPower:  I have about 9 boxes.  4 are amd64, the others are i386.  Maas knows the difference.  When I goto do a normal bootstrap, if it targets a 32 bit machine the bootstrap fails (due to always downloading amd64 juju tools), but if it picks a 64 bit machine bootstrapping happens successfully.  I then goto deploy openstack, and when deploying the services only the 64 machines ever move from 'pending' to 'started'.  I was trying initially with19:51
astark 1.18 and have been trying 1.19.1 with no success either.19:51
josethis time it showed the same signs after 2014-05-07 15:03:36  Adding relation relation-sentry:provides-owncloud_shared-fs-nfs_nfs <-> nfs:nfs20:05
joseoh and just gave the same errors I thinik20:07
marcoceppijose: use --set-e and when it's done run juju status20:14
josemarcoceppi: like 'charm test -e ec2 tests/100-deploy --set-e'?20:14
marcoceppithat looks good20:15
joseok20:15
=== vladk|offline is now known as vladk
joserunning again20:16
joseit's been stuck in 2014-05-07 15:21:16 Config specifies num units for subordinate: owncloud-sentry for around 8m20:29
marcoceppijose: it's going to time out20:39
marcoceppijose: I think that one or more of your aws machines aren't being turned on20:39
marcoceppiprovisioning errors, etc20:39
joseit did timeout20:39
joseoh, oh, deployment did complete20:40
josebut I have another error, let me pastebin20:40
josehttp://paste.ubuntu.com/7412525/20:40
josefor some weird reason it's not able to connect to the machine20:41
lazyPowerjose: is the service exposed?20:55
joseyes, it exposes both owncloud and haproxy20:55
lazyPowerhmmm20:56
lazyPowerI'm not sure man :(21:00
lazyPowerit looks like its attempting to connect over ssl though21:00
lazyPoweris port 443 active? run it with a --set-e flag so it doesn't tear down the env and you can poke around in it21:00
lazyPoweralso, ensure open-port 443 happens in the hook code when you enable ssl, otehrwise it wont open the port in the AWS security group.21:01
lazyPowerwhich would explain why it cannot connect...21:01
joseoh, I did run it with that21:03
joseport 443 *should* be active21:03
joseyes, owncloud has 443 and 80 open21:03
josehaproxy, though, only has 8021:03
josewhich *may* explain the error21:04
josenope, it isn't that, because it's trying to connect to the owncloud address with a failure21:04
lazyPowerDo you have a d.sentry.wait?21:08
* jose checks21:10
joseI do not21:11
joseadded; destroying env and rerunning21:11
=== mattgriffin is now known as mattgriffin-clou
=== sputnik1_ is now known as sputnik13net
mhall119jcastro: marcoceppi: ok guys, I have a charm that I want to submit to the charm store....what do I do?21:34
marcoceppimhall119:21:34
jcastrohttps://juju.ubuntu.com/docs/authors-charm-store.html#submitting-a-new-charm21:35
marcoceppihttps://juju.ubuntu.com/docs/authors-charm-store.html#submitting-a-new-charm21:35
marcoceppidangit21:35
jcastro:)21:35
mhall119hah, jcastro wins21:35
thumpermhall119: oh hai21:35
mhall119hey thumper21:35
thumpermhall119: wanted to talk to you about deploying django apps with juju21:35
thumpermhall119: marcoceppi said you were the person to talk to21:35
thumpermhall119: my app is not open source (personal startup project)21:35
thumpermhall119: how do I get the app payload into the charm?21:36
mhall119marcoceppi: I've become "the person to talk to" about deploying django?21:37
mhall119that's not a good sign :)21:37
mhall119thumper: my django charms pull from bzr on launchpad21:37
marcoceppimhall119: you're the only person I could think that does django stuff :)21:37
thumpermhall119: it is a great sign21:37
mhall119thumper: alternately you can put the files (or a tarball of the files) into your charm's ./files/ directory21:37
* thumper sighs...21:37
thumpermhall119: this whole tarball thing is one thing I'm fixing this cycle21:38
mhall119alternately, you can put your files into cloud storage and configure your charm to pull from there21:38
thumperluckily text compresses well, right?21:38
mhall119I suppose21:38
mhall119thumper: easiest thing to do is to stop hating freedom so much and open source your code :-P21:38
thumpermhall119: haha21:39
thumperI don't hate freedom21:39
thumperI'm free to try and make some money :)21:39
mhall119thumper: I can help you with gunicorn, swift and a CDN though ;)21:39
mhall119thumper: http://paste.ubuntu.com/7412775/ is my current test deployment21:40
thumpermhall119: what is go-pronto?21:41
marcoceppithumper: maybe a subordainte charm that you don't release that has your ssh keys for pulling the source of your app that can plop it in the right place on the django charm/service?21:41
mhall119thumper: a new swift-backed CDN from bigkevmcd21:41
mhall119marcoceppi: is it possible to make a subordinate charm our of a django app?21:42
thumpermarcoceppi: yeah, I've been thinking about the subordinate option21:42
thumpermhall119: why not?21:42
thumperI may poke around21:42
mhall119thumper: because I don't know enough juju21:42
thumpermight need to make a config option in the main charm21:42
thumperso it doesn't try to deploy without the subordinate21:42
mhall119right now summit-website's charm is coded to setup swiftstorage, but having it a subordinate that you can add or not would make it more flexible21:43
marcoceppimhall119: subordinates are like the glue and string that turn deployments from piles of rocks, to a mcguyver helicopter21:43
thumpermarcoceppi: haha, classic21:43
mhall119so...maybe I'll wait on making that subordinate21:44
thumpermarcoceppi: do we have docs on deploying local charms?21:44
mhall119charm proof tells me that my charm isn't ready to submit yet :(21:44
mhall119back to work I go21:44
marcoceppithumper: we shure as hell should21:44
marcoceppihttps://juju.ubuntu.com/docs/charms-deploying.html#deploying-from-a-local-repository21:45
thumperta21:45
marcoceppihaha shure, it's that time of the day when I need to just log off21:46
thumpermarcoceppi: hmm... that doesn't actually tell the user what the local directory structure should look like21:46
mhall119marcoceppi: what category should a CDN service fall under?21:46
marcoceppithumper: pull requests welcome, we cover it somewhere else in the doc now that I think about21:46
marcoceppiit21:46
marcoceppimhall119: eh, we only have like 621:46
mhall119marcoceppi: I have file-servers currently, but I don't konw if that's right21:46
marcoceppimisc or applications probably21:47
marcoceppimhall119: that works21:47
mhall119does it?21:47
marcoceppidoesn't it?21:47
marcoceppiquestion aside, categories are arbitrary21:47
marcoceppiyou could put it in both21:47
marcoceppimisc and file-servers21:47
mhall119ok21:47
thumperevilnickveitch: ping21:49
thumperevilnickveitch: docs on local repository structure?21:50
josemarcoceppi: I have got exceptions while running the tests but no results yet, that is normal and I should wait, right?21:50
joseI got the exception of a exception of a exception21:51
=== hatch__ is now known as hatch
thumperrick_h_: help21:58
thumperrick_h_: can you deploy a local charm from the gui?21:59
mhall119submitted my first charm! https://bugs.launchpad.net/charms/+bug/131728121:59
_mup_Bug #1317281: New Charm: go-pronto <Juju Charms Collection:New> <https://launchpad.net/bugs/1317281>21:59
josewohoo, congratulations mhall119!22:04
marcoceppithumper: you can drag and drop a tarbal22:04
marcoceppiof a charm22:04
josemhall119: I think that for a charm to be on trusty it needs to have tests... not 100% sure though22:04
thumpermarcoceppi: oh.. ok...22:05
josemhall119: and as I mentioned earlier, the details with the README:22:10
rick_h_thumper: huh?22:10
rick_h_thumper: drag/drop it on the canvas22:10
thumperrick_h_: does it handle zip files?22:10
thumperor just tarballs22:10
joseREADME has to be in Markdown and Contact Information is for the charm *and* upstream22:10
rick_h_thumper: just zips22:10
thumperoh, so just zip files22:11
thumperhmm..22:11
rick_h_thumper: yep, it's what juju upload supports. Does juju take tarballs?22:11
mhall119jose: what details were those again?22:12
mhall119also, how do you write tests for a charm?22:12
josemhall119: <jose> README has to be in Markdown and Contact Information is for the charm *and* upstream22:12
jose`charm add tests` provides an autogenerated test suite22:12
josethey're written in python3 with the help of amulet22:12
josehttps://juju.ubuntu.com/docs/tools-amulet.html has more info22:12
mhall119man, this is what happens, you let jcastro on your team and suddently *everything* has to be in Markdown22:13
josehaha22:13
mhall119jose: $ charm add tests22:14
mhall119Error: add is not a valid subcommand22:14
marcoceppijose: mhall119 readme doesn't HAVE to be in Markdown, it just renders better when it is22:14
marcoceppialso, tests are still optional and may be changing in the future22:14
marcoceppimhall119: install charm-tools from ppa:juju/stable22:14
mhall119why wasn't the README created for me in Markdown?22:14
marcoceppithe one in trusty is super outdated22:14
mhall119marcoceppi: trusty is 2 weeks old!22:14
marcoceppimhall119: you're using anchinent version of charm-tools22:14
marcoceppimhall119: it hasn't been sync'd since precise22:15
mhall1192 weeks!22:15
marcoceppimhall119: I missed the update window22:15
mhall119why not?22:15
* jose proposes 100 charms for trusty22:15
marcoceppijose: we don't have 100 charms with tests22:15
josedidn't you say tests are still optional?22:16
mhall119he said Markdown was optional22:16
mhall119oh, tests too22:16
mhall119missed that22:16
marcoceppijose: not for trusty22:16
josehe was proposing for trusty, that's why I mentioned tests22:16
marcoceppijose: but we're reworking what it means to be a charm test22:16
josecool22:16
marcoceppimhall119: so if you have unit tets for your charm, you're golden22:16
mhall119not much to test....22:17
joseon the other hand, azure is not behaving correctly and my test is stuck22:17
* marcoceppi looks at the charm22:17
marcoceppiooooo a bash charm22:17
* jose loves bash charms22:17
marcoceppiheh, mhall119, I see what you mean22:18
mhall119marcoceppi: my summit charm will have more22:19
marcoceppiSo, I'll review the charm, but there's a potential problem with it, it's going to be impossible to test with amulet because not all clouds provide swift, etc22:19
marcoceppimhall119: sweet, I eagerly await that one22:19
marcoceppidon't ge me wrong, this is awesome22:19
mhall119ah, is that what amulet is used for? testing on different clouds?22:20
mhall119marcoceppi: you can *technically* run it in a cloud that doesn't use swift....as long as you point it to a cloud that does :)22:21
mhall119I'm running it on LXC, pointing to canonistack's swift22:21
marcoceppimhall119: /sure/ but that means hard coding swift creds in to a test22:22
mhall119I'm guessing that's frowned upon22:22
marcoceppimhall119: yeah, amulet and "charm tests" as they stand today are designed to do integration testing on charms and we run those across all our providers22:22
marcoceppimhall119: typically22:22
mhall119ok, so do I need tests or will they just be pointless for this?22:22
marcoceppiit's not a blocker for the store, we'll do the review like normal and give you feedback22:22
marcoceppiwe've never formalized charm tests being required, we've strongly recommended them for trusty but like I mentioned earlier the concept of what is a charm test may change int he near future22:23
mhall119I guess I should make swiftstorage a subordinate then, so I can submit summit-website charm to the store22:23
marcoceppimhall119: is swiftstorage different than go-pronto?22:24
evilnickveitchthumper, it is covered in https://juju.ubuntu.com/docs/authors-charm-writing.html, but it would be good to add to the deploy page too. I am thinking of adding a whole page about local charms actually, to cover fetching them too22:24
mhall119marcoceppi: yes22:26
mhall119swiftstorage is a Django app that makes it use swift for static files and uploaded media, rather that local files22:26
marcoceppimhall119: ah, gotchya22:29
josewhoops, just on the 7th day of the month and already exceeded my free 2mil I/O requests for ec2 :P22:33
=== CyberJacob is now known as CyberJacob|Away
=== sarnold_ is now known as sarnold

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