/srv/irclogs.ubuntu.com/2016/01/29/#juju.txt

kwmonroebolthole: blahdeblah is correct, you can't rely on order of any hook execution.. so the hooks must handle the potential for nothing being returned by relation-get00:15
blahdeblahthanks for confirming, kwmonroe00:16
kwmonroein your case, it would probably be easiest to wire in your webapp using webapp-container-relation-changed00:16
kwmonroeyou are guaranteed that relation-changed *will* fire anytime data on the relation changes00:16
kwmonroe(vs relation-joined)00:16
kwmonroeso, a webapp-container-relation-changed hook for you might look like "FOO=`relation-get webapp-path`; if [ ! -z $FOO ]; then wget the webapp and move it to $FOO; else do nothing and wait for the next time relation-changed runs.00:18
kwmonroeeventually, relation-get webapp-path will return data (once tomcat sends it), and your -changed hook will get it.00:18
boltholethanks. I kinda empirically found out that gets fired when I want it to. Nice to know that it's guarranteed that way.00:20
boltholenow that I think about it some more though...00:21
boltholeI trhink that mbruzek is approaching the information exchange the wrong way.00:22
boltholehe is using the relationship to share the tomcat webapp directory00:22
boltholebut... when and ifjuju ever gets to the point whre subordinate services can be removed....00:23
boltholeI'm thinking that the relationship may be severed, before the service gets told to 'stop' itself.00:23
boltholeBut at that point, it has just lost the information on where to cleanup itself. becuase that information was in the relatoinship, which doesnt exist00:23
kwmonroeyou can remove subordinate services today in juju.  relation-departed will fire, which is where you should remove any data that you don't want left on the principal unit.00:24
boltholehuh. so relatoin-departed is inappropriately named? it should be called "relation-deparTING"?  ;-)00:24
kwmonroemeh, i guess.  -departed means the relationship is tearing down but you can still access relation data (like webapp-path).  -broken means the relation is gone.00:25
boltholeWOOO! I got it to work!00:38
kwmonroenice bolthole!00:44
boltholekwmonroe could you please aprove my one-char-syntax-error fix to the tomcat charm?00:48
boltholei submitteed it this morning. it was ignored, and someon else worked on the charm so there were conflicting lines.00:49
boltholei just redid it for no conflicts. please push it through before more conflicts happen?00:49
boltholethe webapp-path value is completely unusable without the fix.00:50
kwmonroesure bolthole - let me take a look00:52
kwmonroebolthole: i only see this from 18 hours ago.  did you see another commit to trusty/tomcat that made this merge conflict?00:53
kwmonroehttps://code.launchpad.net/~bolthole/charms/trusty/tomcat/trunk/+merge/28421300:53
boltholeyeah just 60 seconds beofre i wrote that :)00:57
boltholehttps://code.launchpad.net/~bolthole/charms/precise/tomcat/trunk/+merge/28437300:57
boltholeon wiat, its precise00:58
boltholenot trusty. yet.00:58
boltholeso i guess thre's no conflict for the trusty one, and hyou could just approve that one too ;)00:59
boltholeThanks01:31
kwmonroebolthole: you talking to me?  if so, yw :)01:33
bolthole:)   So.. how does the charm version in the store, get derived from the backend code baes?01:34
boltholeone is at 15, the other is at 3 or something?01:34
kwmonroeyeah bolthole - there's no correlation.  at least not one that i can figure out.01:35
kwmonroei mean, i guess you could have 10 commits to LP, push to store making charm rev 1, then 4 more commits to LP, push to make charm rev 2, then 1 more LP commit, push to make charm rev3.01:36
kwmonroei but i don't know how you could look at an LP commit number and figure out the charm revno.01:36
boltholeokay, so it isnt automatic; you have to make some kind of explicit push each time01:37
kwmonroethat's correct01:37
kwmonroewell, no, that's not correct.  i don't know how it works.  the numbers just go up ;)01:39
boltholedohhh01:39
kwmonroeoh oh oh -- maybe it is how it works.. each commit bumps the LP revision, but only a push triggers the ingestion into the store.01:40
kwmonroeand now i have thought too much about this.  thanks.01:40
=== natefinch-afk is now known as natefinch
iceydoes juju on openstack support the storage hooks?08:06
jamespagegnuoy, quick review pls - https://code.launchpad.net/~james-page/charm-helpers/lp1537155/+merge/28441109:26
bloodearnestmarcoc|airplane, the subordinate thing is a red herring, I would just like to be able to discover the units running on the this machine, in the same way I can find out the hostname of the machine09:34
bloodearnestto avoid having to explicitly configuring that info in every charm09:34
bloodearnestthe context here is *not* charm code. It's a library that is used by our apps to standardise/improve their log outout09:40
bloodearnestwe currently tag each log line with the hostname of the machine, which is easy to discover. But the hostname is kinda useless in a juju world, we are more interested in the juju unit that the app runs under09:41
bloodearnestso I was wondering if there's away to discover the juju units running automatically09:41
bloodearnestor else, every charm for each service that uses this library (10+) would need to be manually updated to set an env var or similar with the unit name09:42
deanmanHi, I'm trying to learn more about Juju by using the official vagrant boxes and they fail to properly boot up both on windows and MacOSX. I've tried trusty64 trusty32 and wily 64. All of them are stuck at "Intalling package: cloud-utils"13:16
stokachukadams54: with theblues library how can i pull a specific revision? for example, bundle = cs.bundle('data-analytics-with-sql-like/5')13:46
stokachuspecifically for a bundle13:48
rick_h_stokachu: yes, https://api.jujucharms.com/charmstore/v4/openstack-base-34/archive/bundle.yaml vs https://api.jujucharms.com/charmstore/v4/openstack-base-39/archive/bundle.yaml13:58
rick_h_stokachu: the thing is that a new revision might be due to a readme update or the like13:58
rick_h_stokachu: so not all reivsions will be changes to the bundle.yaml file itself13:58
stokachuah ok13:58
rick_h_I was confused because that openstack 38 and 39 revisions the files were the same13:59
rick_h_but the readme was different13:59
stokachuso i can generate the archive url with cs.archive_url('data-analytics-with-sql-like-4') but that doesn't contact the charmstore to validate it14:04
rick_h_stokachu: not sure on the library itself14:05
stokachui guess i could just generate the api url and check that a 200 is returned14:05
rick_h_stokachu: yea, have to bug jcsackett or some other folks that work on that atm14:06
stokachurick_h_: ok cool, will do thanks14:06
tych0marcoc|airplane: https://github.com/lxc/lxd/issues/147716:47
=== marcoc|airplane is now known as marcoceppi
stokachuhow do you force a destroy-controller with juju 2.0?16:47
stokachui interrupted a lxd bootstrap and now juju is unable to cleanup after itself16:48
tych0marcoceppi: er, https://github.com/juju/juju/pull/419116:48
tych0i am bad at copying and pasting16:48
marcoceppitych0: aren't we all16:58
cmaginatvansteenburgh: hey, did you get a chance reproduce that bundletester issue i've been hitting?17:05
tvansteenburghcmagina: i was unable to repro. would you mind filing a bug here https://github.com/juju-solutions/bundletester/issues17:07
cmaginatvansteenburgh: will do, thanks for trying17:07
tvansteenburghplease include traceback17:07
tvansteenburghi will have another look soon17:08
=== zz_CyberJacob is now known as CyberJacob
=== urulama is now known as urulama__
adam_gdoes juju / local provider log output of uvtool errors?20:28
=== jrwren_ is now known as jrwren
lazypower|traveladam_g I don't believe so21:59
lazypower|travelBut i'm not 100% on that.21:59
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
boltholescalability question: what if we have a 'cloud' where we anticipate 200-300 services? how can we use juju for that and keep it manageable?22:49
rick_h_bolthole: we'd suggest a controller with multiple models in HA mode23:03
rick_h_bolthole: the controller multiple model work is in the 223:03
rick_h_p alpha work23:03
rick_h_bah 2.023:03
boltholerick_h_ sounds like you are describing more scalability. however, I am actually trying to focus on manageability23:24
rick_h_bolthole: i'm talking about moving those 200 services into 20 more tightly scoped models23:25
rick_h_so you're managing things in smaller groups23:25
boltholeah, good23:25
boltholedemo or screenshots?23:26
rick_h_bolthole: https://jujucharms.com/docs/devel/wip-systems23:26
* rick_h_ looks for youtube talk23:27
rick_h_https://youtu.be/-1aVgnJIwLk23:27
rick_h_bolthole: shows the old gui visualizing it23:28
rick_h_bolthole: don't have one with the new gui atm23:28
boltholeah23:28
boltholethanks for the video23:28
boltholecant use sound at the moment....  is "model" the thing tothe right of juju/admin ?23:31
boltholeso,23:31
boltholejuju/admin/openstack23:31
bolthole"openstack" is a model view?23:31
rick_h_bolthole: yea the model name is sonething you give whwb you create it23:35
rick_h_you'll see different names as the video goes on23:36
bolthole"it"23:36
boltholeyou said that was with the "old" gui... but I dont see that option with the trusty/juju-gui screen?23:38
rick_h_bolthole: it was a demo23:38
rick_h_bolthole: today you use the jes festure flag in that doc link23:39
rick_h_bolthole: and use the gui 2.0 deployed into the admin model23:39
boltholeoh. um.. waitaminute though...23:39
boltholethe feature flag you are referring to, is   for "multiple environments"?23:41
rick_h_bolthole: yes23:41
boltholemodels == enviroments? or someting else?23:41
rick_h_bolthole: where we're doing s/environments/models in 2.023:42
boltholeugh. naming overload:(23:42
boltholebut.. I dont want to set up a separate juju .. controller(?) for every model wehave23:42
boltholethat seems rather wasteful23:42
rick_h_no one controller many models23:42
boltholehuh23:43
rick_h_once your bootstrapped you can creat more and more models23:43
rick_h_try it out in that doc link23:43
boltholeso whats the new name for what is now called environments? :-D taht is to say "my azure environment" vs "my amazon environment" ?23:43
rick_h_my azure controller23:44
rick_h_and in 2.0 you give them names and can have multiple azurr controllers23:44
rick_h_so cloud-controllers-models23:44
boltholeah, k.  thanks.  Rough ETA for release of this thing?23:44
rick_h_16.0423:45
rick_h_april release23:45
boltholethanks23:45
rick_h_i'm showing some of it at the summit next wed23:45
rick_h_the charmers summit23:45

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