/srv/irclogs.ubuntu.com/2015/03/04/#juju.txt

stokachucurious does it make sense to make a python virtualenv a subordinate to whatever application you want to deploy?00:22
stokachuand only setting the actual relation-* hooks and nothing else so as to have your application rely on that subordinate being available?00:23
stokachuif you deploy the application first it'll fail because the python virtualenv would not be available until after the relation was made00:24
lazyPowerstokachu: why not make the virtualenv part of the parent charm? are you planning on supporting both styles of deployment?00:27
stokachulazyPower: i was just thinking in terms of deployment rather than having to do any pre bootstrap to install a virtualenv01:35
stokachulazyPower: just wanted a clean hooks tree with just python hooks01:35
stokachui looked at the rails charm to see how thats done but it uses a bootstrap style where it installs rvm then chef to deploy01:36
lazyPoweryeah01:48
stokachuim just brainstorming on simplifying charm authoring a little bit01:48
lazyPowerwell, i'm under active refactoring of the chef charm template, and am looking at using a charmhelper to handle the installation portion of chef vs this gnarly bash script i'm shipping01:49
stokachuit gets interesting since you can write the charms in any language, however, the install hook needs to install the ruby package before you can use hooks written in ruby01:49
lazyPowerbut ruby gem environments are quite a bit different than python virtualenvs01:49
lazyPowerright01:49
stokachuunderstood01:49
stokachuit'd be different if you could ship ruby with the charm01:50
stokachuor perl or python01:50
lazyPoweri'm fairly certain this has been pioneered and addressed before - but do you really want to bloat the charm with a runtime env that also exists on the system?01:51
stokachuno not really01:51
lazyPowerthats been my biggest halt on doing something like binstub deployment01:51
stokachuyea definitely01:51
lazyPowerthey *are* more bulletproof though01:51
stokachuit'd be cool if a pre-hook could run where you could install the interpreter of choice01:51
stokachuthen use pyenv, rbenv etc01:51
lazyPowerwhat i'd like to see is better support for this in charmhelpers01:51
lazyPowerwhere you define what you're doing, and it does the heavy lifting in pretext before any actual code is run01:52
stokachuyea that'd be sweet01:52
lazyPowerand support something more like a declarative model, backing away from the boilerplate approach01:52
stokachudefine a charm template to deploy in ruby01:52
lazyPoweri blame robie for giving me the idea01:52
lazyPoweri ahven't come up with anything seriously good in that realm yet, but i keep pondering on it.. like /r/showerthoughts01:52
stokachuso dont hate me but i was trying to work through some ideas in perl https://github.com/charmkit/App-CharmKit01:53
lazyPowerno hate, perl is still a language option covered under "Bring your experience with you"01:53
stokachuwhich basically autogenerated hooks but packed all required modules in the hooks themselves01:53
stokachuanother cool thing was i just importing required modules into the charm namespace01:57
halcyonlazyPower:06:06
halcyonlazyPower: are available at this time?06:06
=== Murali_ is now known as Murali
Muntanerhello guys, I'd like to implement load-balancing mechanisms for my charm. Where can I start?09:57
MuraliHI, i have an issue with my charms dependencies. I have a charm B, which requires charm A to be deployed prior to deploying charm B. How can this be always ensured by juju ?11:01
MuraliWherever charm B is to be dployed, charm A should get installed automatically, before deploying charm B11:03
MuraliIs there a solution to this ??11:03
MuraliMy chamr B install hook will fail without charm A deployment11:05
natefinchMurali: we don't really have support for that.  It sounds like you might want to just merge the two charms into one11:07
gnuoyfwereade, for testing leadership election with 1.23-alpha1.1 do I need to a) enable it with JUJU_DEV_FEATURE_FLAG or some such or b) be patient as it's not available in 1.23-alpha1.1 ?11:09
gnuoyMurali, couldn't you move the install hook code into the relationship joined with charm a hook? So charm b does nothing until it is joined to charm a, once that happens charm b run the code that was previously in the install hook11:11
MuraliThanks gnuoy we will try this11:12
Muralignuoy: my charm A is subordinate charm. in this case after we add relation b/n A&B, does A gets installed first and then charm B's relation-changed hook called?11:38
Muntanerhey guys11:39
Muntanerwhen I deploy a charm11:39
Muntanerand then I add units11:39
gnuoyMurali, the principle gets installed before the subordinate11:40
Muntanerdo the unit act "indipendently" or do they share they same resources?11:40
Muntaneror better: what do the units share and what do they don't share?11:40
Muntanerand another thing...11:42
MuntanerI need to use floating ips to access to the machines, but for some charms I don't need them11:42
Muralignuoy: the principle install hook code we will move to relation-changed. wont the subordinate get installed first ?11:43
gnuoyMurali, the principle is installed first, the subordinate install hook will run afterwards, then the principle <-> subordinate relationship hooks fire11:45
Muralignuoy: ok we will try11:45
gnuoyMuntaner, the units share the config that has been set by the user (the settings detailed in config.yaml) and they share the settings that the services they are related to have set, and if there is a peer relation they can share data between themselves.11:50
Muntanergnuoy, interesting. So basically, I need an NFS server or similar to share the same contents?11:51
gnuoyMuntaner, they are distinct  vms so they do not share a filesystem11:51
Muntanerthanks gnuoy, what is in your opinion the best way to share the same files?11:52
Muntanerand, have you got any suggestions for my floating-ip "issue" ?11:53
gnuoyinteresting question about file sharing, and tbh, I haven't worked on charms that do that, so I may not be the best person to answer. I see that there is an nfs charm in the charm store and a mount interface (https://jujucharms.com/nfs/)11:56
Muntanergnuoy, have you got any suggestion about the floating ips?12:03
Muntanercan I instance a charm without giving it a floating-ip?12:03
Muntanerbecause, right now, I have a small pool (5ish floating ips) and some charms, like mysql, simply don't need it12:04
=== therealmarv_ is now known as therealmarv
gnuoyMuntaner, well it depends on whether you wish to expose all the units to the outside world. Some people use the haproxy charm, assign a floating ip to that, and put the their service behind that12:05
Muntaneryes gnuoy, so you suggest to simply detach the floating ips via my OpenStack?12:06
Muntanerdo juju have something like "juju deploy blabla --dontuseafloatingip" ?12:06
gnuoyMuntaner, I don't know what your setup is but in my exeperience units only get a floating ip if they are explicitly given one outside of juju12:08
jamespagegnuoy, pushing the charmhelper resync to next now14:12
gnuoykk14:13
jamespagegnuoy, done14:15
gnuoyta14:15
jamespagegnuoy, do we have a stable branch upgrade test?14:17
gnuoyjamespage, upgrading from stable charms to next charms ?14:18
gnuoyif so, then yes14:18
jamespagegnuoy, no resyncing the charm-helpers in the stable branches14:21
gnuoyjamespage, no. but I could knock one up pretty quick14:22
jamespagegnuoy, let me try :-)14:22
gnuoyeven better!14:22
vdsrogpeppe, hello, https://bugs.launchpad.net/loggo/+bug/1256015 this bug is quite annoying, if there's no plan to fix it already, I'm happy to give it a try14:39
mupBug #1256015: It's too hard to enable all log messages <loggo:New> <https://launchpad.net/bugs/1256015>14:39
rogpeppevds: you might wanna email thumper first14:40
rogpeppevds: or reply to the issue14:40
vdsrogpeppe, I will, thanks.14:41
jamespagegnuoy, is there a nice way to create a new spec?14:53
gnuoyjamespage, I tend to just copy an existing one14:55
jamespagegnuoy, ok14:55
apuimedoHi15:18
gnuoyaisrael, I don't think Bug #1424069 is fixed fwiw15:19
mupBug #1424069: juju resolve doesn't recognize error state <resolved> <juju-core:Fix Released> <https://launchpad.net/bugs/1424069>15:19
aisraelgnuoy: interesting. I'll build from trunk today and see if it still fails for me15:20
gnuoykk15:20
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== blr_ is now known as blr
=== roadmr is now known as roadmr_afk
bloodearnestmarcoceppi, lazyPower: hey - I have a lint failure on my charm auto test report that I don't get locally20:07
bloodearnestit's a pyflakes thing, and false failure IMO20:07
lazyPowerbloodearnest: in meetings, i can take alook when im' out20:07
bloodearnestlazyPower, ack20:07
lazyPowerbloodearnest: ~ an hour out - sorry for the delay20:07
bloodearnestlazyPower, hey, np20:08
=== roadmr_afk is now known as roadmr
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
catbus1Hi, how to find the version of the charm from the jujucharms.com?23:54
catbus1and is it still true to be able to deploy a charm with specific version such as juju deploy cs:mongodb-25?23:54

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