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

=== CyberJacob is now known as CyberJacob|Away
themonkmarcoceppi: hi00:14
themonki have a apache2 mod now i deploy apache2 now how i install my mod in it, do i make a charm for my mod and run this command "juju deploy --to=1 myapache_mod_charm" is this the only way to do this?00:18
marcoceppithemonk: do you have to compile the mod specially? I think there's a config option for apache mods on the charm00:31
themonkmarcoceppi: this is a custome mod :) and it has a conf and load file for mods-available and i made a binary mod.so from src00:33
marcoceppithemonk: I'd recommend making your apache_mod_charm a subordinate charm then00:33
marcoceppithat way you can deploy it without having to use the --to command00:33
themonkmarcoceppi: hmm i was reading subordinate charm doc its not clear to me how i will do it. is there any charm like this. a subordinate charm to apache2 charm00:36
marcoceppithere's no subordinate charm like yours for the apache2 charm, but there are quite a few subordinate charms00:37
=== Tribaal_ is now known as Tribaal
=== _mup__ is now known as _mup_
=== yo61_ is now known as yo61
=== mwhudson is now known as 5EXAAR2RG
themonkmarcoceppi: hi, i am back. :) can you give me a charm name?02:08
themonkmarcoceppi: i was looking Gunicorn02:09
themonkmarcoceppi: it is a subordinate charm.02:09
=== 5EXAAR2RG is now known as mwhudson_
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== FourDollars_ is now known as FourDollars
themonki cant understand add-relation. say juju add-relation apache2 mycharm and juju add-relation mycharm apache2, is there any difference?04:38
=== Kyle____ is now known as Eliz
=== thumper is now known as thumper-afk
=== jam1 is now known as jam
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== thumper-afk is now known as thumper
=== zchander_ is now known as zchander
=== Lord_Set2 is now known as Lord_Set
zchanderping frankban11:10
frankbanzchander: morning11:12
zchanderGood morning frankban. I have recreated my MAAS environment this morning, using 13.1011:18
zchanderGoing to try that11:18
frankbanzchander: sounds good11:18
zchanderI am at the point to import the PXE files. Will start juju when that's done11:19
zchanderDo you have any recommendations regarding the PXE system? precise, quantal, raring, saucy?11:20
frankbanzchander: I don't know maas enough to give recommendation. the only constraint from the GUI perspective is that the GUI node must be precise11:21
zchanderAh... Going to use that11:21
zchanderfrankban: I am going to test the 'reverse proxy route' using 'subfolders' instead of virtualhosts11:31
frankbanzchander: makes sense11:31
zchanderYep, got to the point I am going to make the apache2 config for juju-gui12:57
phednyI'm trying to setup my first juju system with the wordpress+mysql charms example, but it gets stuck in a situation where machines "1" and "2" have instance-id: pending13:34
phednyI have already disabled ufw13:34
phednyaccorading to mailing list this my be the result of template to be downloaded, but is there a way where the download is active and how far the progress is?13:34
lazyPowerphedny: what version of juju are you running?13:37
lazyPowerphedny: if your instance id's are pending, the hosts are not spinning up. I assume you're using the local provider?13:37
phednyagent-version: 1.16.6.113:37
phednyyes, I'm using the local provider13:37
lazyPowerdo you see the machines listed in sudo lxc-ls?13:38
phednyI only get "mark-local-machine-1"13:38
lazyPowerdid you update juju after you bootstrapped your local environment?13:38
phednyno, I basically followed https://juju.ubuntu.com/docs/config-LXC.html on a clean 12.04 LTS13:39
lazyPowerhmm...13:39
lazyPowerIf you've waited a reasonable amount of time (5 minutes should be plenty for getting 2 lxc containers spun up) can you tryd estroyiing the environment and restarting?13:40
phednyI waited over 30 minutes ;)13:40
lazyPoweryikes13:40
phednylet me try to destroy and start again13:40
lazyPoweryeah, lxc containers are pretty quick, and getting quicker in one of the revisions coming down the pipeline13:40
lazyPowerphedny: let me know if it continues to hang and give you problems. We'll need to aggregate some facts about the environment.13:41
phednyokay.. I entered all commands again, in machine-id: pending state, so let's give it some time again13:43
zchanderfrankban: When trying the 'non-virtualhost' approach, I get 404 errors. see: http://paste.ubuntu.com/7079340/13:44
zchanderThis is my config for now: http://paste.ubuntu.com/7079344/13:45
lazyPowerphedny: can you tail $HOME/.juju/local/logs/machine-0.log and look for errors?13:45
lazyPowerthe last time I ran into this, juju was on the same network segment and i had ip address collisions.13:46
phednylazyPower: I get only there error messages:13:49
phedny2014-03-12 13:42:13 ERROR juju apiclient.go:116 state/api: websocket.Dial wss://localhost:17070/: dial tcp 127.0.0.1:17070: connection refused13:49
phedny2014-03-12 13:42:13 ERROR juju runner.go:211 worker: exited "api": websocket.Dial wss://localhost:17070/: dial tcp 127.0.0.1:17070: connection refused13:49
phednythe remainder are mostly DEBUG level with some json and I saw some PGP blocks13:49
lazyPowerbut it bootstrapped and returned without error?13:49
phednybootstrap didn't return any errors13:50
* lazyPower if baffled13:50
lazyPowers/if/is13:50
lazyPowerwhy would your state server be denying requests if it bootstrapped ok?13:50
phednynetstat shows me a listening socket on [::]:1707013:51
=== edu-afk_ is now known as edamato
lazyPowerphedny: i dont have a good resolution for you. My thought is to open a bug against juju-core with your log output.14:06
themonkfor subordinate charm how do i target apache2 only, if i do not want to fork apache2 ?14:16
themonkmy perpous is to install a custome apache module14:17
marcoceppithemonk: you don't really, you just tell people in the README to only add it to apache214:17
themonkmarcoceppi: i am depending on juju-info here ryt and every charm implicitly has it, so apache2 and say nginx provides interface http and if i have both of them then my subordinate charm will triger both of them ryt?14:20
marcoceppithemonk: juju-info is iplicit, yes14:21
marcoceppiIf you wanted to make it ONLY available for apache2 you'd have to add a new interface to the apache2 charm14:21
marcoceppibut there's nothing wrong with it just being a subordinate14:21
marcoceppijust prefix the charm name with apache2 so people know it's an apache2 only subordinate14:21
marcoceppiapache2_mod_yourmod14:21
themonkmarcoceppi: i am just thinking deploy --to <apache2 machine> is much easier :)  an then i can use add-unit to replicate but will it trigger if i do config change in my modcharm?14:30
marcoceppithemonk: if you add-unit to either your charm or apache neither will scale with each other14:31
marcoceppi--to is not a very good solution14:32
themonkmarcoceppi: hmm i understand :)14:32
themonkmarcoceppi: i want to show you my metadata14:40
marcoceppithemonk: oka14:41
themonkmarcoceppi: http://pastebin.com/GnHGT36w14:45
themonkmarcoceppi: is it ok ?14:50
themonkmarcoceppi: hello are you there?15:52
=== niemeyer_ is now known as niemeyer
marcoceppithemonk: the paste link didnt' work16:33
themonkmarcoceppi: it was set for 1h16:34
marcoceppithemonk: ah, sorry, I was afk for a bit16:34
themonkmarcoceppi: ok doing again16:34
themonkmarcoceppi: no problem :)16:34
themonkmarcoceppi: http://pastebin.com/xQxs0FGP16:36
marcoceppithemonk: well, that's one way to do it16:36
marcoceppibut that implies that it'll work on haproxy, varnish, etc16:37
themonkmarcoceppi: yes yes how i fix it16:38
marcoceppithemonk: just use juju-info16:38
themonkjuju-info:16:43
themonk     interface: juju-info16:43
themonk     scope: container16:43
themonkmarcoceppi: you mean remove website: interface : http and use it https://gist.github.com/anonymous/c08c66103454c2bfcacd16:44
marcoceppithemonk: pretty much, though call the relation something like apache2-mod instead of juju-info. but just use teh juju-info interface16:44
themonkmarcoceppi: hmm ok16:45
jcastromarcoceppi, did my bundles not get pushed yet?17:30
marcoceppijcastro: npt uet17:32
jcastromarcoceppi, is there a way you could partially pull a PR?17:42
jcastrolike say, the manual provisioning page only and ignore the other parts of my PR?17:42
jcastroI'd like to get the mention of null out of the docs asap17:42
jcastroor, is there a trick for me to resubmit only X changes?17:42
marcoceppijcastro: it depends17:43
marcoceppijcastro: were they done in two commits?17:43
jcastroyes17:43
marcoceppijcastro: then yes17:44
marcoceppijcastro: I'll cherry pick your commit after lunch17:44
jcastrooh man, awesome17:45
jcastrojut got a mail from a guy using Juju to deploy a wordpress blog, he's migrating from this: http://lquest.org/17:46
marcoceppijcastro: sweet, let him know he can ping me with any questions17:46
jcastroseems like he's deploying to LXC, but wants to access the blog from the outside17:47
jcastrohttp://askubuntu.com/a/28241517:48
jcastrois this still our best bet?17:48
marcoceppijcastro: you def need to set up a bridge17:49
marcoceppibut the dhcp settings will change depending on provider17:50
jcastroyeah I recommended manual provider instead17:54
jcastrobefore realizing it still has the null junk in it17:54
marcoceppijcastro: https://github.com/juju/docs/pull/3018:09
marcoceppijcastro: I also created a video of how I cherry picked the commit, it's uploading to youtube atm18:10
jcastrobrilliant18:12
jcastrooh I see, you resubmitted it.18:13
marcoceppithere's no sound, and it's actually pretty low qual18:13
jcastroI suppose it's bad form to approve your PR of my PR?18:13
marcoceppijcastro: yeah, it still needs to be approved, I just split it out18:13
marcoceppijcastro: I mean, it lgtm, but get like lazyPower or someone to ack it18:14
marcoceppijcastro: https://www.youtube.com/watch?v=1VWsmr_HdFU18:14
jcastroI think by low sound you mean no sound18:15
jcastroheh18:15
marcoceppiI should probably make a better video18:15
marcoceppiwhere I narrate it18:15
lazyPowerjcastro: approved18:16
jcastrosince I have your attention(s)18:17
jcastrohttps://code.launchpad.net/~charmers/juju-core/github-docs18:17
jcastrois the place where you can click the button to import the github branch into launchpad18:18
jcastroyou'll want to hit the button in cases where you want the latest changes from GH to run with the next docs regen cron job18:18
marcoceppijcastro: cool, also, since this was a cherry pick, if you look at your other PR, the one that had null provider and quickstart, you'll see it only shows the quickstart stuff now18:18
jcastronifty18:19
lazyPowerdoes the button only show up when theres open differences in the branches? I see no such button.18:20
lazyPoweroh i'm not logged in, hang on18:20
jcastroyou'll see it when you're in ~charmers18:20
lazyPowerah i see it18:21
lazyPoweroh right! i need to craft my letter to petition the group for a charmer tag18:21
lazyPowerso much to do, so little time in the day18:21
bodie_how does Juju deal with outages?18:28
marcoceppibodie_: depends on the kind of outage18:33
bodie_maybe I'm misunderstanding it a bit as a state map where it's more a system for choreographing a service network and then deploying it18:34
bodie_so I guess my real question is whether juju is more about a state service which knows the state of its nodes, vs. more oriented to choreography or planning18:34
bodie_provider-level outage, in other words18:35
bodie_let's say a node where 3 of our services reside goes dark18:35
marcoceppisure, each agents ping the bootstrap node as a healt check18:37
marcoceppiso juju knows when agents go missin18:37
marcoceppilets say there's a network blip, and your 3 nodes go offline for 10 mins, juju does nothing. It'll queue events and when the agents re-register (and come back online) it'll push the events out again18:37
marcoceppibodie_: using the API you can add additional logic to juju, say to replace those nodes, but juju doesn't do anything automatically at the moment18:38
bodie_I see18:39
jamespagemarcoceppi, expect a ping from mattgriffin re percona-server charms/support in mysql charm18:39
bodie_but it'll at least realize that something's not normal18:39
jamespagewe just discussed in a session18:39
marcoceppijamespage: ack, thanks18:39
marcoceppibodie_: right, juju status will reflect an outage in the machine listing and the unit18:39
marcoceppisaying agent-state: down or missing18:40
bodie_righto18:40
marcoceppiso it actively knows about the topology it's deployed and to some extent it's health18:40
bodie_okay, cool18:40
bodie_so...  is there someplace I can find the program flow for what happens when a new charm is deployed?18:40
bodie_I mean, obviously the code18:40
bodie_but I'm still in overview mode18:40
bodie_if not, i'll just get to mapping that18:41
marcoceppibodie_: the docs and then asking questions. The docs are still pretty fluffy and don't dive too deep at the moment18:41
marcoceppithere's also a few blog posts floating around18:41
bodie_(noticed that) lol18:41
bodie_alright :)18:41
marcoceppibodie_: let me find a blog post from gustavo that might help18:41
bodie_according to nate the server will bring up a replacement unit if it sees an outage?18:41
bodie_awesome, thanks18:42
marcoceppibodie_: http://blog.labix.org/2013/06/25/the-heart-of-juju18:42
marcoceppithat might have a bit more information than the docs18:42
marcoceppibodie_: otherwise, if need more indepth stuff feel free to ping in here18:43
bodie_:D thanks18:44
bodie_right now a stranger in a strange land attempting to worm my way into engaging with core code18:45
=== edamato is now known as edu-afk
zchanderlazyPower: Reinstalled my MAAS, using 13.10 for the controller. Went the reverse proxy way without virtual host, but that also won't work. (juju-gui now gives me a weird webpage). The side of the story is, that I can see the requests for juju-gui on de node ;)19:09
lazyPower...wat19:12
lazyPowerzchander: what is de node?19:12
zchanderde == the (sorry, was talking to my wife and instantly wrote some Dutch words.... ;) )19:13
lazyPoweroh ok. i was confused about intent19:13
zchanderWhat I meant: I do see the request coming on the juju-gui node in guiserver.log19:14
* zchander banging head against the wall....19:34
lazyPowerzchander: whats this weird webpage you speak of?19:35
zchanderlazyPower: I'll try to upload it somewhere.... (have to rescue my MAAS interface at the moment, was a bit too fast with apachectl  :(  )19:37
zchanderlazyPower: http://postimg.org/image/axpl2ii2r/19:38
zchanderlazyPower: This is the javascript console: http://postimg.org/image/e4qr3wfe1/19:39
lazyPowerthat was my next request :)19:39
zchanderPfew.... got my MAAS web interface back19:40
lazyPowerok so its missing the assets - or so it thinks.19:40
marcoceppizchander: juju-gui doen't expect to run in a sub-directory19:41
lazyPowerso if you look at your javascript console - its not loading anything as the juju-gui assumes everything is going to be loaded off of a root path of /juju-ui19:41
marcoceppiso it uses absolute URLs instead of relative19:41
marcoceppirick_h_: ^^19:41
marcoceppizchander: what I'd recommend doing, is instaed of using sub dirs to route requests in the reverseproxy, use subdomains19:42
rick_h_lazyPower: marcoceppi yea, don't think things work in non root path atm. It's something we've got to fix coming up19:42
rick_h_but not a supported way to service atm19:42
marcoceppizchander: ie, juju-gui.mass-ctrl-001.nimeto.edu19:42
marcoceppirick_h_: ack, thanks for the heads up19:43
marcoceppizchander: then have maas-ctrl-001 reverseproxy route based on host name and not directory19:43
marcoceppiif that's possible19:43
marcoceppizchander: it does look like you're close though!19:43
zchandermarcoceppi: I was doing something like that, and using reverse proxy, but that gave me some other issues (with web sockets)19:43
marcoceppioh, damn, really?19:44
zchanderit was what I discovered yesterday19:44
marcoceppiah, I'm not sure how to get around that19:44
zchanderBut I would like to retry (as I now use 13.10 instead of 12.04.4)19:44
marcoceppirick_h_: any instructions on how to run juju-gui from behind a proxy?19:44
* lazyPower afks19:45
zchandermarcoceppi: Also using the reverse proxy borked my PXE environment, so when I did restart my node(s) yesterday, they didm;t get back up until this morning as I reverted my config to only a default apache environment on my MAAS19:46
zchander:D19:46
zchanderMaybe I should install another node/server with two nics, one connected to the 'cluster lan', the other to our schoolnetwork.19:48
zchanderAnd run the proxy on that node19:48
=== arosales_ is now known as arosales
=== zchander is now known as zchander_
=== mmcc` is now known as mmcc
mmcchey folks, I have a quick question - where should I file a bug against the juju.ubuntu.com website? It's just a simple broken link...23:08
=== cjohnston_ is now known as cjohnston
sarnoldmmcc: I believe this is the spot: https://bugs.launchpad.net/juju-website/23:10
mmccsarnold: great, thanks! I was looking for it among the projects here https://launchpad.net/juju-project - no dice :)23:11
perrito666hey, I think I have a bug, although it might be a feature:23:17
perrito666I am using juju 1.16.3-saucy-amd6423:17
perrito666and I created a charm which uses pgsql relation23:18
perrito666when the hook for the relation change is triggered, it is triggered twice, once of these times relation-get returns no information on the bash script of the hook23:19
perrito666but, if hooked with debug-hooks to the event, in both oportunities relation-get works correctly23:19
josemarcoceppi: ping, you'll be running that charm school at uds tomorrow?23:20
josejcastro: ^ ?23:20
marcoceppijose: I'll be there, but jcastro is probably your POC23:36
marcoceppiperrito666: that's not a bug23:36
joseI wanted to see if it could be ran at ubuntuonair, since we have part of the story of the charm schools, to get it completed23:37
marcoceppijose: i dont see why not23:37
marcoceppiperrito666: all hooks need to be idempotent23:37
marcoceppimmcc: which link is broken?23:38
perrito666marcoceppi: I know, what I think is a "bug" is that the env in debug-hooks is different from the one the hook is run23:38
marcoceppiperrito666: in what way?23:38
mmccmarcoceppi: it's the "Overview" link in the footer, I filed this bug: https://bugs.launchpad.net/juju-website/+bug/129167423:39
_mup_Bug #1291674: broken "Overview" link in footer of https://juju.ubuntu.com/resources/ <Juju Website:New> <https://launchpad.net/bugs/1291674>23:39
marcoceppimmcc: ah! thanks for filing that, I'll make sure it gets updated23:39
perrito666marcoceppi: this is my hook (for context) https://github.com/perrito666/mezzanine_charm/blob/master/precise/mezzanine/hooks/pgsql-relation-changed23:39
mmccmarcoceppi: sure, glad it got to the right person :)23:39
perrito666marcoceppi: now, this is run twice in all my tests23:39
perrito666marcoceppi: one of those, the first, relation-get returns empty values23:40
perrito666but23:40
perrito666if I hook to said event, I can not get said behavior23:40
marcoceppiperrito666: you're just running in to a race condition23:40
perrito666relation-get returns results always23:40
perrito666marcoceppi: that was my tought23:40
perrito666marcoceppi: I tried a sleep of up to 5 mins to discard that23:41
perrito666(in the hook)23:41
marcoceppiperrito666: it's still not a bug, it's just that when the first run of relation-changed on mezzanine happens, pgsql hasn't sent it's data yet, so the first relation-changed (which juju guarentess will fire at least once in a relation) goes off23:41
marcoceppiperrito666: but data available to the hook doesn't change while the hook is running23:41
perrito666marcoceppi: I see :) thank you for your help23:42
marcoceppiperrito666: put the sleep in your relation-joined23:42
marcoceppisay, just 45 seconds23:42
marcoceppiby then psql should be ready, and you should see the first run of relation-changed get fresh data23:42
perrito666marcoceppi: Ill do, just for educational purposes, the charm actually works, I was just curious of this behavior23:42
marcoceppiperrito666: right, I understand the curiosity, so to guarentee that multiple calls to relation-get work, when the hook is executed it freezes what's available in the relation data wire23:43
marcoceppithat way relation-get is consistent for the time of that hook, if relation data changes while the hook is running juju just queues another relation-changed hook fire in the event queue23:43
perrito666marcoceppi: makes a lot of sense, thank you again for taking the time to explain :)23:44
marcoceppiperrito666: no problem! it occurs to me this would be great to put in the docs23:44
marcoceppiany other questions while I'm still around?23:44
perrito666marcoceppi: nope, that is it, thanks again23:44
marcoceppiperrito666: np!23:44

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