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

perrito666nites people00:17
perrito666what does exactly expose do when used with lxc?00:18
perrito666I mean, is there anything I should implement in my charm to support it?00:18
=== CyberJacob is now known as CyberJacob|Away
davecheneyperrito666: it's sort of theother way around00:30
davecheneyyour charm should call open-port when it wants to expose a port to consumers of the charm00:30
perrito666davecheney: I see, Ill rtfm myself with that info :D tx00:32
davecheneyperrito666: the goal, when everything works right, is as the charm author you shouldn't have to worry about the differences between the various providers00:33
perrito666davecheney: I see, I was trying to learn juju trough creating a charm, I found a grey area on that particular feature (expose)00:34
davecheneyperrito666: ok, so there are two parts00:35
davecheneyone, in the charm, you say open-port or close-port to indicate to juju that the charm will talk on said ports00:35
davecheneyon the client side, you call juju expose $SERVICE00:35
davecheneywhich takes the list of ports indicated by open-port and does firewall magic to make those visible on the public ip00:36
perrito666davecheney: tx, that is very informative00:36
=== erkules_ is now known as erkules
prathameshhi all06:19
=== CyberJacob|Away is now known as CyberJacob
onreaHow to install juju manually by this files:09:35
onreaubuntu-12.04-server-cloudimg-amd6409:35
onreaand09:35
onreaubuntu-12.04-server-cloudimg-amd64-root09:35
=== CyberJacob is now known as CyberJacob|Away
onreaOops! How to install juju via cloudimg's?10:02
bloodearnestso, I use a charm that bundles charm-tools (for reasons currently unknown)12:57
marcoceppibloodearnest: wat?12:58
bloodearnestmarcoceppi: I've no idea why12:59
marcoceppibloodearnest: is this a charm that you downloaded or one you're writing?13:00
bloodearnestmarcoceppi: it's one some one on my team wrote who has now left, it's an nginx-rate-limiter charm13:01
marcoceppibloodearnest: yeahh, there's really no need to embed charm-tools UNLESS they were trying to use the old charm-helpers13:01
bloodearnestmarcoceppi: last commit was 06/201313:01
marcoceppiin which case, they should use the PPA that only builds charm-helper-sh/charm-helper-python13:01
marcoceppibloodearnest: well, that's not much help13:02
bloodearnestright, so I need to re-write the charm, I'm good with that, I just don't have time to do it today, as I have some urgent deployments13:02
=== dannf` is now known as dannf
bloodearnestthe only reason this is blocking me is I can't deploy the charm as is any more with 1.17, I get an error:13:04
bloodearnestcharm-tools has a number of13:04
bloodearnestERROR error uploading charm: cannot read extracted archive: charm "$package" using a duplicated relation name: "relation-name"13:04
bloodearnestgah13:04
bloodearnestwhich I believe is due to some template metadata.yaml files in charm tools13:04
marcoceppibloodearnest: you can fix that by embedded a more recent version of charm-tools13:05
bloodearnestthe new thing is that somehow juju is finding the those metadata.yaml files and complainging13:05
marcoceppibut whatttt13:05
bloodearnestmarcoceppi: indeed13:05
marcoceppiyeah, juju really shouldn't dive /that/ deep13:05
bloodearnestmarcoceppi: ack, will bump charm-tools an move forward, and after deployment will back track and file a bug13:06
marcoceppibloodearnest: ta13:06
bloodearnestmarcoceppi: updating to r318 of lp:charm-tools gives a different error, but same issue of parsing a template metadata.yaml:13:11
bloodearnestERROR error uploading charm: charm URL has invalid charm name: "local:precise/$package-1"13:11
bloodearnest at least, I assume that's the issue, not 100% sure13:11
marcoceppibloodearnest: I'm like 98% sure you only need the helpers directory in charm-tools13:13
marcoceppibut I don't know where to find the charm to verify that13:13
bloodearnestmarcoceppi: it's lp:~ubuntuone-pqm-team/canonical-is-charms/nginx-rate-limiter13:14
bloodearnestmarcoceppi: I will probably rebase on upstream nginx and add the rate limiting as an MP on that13:16
bloodearnestjust wondered if there was a quickfix to get past it13:16
marcoceppibloodearnest: very interesting. I don't see charm-tools being used anywhere in the hooks13:16
bloodearnestmarcoceppi: yeah, it's possible I could just remove it?13:17
bloodearnestmarcoceppi: still, it would be good to figure out why it's failing on 1.17.4/trusty and it's been fine on 1.16.x/precise13:18
marcoceppibloodearnest: I would just remove it and deploy for now13:18
marcoceppioh wait13:18
marcoceppibloodearnest: _pythonpath.py shows that it's just using lib/charm-tools/helpers/python13:18
marcoceppibloodearnest: delete everything but the helpers dir in charm-tools13:19
marcoceppiand you should be good to go for the deployment13:19
bloodearnestmarcoceppi: ack will try13:19
zchanderHi all, does anyone have any pointers (or working config samples) for a reverse proxy setup, so I can expose my charms from my cluster to the 'real' world? My cluster is a private/seperate network from our schoolnetwork (it is being NATted through the MAAS controller)13:24
lazyPowero/ zchander13:25
lazyPowermarcoceppi: is this something that can be achieved with iptables on the controller node as a gateway?13:25
zchanderHi lazyPower, for what I have tried for now, is a apache2 reverse proxy setup, but that doesn't seem to proxy13:27
zchanderlazyPower: Did the presentation run well?13:27
lazyPowerzchander: it did. My internet was flakey and dropped while deploying a hadoop cluster13:28
lazyPowerso i wasn't able to give the full technical rundown with magic without a minor bit of failure13:28
lazyPowerbut my showmanship was pretty high, so it went over pretty well13:28
zchanderbrb: going to get some caffein13:29
zchanderback again...13:38
lazyPowerre13:40
lazyPowerzchander: when you say the apache reverse proxy doesnt work, how so? is the region controller not reaching the internal instances? or...13:40
zchanderIt seems so.... I have just reinstalled my MAAS environment from scratch this morning.13:42
=== marcoceppi changed the topic of #juju to: Welcome!! Docs: http://juju.ubuntu.com/docs || FAQ: http://goo.gl/MsNu4I || Review Queue: http://goo.gl/9yBZuv || Unanswered Questions: http://goo.gl/dNj8CP || Reviewer: lazyPower
zchanderlazyPower: Is seems the 'reverse proxy' redirects all traffic to a https site, which cannot be found, as no ssl enabled site exists (yet)13:54
zchanderAnd the log mentions POST requests to my MAAS api13:54
zchanderCurrently I get a 502 - Bad Gateway from nginx13:59
zchanderAnd additionally I cannot connect to my MAAS web interface anymore from my school network14:00
=== bloodearnest_ is now known as bloodearnest
jcastrohazmat, got a minute to talk deployer?14:02
zchanderPlease disregard my last issue: I forgot (with my fat fingers) to include the ServerName directive in my VirtualHost14:05
lazyPowerzchander: np :) happens to the best of us14:08
jcastroERROR state/api: websocket.Dial wss://10.0.3.1:17070/: dial tcp 10.0.3.1:17070: connection refused14:13
jcastroI am getting this when trying to teardown the local provider14:13
lazyPowerjcastro: i typically get that when my local provider has gone awry, such as an interrupted bootstrap14:14
jcastroyeah14:14
jcastroso the "normal" procedures should work?14:14
lazyPowerjust removing .jenv if there are no lxc containers usually resolves that.14:14
jcastroto clean up14:14
jcastroyeah14:14
lazyPowerif there are leftover lxc containers, follow the AU post14:14
lazyPowerjcastro: i'm working through porting my writeup on osx/vagrant charm authoring to the docs atm. What subsectionw ould you put this under?14:16
lazyPowerauthors-osx-walkthrough?14:16
cargillin amulet, can Deployment.setup() be called multiple times in the same test?14:16
jcastroI would do "How To" and then "Vagrant work flow"14:17
lazyPowercargill: thats part of post deployment commands. I filed a bug about the behavior you will see if you try it :)14:17
marcoceppicargill: it can, but you shouldn't add any relations between setup calls, it's not supported14:17
lazyPowerjcastro: ack. ty14:17
marcoceppicargill: not supported yet*14:18
marcoceppicargill: what's your ultimate goal?14:18
cargillI'm getting 'service "postgresql-sentry" not found' when I deploy my charm and potgresql, and not when I deploy just potgresql, so I'm trying to find out whether it's a timeout from my charm setting up itself (it does take a long time) or something else14:20
marcoceppicargill: what's your test file look like?14:21
cargilland setting up one, then the other does indeed trigger an error suggesting that setup cannot be run multiple times14:21
cargillmarcoceppi: http://pastebin.ubuntu.com/7067852/14:23
cargillthis is without any "debugging" additions14:23
marcoceppicargill: interesting, and so what's the error you're getting? Also, do you have the latest amulet?14:24
marcoceppias in, is there a Python traceback?14:24
hazmatjcastro, shoot14:25
jcastrocan I make bundles with colocated services in LXC containers?14:25
zchanderlazyPower: can I send you my virtual host config (for a wordpress charm, as per tutorial)14:25
hazmatjcastro, yes14:25
jcastrolet's say I want rails and postgres, but I want all the monitoring stuff in one instance on LXC containers14:25
lazyPowerzchander: sure, pastebin it14:25
hazmatjcastro, http://pythonhosted.org/juju-deployer/config.html#placement14:25
hazmatjcastro, placement is somewhat limited at the moment, its a form of deploy x with service y.. and supports containers14:26
jcastrook so lxc:wordpress is "whichever machine wordpress ended up on" then?14:27
hazmatjcastro, i've had some discussions last week about allowing machine specification (ie a machines block in addition to a services block) and then allowing for machines to be placed there.14:27
hazmater.. i mean workloads to be placed there14:27
zchanderlazyPower: http://paste.ubuntu.com/7067872/14:27
hazmatjcastro, yes14:27
cargillmarcoceppi: yes, the vagrant scripts from lazyPower pick up the latest amulet14:28
hazmatjcastro, i avoided machine spec (minus 0) in the initial pass because its quite fragile unless you can abstract machines a bit from their env specific identity.14:28
jcastrohazmat, perfect, that's exactly what I needed, thanks14:28
cargillwill post the output shortly14:28
jcastrowell for this bundle I don't care about machines14:28
zchanderlazyPower: I might be back tonight again, going into a meeting in a few minutes14:28
jcastroI'm making a "rails" one for development and I don't want a ton of instances14:28
lazyPowercargill: offtopic from what you're talkign about, but I did a writeup using the precise basebox. it'll reduce that overall footprint of the box to 200mb in your vagrant cache.14:28
lazyPowerhttp://blog.dasroot.net/writing-juju-charms-on-osx/14:29
hazmatjcastro, cool, for most of them you shouldn't.. the call for machines in deployment is more about real world ops scenarios.. where you want to prep a machine a bit before hand14:29
hazmatjcastro, ie.. service co-location is ideal for bundles14:29
lazyPoweruse that vagrantfile with the precisebasebox and you should be g2g. I've tested it locally with no issues.14:29
hazmatthat re shared/reused.14:29
lazyPowerzchander: i dont see anything apparently wrong with this14:30
lazyPowerzchander: ping me when you get back and we'll do some troubleshooting14:30
cargilllazyPower: oh, great, right now I'm just running provision everytime, that won't be faster though, will it? but speeding up the bootstrap is definitely a good thing14:30
lazyPowercargill: it may slow it down since its cloud-init bootstrapping a juju gui14:30
lazyPowerthe box you're using right now was specifically tailored for amulet testing14:31
jcastrohazmat, yeah I didn't want to be like "here's your rails dev bundle, have fun paying for 9 instances an hour!"14:31
hazmatjcastro, approximately $1 on do ;-) .. if you have a chance i'd love  your feedback on that plugin.14:32
hazmatjcastro, not sure you can do better than hulk-smash in public clouds atm, vpc/private networking against cloud apis for containers is still wip.14:35
cargillmarcoceppi: this is the log with the test written as above: http://pastebin.ubuntu.com/7067958/14:40
marcoceppicargill: interesting14:49
=== wedgwood is now known as Guest24594
cargillmarcoceppi: this another of the errors I'm getting http://pastebin.ubuntu.com/7068075/15:00
marcoceppicargill: what's weird, is the setup is being killed beacuse of timeout, but it keeps going aftwards15:00
marcoceppiwhich is probably why you're seeing that error15:00
cargillthat's because the timeout passed to setup() is 900 and there is an internal one of 600 seconds?15:05
jcastrohttp://askubuntu.com/questions/432187/how-can-i-deploy-my-local-juju-charm-with-amulet-framework15:09
jcastrojust in case anyone missed this15:09
marcoceppicargill: it should respect your timeout, however, if you're doing `charm test` command there's timeout per test15:14
marcoceppicargill: actually, that's probably where it's coming from15:14
marcoceppicargill: you need to modify whatever is running `charm test` and add `charm test --timeout=10m` or something like that15:14
marcoceppilazyPower: ^^15:14
lazyPowermarcoceppi: can you open a bug on the project? I'll get that update pushed in a minute15:15
lazyPowerwrapping up my doc edits15:15
marcoceppilazyPower: which project/15:15
lazyPowerhttps://github.com/chuckbutler/juju-vagrant15:15
cargillmarcoceppi: will try with 30minute timeout, let's see where it gets me next15:16
marcoceppicargill: ack15:16
lazyPowerhttps://github.com/juju/docs/pull/27 -- for anyone thats interested in reviewing the proposed merge for Vagrant based workflow on OSX15:28
lazyPoweralso sent an announcement to the list15:28
jcastrohey lazyPower15:49
jcastrowrt. your +1 on the hadoop bundle15:49
jcastroI made a section on how to put them in the store15:49
jcastrohttps://juju.ubuntu.com/docs/reference-reviewers.html15:49
jcastrooh nm, you're not in ~charmers15:50
marcoceppilazyPower: see gh for feedback on pull16:08
lazyPowermarcoceppi: fixing, addendum to that is we need to do that for the rails howto then, thats what i modeled it after.16:09
marcoceppilazyPower: that's fine, we can fix that later16:09
lazyPowerack16:09
jcastrohttps://github.com/juju/docs/pull/2816:17
jcastroif someone could ack that it's a simple fix.16:17
lazyPowermarcoceppi: wiped $'s16:20
marcoceppilazyPower: re-reviewing16:21
=== sputnik1_ is now known as sputnik13net
marcoceppilazyPower: updated16:30
lazyPowerre-updated16:34
lazyPowermarcoceppi: ^16:34
marcoceppilazyPower: okay, finally reviewed everything, only two little things16:38
marcoceppiI won't be so lazy reviewing next time16:38
lazyPowermarcoceppi: ack. Fixed and pushed.16:42
jcastromarcoceppi, does bundle proof check that juju-gui is not included in a bundle?16:43
marcoceppijcastro: no, but it could/should16:43
jcastrofiling16:43
marcoceppiopen a bug and I'll add it to the next release16:43
marcoceppilazyPower: hahah, I found one more thing16:44
marcoceppiyou were a little aggressive with the $ removal16:44
lazyPowerKILL IT WITH FIRE!16:44
lazyPowermarcoceppi: line 240?16:45
marcoceppilazyPower: nooooope16:45
marcoceppi;)16:45
lazyPowerfind and replace came back to haunt me :((16:45
sarnoldnot sed -i? :)16:46
lazyPowersarnold: yuck it up fuzzball :P16:46
sarnoldnyuk nyuk nyuk16:47
lazyPower<316:47
sarnold<316:47
marcoceppilazyPower: commented16:47
marcoceppilazyPower: or just ommit that all togehter16:48
lazyPowerbut, that cuts out my interesting prompt/path16:48
lazyPowerack - removing.16:48
* lazyPower goes back to the review queue16:54
jcastrohey everyone, "State of the Juju Ecosystem" had to be moved to thursday as they added a plenary slot17:07
jcastroso Thursday will be charm school, state of the eco, and then Amulet tests all in one day17:08
lazyPowerwomp17:09
lazyPowerty for the update jcastro17:09
lazyPowerdid we move that around on the eco calendar yet?17:10
jcastroI didn't know we were putting those  on the calendar17:11
jcastroin that case, no17:11
lazyPowermaybe we arent. I just looked and didn't see anything there17:11
lazyPoweri figured with it being UDS related, it would go on the calendar, my b.17:11
jcastroit's UDS, we're supposed to be paying attention heh17:11
jcastrobut if you register yourself at UDS it will generate a calendar of sessions for you, etc.17:12
jcastroI'll be sending reminders here throughout the week anyway17:12
marcoceppilazyPower: noooo17:21
marcoceppilazyPower: you only needed to fix that one line, the rest was fine :(17:21
lazyPowermarcoceppi: no idea what you're talking about17:22
marcoceppigh17:22
lazyPowerdamnit17:22
lazyPoweri'm quit17:22
lazyPowers/i'm/i17:22
marcoceppiYou even asked, and I was like "nooo, those are fine"17:24
lazyPowermarcoceppi: updated17:25
marcoceppilazyPower: now, can you squash 'em all :) <317:26
=== Ursinha is now known as Ursinha-afk
jcastrohey lazyPower17:31
jcastronow that you've documented the vagrant workflow17:31
jcastrohttp://www.vagrantup.com/blog/vagrant-1-5-and-vagrant-cloud.html#features17:31
jcastrohah.17:31
lazyPowerjcastro: make a card17:31
lazyPowerand stand in line behind marco17:32
jcastroI think it'll be a bit before we get 1.517:33
jcastroutlemming, https://vagrantcloud.com/17:33
jcastroutlemming, this is just launched, but we should perhaps look at indexing the official boxes there?17:33
lazyPowerjcastro: https://vagrantcloud.com/search?utf8=%E2%9C%93&q=juju17:34
lazyPowerboo17:34
jcastroindeed!17:34
lazyPowerlook at all these chef boxes17:34
lazyPowerboy sure would be nice if JUJU was a featured box17:35
* lazyPower tongues cheek17:35
=== Ursinha-afk is now known as Ursinha
zchanderping lazyPower17:55
lazyPowerzchander: pong17:55
zchanderI am at home right now, but with VPN to school17:56
lazyPowerzchander: ok. my thoughts are check connectivity from the gateway node to the internal net. validate its communicating properly17:57
lazyPowerstart at the lowest common denominator and unwind the onion of complexity layer by layer17:57
zchanderI can ssh into the node without any problem using the hostname from the controller17:57
lazyPowerok, is port80 of the node accessible from the controller?17:58
lazyPoweryou can use links or similar text based browser to validate17:58
lazyPoweror curl for that matter17:58
zchanderI am installing lynx right now17:59
zchanderDone: I am getting a bad gateway from nginx18:01
lazyPowerthat would be on the wordpress charm, and you should have gotten that via the apache reverse proxy. but ok we have validated you have port 80 connectivity18:02
lazyPowertail your apache logs for the vhost, and attempt to reach the wordpress node.18:02
zchandersnippet from wordpress-access_log: http://paste.ubuntu.com/7069014/18:07
zchanderbtw, maas-ctrl-001.nimeto.edu/MAAS also gives a bad gateway from nginx18:08
lazyPowerso the reverse proxy is working?18:08
zchander(this is the fqdn for my MAAS controller)18:08
zchanderSeems so, but too good? ;)18:09
lazyPowerso, my thoughts are, poke at wordpress and figure out a) why its a bad gateway (probably PHP-FPM failed to start) b) what do you need to add to get the proper hostname on the wordpress unit to respond to the request.18:09
zchanderThis a line from the access log from nginx on the wordpress node: 10.0.41.5 - - [10/Mar/2014:18:06:05 +0000] "GET /favicon.ico HTTP/1.1" 404 140 "http://node001.nimeto.edu/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"18:12
lazyPoweri saw that. its not finding a site for that hostname.18:12
lazyPowerthe 404 in the log detail points to that.18:12
zchanderSeems I have to get up to speed with nginx....18:13
lazyPowerzchander: http://wiki.nginx.org/ServerBlockExample18:13
lazyPowerzchander: there's also a configuration option for the wordpress charm to use apache instead of nginx18:13
lazyPowerzchander: juju set wordpress engine=apache218:14
lazyPowerhttps://jujucharms.com/precise/wordpress/#readme18:14
zchanderCan I foo that with a running charm?18:14
lazyPoweryep. so long as the charm is not in an error state, it will reconfigure itself on the fly18:14
zchanderjust did it.... Trying again18:16
zchandergetting [agent-state-info: 'hook failed: "config-changed"'], this will resolve itself in time? Or should I 'resolve' the issue?18:19
zchanderbrb: getting kid to bed....18:20
mgzzchander: hook failures need manual resolution18:22
lazyPowerzchander: you can either pass the -r to the resolved command, or use debug-hooks to manually investigate and resolve the issue.18:22
lazyPowerzchander: units in an error state do not magically resolve themselves, and always require manual intervention.18:22
zchandergetting a HOOK W: Failed to fetch http://ppa.launchpad.net/charmers/charm-helpers/ubuntu/dists/precise/main/binary-amd64/Packages  403  Forbidden when switching to apache (??)18:33
zchanderI am going to destroy the service and retry to redeploy18:35
zchanderbbl, got visite... parents...18:43
bachi sinzui19:03
sinzuihi bac19:03
geekmushanyone playing with juju on Digital Ocean?19:07
=== CyberJacob|Away is now known as CyberJacob
lazyPowergeekmush: there are a few using hazmat's plugin for alpha-level testing19:28
hazmatgeekmush, just saw your issue19:28
hazmatgeekmush, so you need the dop library from git atm..19:28
hazmatgeekmush, i'll switch out to just doing a mini digital ocean client lib for the needed bits within the plugin.19:28
hazmatbut probably not today19:29
geekmushhazmat:  ok, cool … I'll stand by and also try out the git'd version of dop as well19:29
hazmatgeekmush, cool, yeah.. things work if you using the git version of dop.. i put a bug in there for them to make a release, since its been over a release since their last19:30
hazmater.. over a year19:30
=== lazyPower changed the topic of #juju to: Welcome!! Docs: http://juju.ubuntu.com/docs || FAQ: http://goo.gl/MsNu4I || Review Queue: http://goo.gl/9yBZuv || Unanswered Questions: http://goo.gl/dNj8CP
jcastrohey fellas, so I am working on a django bundle20:03
jcastrobut the charm hasn't been touched in like a year20:03
jcastroanyone mind doing it next on the audit?20:03
hazmatgeekmush, any luck/progress?20:31
geekmushjust started … got pulled into last minute conf call …20:32
bodie_does anyone know the status of juju on debian?22:50
bodie_i'm seeing some articles linking to a juju package in experimental, but it's gone now22:51
sarnoldbodie_: I don't think there has been any effort to push the juju packages to debian yet; those packages in experimental were probably the old python version 0.5 or so iirc, which, while neat, weren't anything that anyone wanted to tell users to use :)23:01
marcoceppibodie_: juju the client should just work23:05
marcoceppibodie_: though you may need to compile it from source,23:05
bodie_I see :)23:06
bodie_thanks23:06

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