/srv/irclogs.ubuntu.com/2016/03/24/#juju.txt

stubcory_fu: Using lowest-numbered-unit for leader created split brains, as units usually have differing lists of peers visible during setup and choose different leaders. It only stabilises once all the initial peer-relation-joined/changed hooks have run, and destabilises once you start dropping units.01:32
stubAnd that period before joining a peer relation where a unit has no idea if it is alone or about to join other units.01:33
marcoceppilazyPower: still need help?01:57
lazyPowermarcoceppi nah i wound up moving it and patching it properly02:12
lazyPowerhttps://github.com/juju-solutions/charms.docker/pull/13 - moved the __run method to runner.run and things kind of fell in order after that.02:13
blahdeblahAnyone able to unbreak http://juju-ci.vapour.ws:8080 ?  Seems like I'm not the only one whose runs are getting internal server errors...02:21
=== Spads_ is now known as Spads
gnuoyjamespage, if you get a moment https://code.launchpad.net/~gnuoy/charms/trusty/hacluster/pause-resume09:58
BlackDexhello there10:24
BlackDexWhen using manual provider, can i put the bootstrap node on a lxc?10:24
stubBlackDex: Are you using Juju 2.0?11:17
stubBlackDex: The manual provider allows you to add machines to an existing environment using its IP address.11:17
stubBlackDex: With Juju 1.X, you can create an environment using the local provider and add machines too it using the manual provider. The bootstrap node is the local machine, and not in a container.11:18
stubBlackDex: With Juju 2.0. you can create an environment using the lxd provider, putting the bootstrap node in a container, and add machines too it using the manual provider.11:18
stubBlackDex: You should also be able to bootstrap the manual provider, putting the controller node in an lxc container. You would need to set up the container first and ensure it has network connectivity.11:21
BlackDexstub: No, juju 1.25.3 atm12:27
BlackDexstub: So if i create a new lxc, wich has network, i can bootstrap it to that machine :)12:29
BlackDexthat sounds clear12:29
stubBlackDex: Aparently yes :) I've only used the manual provider with an OpenStack controller node. But any Ubuntu VM or container you can ssh into should work just fine.12:30
BlackDexgood to hear12:31
BlackDexthx!12:31
BlackDexi'm going to try that right now12:31
shruthimaHi Kevin, As you suggested we have made all the changes to IBM Installation Manger layer (https://github.com/kwmonroe/layer-ibm-installation-manager)  locally ( in ./reactive/ibm-installation-manager.sh) to make it is a functional layer and we are able to deploy IBM-IM successfully.  But when we are trying to install IBM-WAS on top of IBM-IM layer , IM layer states like 'im.installed' is not recognized in IBM-WAS layer.  Although we h12:47
shruthima['layer:ibm-installation-manager'] Could you please suggest us is there anything to be added to use IBM-IM layer in other products eg:WAS...!!12:47
cory_fustub: Thanks for the reminder.  Our particular use-case, though, is quite a bit more limited than the general case: we only need to worry about two peers, and we only care about the "leader" once during initial startup.  Regardless, is-leader is still the better solution and it's what we're using.13:36
cory_fustub: Also, I apologize for being so far behind on the layer-basic, charms.reactive, etc. reviews.  I'm basically only getting to things if they immediately impact the big data charms and could really use some time to focus on the libs.  (And / or more help reviewing, anyone-who-wants-to-take-a-look. :p)13:38
BlackDexhow can i change the default ip the bootstrap node listens on?13:44
shruthimaHi Kwmonroe, As you suggested we have made all the changes to IBM Installation Manger layer (https://github.com/kwmonroe/layer-ibm-installation-manager)  locally ( in ./reactive/ibm-installation-manager.sh) to make it is a functional layer and we are able to deploy IBM-IM successfully.  But when we are trying to install IBM-WAS on top of IBM-IM layer , IM layer states like 'im.installed' is not recognized in IBM-WAS layer  .14:02
shruthimaAlthough we have set LAYER_PATH and  included IBM-IM Layer in layer.yaml....(includes: ['layer:ibm-installation-manager']) Could you please suggest us is there anything to be added to use IBM-IM layer in other products eg:WAS...!!14:03
=== cos1 is now known as c0s
marcoceppirick_h_: I'm trying to name my charm with an emoji and it's not working. ...is this a bug? juju deploy ./💩 --series trusty14:44
marcoceppiERROR bad charm URL in response: URL has invalid charm or bundle name: "local:trusty/💩-326"14:45
rick_h_marcoceppi: hmm, I'm going to say no...working as planned?14:45
rick_h_I don't think we're up on supporting emoji for charm names :P14:45
marcoceppirick_h_: not even a 2.1 stretch goal?14:46
rick_h_marcoceppi: I can't tell if you're joking?14:46
jrwreniirc we are [a-zA-Z][a-zA-Z0-9]{2,}14:46
marcoceppirick_h_: I've got an emoji domain, and want to name the service appropriately :)14:46
marcoceppihttp://💩☁.ws14:47
rick_h_marcoceppi: wow...so not joking. /me is trying to take that in a bit14:47
marcoceppirick_h_: I was half joking14:47
marcoceppirick_h_: like this whole thing started as a goof14:47
jrwrenso ベル is not allowed either.14:47
rick_h_marcoceppi: yes, I can tell14:47
marcoceppibut you can mkdir 💩14:47
marcoceppiand I put that as the metadata name14:47
rick_h_marcoceppi: and then Juju lets you down14:47
marcoceppilike it all started coming together14:47
rick_h_after all that progress14:47
rick_h_lol14:47
marcoceppiso, the fact that I can get an emoji domain sent me down this road14:48
marcoceppibut I thought "why not."14:48
marcoceppiwe could transpose the emoji code to punycode14:48
marcoceppiwhere 💩 is xn--ls8h14:48
marcoceppiI'm going to file a bug, because I think it'd be a good stick for talks and such, and everyone uses emjois in their filesystems, right? right. probably not14:49
marcoceppibut still14:50
marcoceppiamazing https://godoc.org/golang.org/x/net/idna14:52
marcoceppithere's already a library14:52
marcoceppiactually, this is a terrible idea, isn't?14:53
jcastrolazyPower: I know you have talk submissions all in your inbox, so if you could submit those that would be <3, see my mail to the list.14:55
jcastrobdx: you too!14:56
jrwreni do use emoji and other unicode chars in my filesystem.14:56
jrwrenI have folder named  👻14:57
jrwrenfor that matter, I have many directories with spaces in them. We should also support spaces in charm names.  right?  right?14:58
* rick_h_ gives jrwren the shusher on the head14:59
jrwrenI picture you pointing at me and yelling "SILENCE YOU!!!"  :]15:00
aisraelof course you would, jrwren :p15:04
jrwrenaisrael: lol. Yes, I live my insanity.15:05
rick_h_jrwren: sorry, watched Home with the boy this weekend. I want a 'shusher' now15:05
jrwrenrick_h_: ah! I still have not seen that one.15:06
rick_h_jrwren: oh it's predictable and such, but worth a few laughs15:06
LiftedKiltwhat ppa do I need to grab juju2 from in order to support the new api in maas 2.0?15:38
rick_h_LiftedKilt: it's not ready yet. The team is working to update the maas provider for the new MAAS 2.0 api15:39
rick_h_LiftedKilt: and it'll take some work to get that work done15:39
rick_h_LiftedKilt: when it's there it'll be in the devel juju ppa first15:39
LiftedKiltrick_h_: gotcha - so if I want to test with maas 2.0, I need to wait for juju15:40
jrwrenon a similar topic, I can't create a new launchpad account named 💀 👻 👽 🤖    ;]15:41
rick_h_LiftedKilt: at this time if you want to do juju on maas 2.0 you need to wait on juju15:41
rick_h_LiftedKilt: you can use maas on it's own and try out 2.0, or try juju 2.0 on maas 1.915:41
LiftedKiltrick_h_: ok thanks - back to mas 1.9 it is! haha15:42
LiftedKiltmaas*15:42
rick_h_LiftedKilt: make sure to follow the juju mailing list. We'll be using it to keep folks up to date as we move it forward15:42
LiftedKiltrick_h_: awesome - just signed up.15:45
cory_fukjackal: Before you sign off, I see you put the README review card in Review.  Are there any PRs for that card or is the audit complete and we can move that card to Done?15:52
kjackalcory_fu, there are no outstanding PRs for this card. Everything is addressed15:53
cory_fuThanks15:53
admcleod-c0s: so im thinking, with upgrading hadoop, that id like a single action against say the namenode, and to propagate the upgrade information to the connected units via interfaces - so maybe a period check of a 'am i supposed to be upgrading?' function for datanodes, for example, although that may cause issues with the 'rolling' nature of the HA upgrade...16:05
admcleod-c0s: then the upgrade info (what version to, what version from, etc) would be propagated around the bigdata charms, so wouldnt have to rely on an 'orchestrator'16:07
LiftedKiltrick_h_: a couple weeks ago you guys had a great ubuntu on air video. I can't find it on the ubuntuonair youtube channel - is it unlisted?16:19
LiftedKiltrick_h_: and have you guys done any others?16:20
rick_h_LiftedKilt: next one is tomorrow. jcastro can you help link up LiftedKilt please?16:23
* rick_h_ is on a phone grabbing lunchables atm16:24
jcastroLiftedKilt: sure, do you remember what it was about? was it our office hours or the zfs one?16:28
jcastrohttp://youtube.com/jujucharms is the channel16:28
jcastrohttps://www.youtube.com/watch?v=2jC8217wjTE perhaps?16:28
LiftedKiltjcastro: it was the office hours march 2016 - which I found thanks to your link16:30
LiftedKiltjcastro: but now that you've linked that video, I'm watching it now haha16:30
c0sadmcleod-: I think it makes sense. Let me dig a bit into it, cause I still rough at the edges when it comes to Juju16:33
c0sthanks for sharing the idea!16:33
falanxIs there such a thing as a self-hosted private charm store for internal use?16:37
bdxopenstack-charmers: Hows it going? Can someone point in the direction of where/how keystone creates endpoints for a service on relation joined hook?16:55
bdxopenstack-charmers: radosgw for example16:56
=== cos1 is now known as c0s
c0scory_fu kwmonroe with respect to the upgrades - ie in Hadoop. we have upgrade of the software and the upgrade of the filesystem.17:40
c0sThe former is pretty common for long live clusters (but we probably aren't concerned much with it, right?)17:41
c0sthe latter happens less frequently, but seems to be our main objective, is it?17:42
kwmonroec0s: not sure what you mean by 'upgrade of the filesystem'.  fwiw, i thought our main objective was the upgrade of hadoop itself, so the former use case.17:54
c0skwmonroe: HDFS upgrade is in order when the fsimage layout got changed17:55
kwmonroeah, gotcha c0s.  does hdfs change outside of a hadoop version change?17:56
c0sbasically, if you have Hadoop 2.0.5 and then install Hadoop 2.7.1 - the namenode will refuse to run because the layout is old and you have to go through an upgrade procedure17:56
c0sno, it doesn't17:56
c0sthey are the same release train17:56
c0sit is just an extra thing to do if something like this happens17:57
kwmonroeok, so in that case, our objective would be to handle both your use cases.. upgrading hadoop and whatever else needs to be done to support the new version.17:57
c0sok. just to repeat myself kwmonroe - will see the filesystem upgrade only in case of really long-live clusters. Or if someone happens to preserve an old file system and then tries to use it with a newer version of the software. Which is a quite crazy idea, IMO ;)18:00
beisnerhi bdx - add_service_to_keystone()  and add_endpoint() in the keystone hooks dir is where the mechanics ultimately take place.   so, ceph-radosgw's identity_joined() advertises endpoint values via relation data, then keystone acts on it.18:25
bdxbeisner: awesome, thanks18:28
bdxbeisner: so, I need to add the object storage endpoint `http://<ip-or-fqdn>:8080/v1/AUTH_%\(tenant_id\)s`18:29
bdxbeisner: to do this I would need to add the endpoint to those that radosgw advertises via relation?18:29
bdxexactly what I was looking for! thanks!18:30
lazyPowermarcoceppi tvansteenburgh - bite sized fix on this one - https://code.launchpad.net/~lazypower/juju-deployer/patch-1561689/+merge/29007818:47
lazyPowerwait thats not... hang on18:48
lazyPoweryeah nvm sorry for the noise. Its fine in trunk, i needed to bump my deployer18:53
=== redir is now known as redir-lunch
=== redir-lunch is now known as redir
beisnerhi coreycb, icehouse cloud archive sru for bug 1393391 are technically clear to promote tomorrow, but i prefer not to push pkgs on Fridays.  ok to delay to Monday?19:53
mupBug #1393391: neutron-openvswitch-agent stuck on no queue 'q-agent-notifier-port-update_fanout.. <patch> <sts-sru> <verification-done> <neutron:Confirmed> <neutron (Ubuntu):Invalid> <neutron (Ubuntu Trusty):Fix Released> <https://launchpad.net/bugs/1393391>19:53
coreycbbeisner, sure that's fine19:53
beisnercoreycb, ack thx19:53
coreycbbeisner, thank you!19:54
beisnercoreycb, yw :)20:07
kjackalc0s, thats true, this is why I was thinking that splitting spark in two charms would help20:24
kjackalI will have to think a bit more the split of the charm, because such a split would mean that there are more interactions+interfaces20:25
kjackalFor starters, I want to do the simple/rough restart on all units20:26
kjackalthen we can iterate over it to tune it20:26
kjackalI have already enough unknowns :)20:27
c0sI am pretty sure you don't account for some unknown unknowns yet, kjackal20:28
kjackal:)20:28
=== natefinch is now known as natefinch-afk
pmatuliswhat is 'test-mode' for a model?20:58
bdxhey whats up everyone? How is charm-tools currently being installed in wily?21:09
bdx*charm-tools 2.021:10
lazyPowerbdx - from ppa:juju/devel (you need both ppas enabled to fetch all the deps)21:10
bdxlazyPower: I need stable + devel enabled?21:11
lazyPoweryep21:11
bdxnice!21:11
bdxthanks man!21:11
lazyPowernp21:11
stormmoremight be the crazy question of the day, is it possible to export a pre-existing environment as a bundle?21:32
edsiperIs there a way to speed up the upgrade-charm process ?, it's taking several minutes while testing small changes from the original layer21:33
lazyPowerstormmore - are you on stable juju?21:34
lazyPowerregardless - if you have the juju-gui deployed you can export your environment as a bundle, if the gui is a no-go for you for whatever reason, if you're on juju stable, this is an option as well: https://github.com/niedbalski/juju-deployerizer21:35
stormmorelazyPower: actually at this point I haven’t installed a version in the environment, just finished setting up my MAAS server how I want it with vlans, etc.21:36
=== cos1 is now known as c0s
stormmorelazyPower: I am setting up a lab / poc so I am trying to determine if I am going to have to hand write the bundle file after I have figured out and deployed the machines or if I can export, destroy, redeploy21:38
lazyPoweredsiper - ah i assume you mean the wheelhouse installation/etc? I'm not aware of any way to speed that up :( sorry21:38
kwmonroekjackal: c0s: on the subject of splitting spark.. how about we add layer:leadership to spark's layer.yaml.  @when leadership.is_leader, set MASTER:PORT on a spark peer relation and start the master.  @when_not is_leader, retrieve MASETER:PORT from a spark peer relation and start the worker.  then it's the same spark charm handling master and worker roles.21:38
lazyPowerstormmore: well you cant "bundle up" the maas setup bits that i'm aware of, no21:39
c0skwmonroe: it seems a bit too complex, honestly21:39
c0salthough, you know better the inner-guts of the system, so perhaps this is the simplest solution there is21:40
lazyPowerstormmore is your maas server in a vm?21:40
stormmoreno I am fine with that part but can I export all the juju deploy, with all the settings like networks, etc.21:40
lazyPoweryeah you can export the juju enviornment21:41
lazyPowerif you're in 2.0 territory, yes the network spaces and etc. come with that bundle21:41
lazyPoweralong with storage concerns you may have modeled as well21:41
magicaltroutkwmonroe: isn't that pretty much what I did with PDI?21:42
magicaltroutseems to be, if so its not overly complex c0s21:42
kwmonroec0s: the benefit i see is that all spark units could either be a master or a worker depending on the current leader.  when the leader unit dies, another will be auto-selected and will fire up its master process.  with split charms (and HA), you'd have to have a standby master, which seems like a waste of  a machine.21:43
stormmorenice :) I was “playing” with 1.9 in an early POC that I destroyed to fix the network config. plan to hand build an openstack environment POC but want to be able to tear it down and rebuild from a configured MAAS environment21:43
kwmonroemagicaltrout: what you did with PDI was unholy python.21:43
edsiperlazyPower, thanks, anyways there is something wrong, as the upgrade is taking a bit long I am trying to remove/destroy the unit, it changed the stated to "dying" but is still there :/21:43
magicaltroutaww you make me so sad21:43
mattywcmars, ping21:43
lazyPoweredsiper - any relations attached to the unit in question that may be in a failed state?21:43
kwmonroe:)21:43
lazyPowera dependent subordinate perhaps?21:43
cmarsmattyw, hesitant pong?21:44
magicaltroutjust because its not as cool as bigtop :P21:44
c0skwmonroe: I am not sure if you can dynamically add a new spark-master21:44
kwmonroelol magicaltrout.. fwiw, yes, it is what you did with pdi (https://github.com/OSBI/layer-pdi/blob/master/reactive/pdi.py#L91).  i was in rabblerouser mode.21:45
stormmorelazyPower: you do bring up an interesting side question, can I run the MAAS server inside a VM running in the OpenStack cluster that the MAAS system machines the hardware for? (looking at redeploying the physical MAAS server as another node in my OS cluster. in theory I don’t see why not but... )21:45
c0sI might be mistaken but this might be a limitation of ZK membership21:45
lazyPowerstormmore - well my maas setup is a pure vmaas setup, meaning its only ever driving virtual machines so it made sense for me to slap it into kvm, and have it drive kvm vm's21:46
lazyPowerstormmore - sounds like what you're asking is akin to the same thing... but it depends on how you're looking at russian doll stacking that setup, so21:46
lazyPowerhard to say off hand, but i'm going to tentatively say "yes"21:46
kwmonroeack c0s.  we'll pick kjackal's brain later to see if he's come across dynamic master stuff.21:47
c0sagree kwmonroe. But this is how I read http://spark.apache.org/docs/latest/spark-standalone.html21:47
c0sIn my practice, I never seen a need for Spark HA, so can not comment authoritatively21:48
edsiperlazyPower, no relations, I had to destroy everything21:51
stormmorelazyPower: kinda, but instead of managed other VMs I want the vmaas to manage the physical system that the hypervisor (in this case openstack) is running on21:54
lazyPowerah no, i dont think thats a good idea21:54
lazyPowerits not hte same system is it?21:55
lazyPowerbecause really your maas server can run anywhere21:55
lazyPowerso long as it has access ot the network to provide pxe boot instructions21:55
stormmoreit currently is not, has it’s own massively over powered box to itself21:56
lazyPoweroh well yeah for sure then :)21:56
lazyPowerstormmore - i've even been toying around with plugging maas into LXD and having that drive my vm's21:57
stormmoreI get the risks of running the management system on top of the systems it is management. my vmware days taught me that but in reality, it works fine it a tad riskier than keeping it separate21:57
lazyPowerso i'm not eating that initial ram/cpu allocation for the maas server itself, which gives me another unit. You can easily carve that machine up in many different ways to get s'more use out of that overpowered beefy rig running maas.21:57
stormmorelazyPower: yeah that is another option I am pondering, I really just want to recoup the wasted hardware but it is further down the line project right now21:58
lazyPowerfor sure21:58
lazyPowerwhen you get to that step, feel free to ping me21:59
lazyPowerif i'm around i'll lend a hand to help you get that moving21:59
stormmorecool :)22:00
stormmoreok back to a more pressing question, what version of juju should I install remembering this is lab environment I am deploying to?22:04
lazyPowerunless you want to file bugs :) 1.25 is current stable and i would target that until 2.0 lands as -stable next month22:04
magicaltrouttrunk!22:05
magicaltrouttrunk all the way!22:05
magicaltroutthen find you can't upgrade and are stuck on a specific build for all eternity22:05
stormmoreI am think since it will probably be after 2.0 release that I get this PoC fully up it might be worth the hassles of ‘playing’ with an alpha release22:06
lazyPowerits currently in beta22:06
lazyPowerfairly stable, some rough edges22:07
magicaltroutTrunk! Ignore beta!22:08
magicaltroutyou lot are all wimps22:08
lazyPowerindeed :)22:09
stormmorehey I am with you magicaltrout, would be that way except I lilke my PoC’s to break is more predictable ways :P22:15
edsiperfrom my layer code (/reactive/...) how can I trigger a shell command ? should I use the common Python subprocess or some specific charmhelpers package.method ?22:16
lazyPoweredsiper - subprocess is how i would do it22:17
edsiperlazyPower, just to clarify, my layer in some routine needs to restart the service (service ... restart), I am not writing hooks as I am doing everything inside reactive, so subprocess is still the way to go ?22:18
lazyPowernope, that would use a charmhelpers method22:18
lazyPower1 sec while i grab that for you22:18
edsiperthanks22:18
lazyPowerhttps://pythonhosted.org/charmhelpers/api/charmhelpers.core.host.html#charmhelpers.core.host.service_restart22:19
edsipergreat, thanks22:19
lazyPoweredsiper - theres also a decorator in here to watch files and restart on your behalf - https://pythonhosted.org/charmhelpers/api/charmhelpers.core.host.html#charmhelpers.core.host.restart_on_change22:19
edsiperlazyPower, even better :)22:21
stormmoredoes juju 2.0 play nice with maas 1.9?22:22
lazyPowerIt does22:23
lazyPowerits juju2 / 2.0 that's currently being worked on22:23
lazyPowers/2.0/maas 2.0/22:23
stormmoreI did consider maas 2.0 too but heard they removed the wakeonlan option22:23
edsiperany tips to get rid of this message in my debug-log? "machine-5[3853]: 2016-03-24 22:19:15 ERROR juju.worker.diskmanager lsblk.go:116 error checking if "loop0" is in use: open /dev/loop0: operation not permitted22:24
edsiper"22:24
lazyPoweredsiper - i can tcure the message, but you can filter it out - https://jujucharms.com/docs/1.21/troubleshooting#troubleshooting-with-debug-log22:26
lazyPowerwow 1.21 docs?22:26
lazyPowerreally google?22:26
lazyPowerhttps://jujucharms.com/docs/1.25/troubleshooting-logs  - there's the current reference document for -stable22:27
lazyPowersorry about the 1.21 link22:27
edsiperthanks22:28
edsiperlazyPower, what's the write decorator/python method to use when a relation is added to ?22:42
edsiper*whats is the right22:42
lazyPowerdepends on the interface layer22:42
lazyPowermost interface layers raise their own state, so you subscribe to it22:42
edsiperlazyPower, I added a require database mongodb , for my charm this is optional, so if it's added I want to be notified22:43
lazyPowercmars - the linked repo from interfaces has no issues (As its a fork) - should i just file on your upstream repo for the mongodb interface layer?22:44
lazyPoweredsiper - so what did you name the relation in your metadata.yaml?22:44
lazyPowerhttps://github.com/cloud-green/juju-relation-mongodb/blob/master/requires.py <- is the interface layer. Normally interface layers ship with a readme that give you example usage to consume it22:45
lazyPowerthis seems to be WIP so its not quite gotten there yet22:45
cmarslazyPower, use https://github.com/cloud-green/juju-relation-mongodb, that sounds good22:46
edsiperlazyPower, I just added the following to my metadata.yaml:22:46
edsiperrequires:22:46
edsiper  database:22:46
edsiper      interface: mongodb22:46
lazyPoweryou'll need to ensure youve a) got interface:mongodb in your layer.yaml, and you subscribe to @when('{name you put in metadata.yaml of your relation}.database.available22:46
lazyPowerso @when('database.database.available')22:46
lazyPowercmars - I dont think forks get issues enabled by default, can you enable issues on that repository <322:48
edsiperlazyPower, what's the difference between set the interface in my layer.yaml instead of my metadata.yaml ?22:49
cmarslazyPower, oh, i think i've renamed some of those states.. i'm using connected and available in a newer version. i'll turn on issues and then propose a PR for you to review22:49
lazyPowersounds good22:49
lazyPoweredsiper - layer.yaml is a build time construct, metadata.yaml is a runtime construct.22:50
cmarsissues activate22:50
lazyPoweredsiper - layer controls what `charm build` pulls in and you can do some extra things in there like define build-time variables so you can define behavior of the output artifact via those settings.22:50
lazyPoweredsiper - metadata is the only thing ever required to build a charm. it declares to juju what it is, what communications it can participate in, and additional meta about the service itself22:51
edsiperlazyPower, got it, thanks22:54
cmarslazyPower, https://github.com/cmars/juju-relation-mongodb/pull/322:55
cmarslazyPower, i used 'changed' for the state name though. this was from a ways back22:56
lazyPowercmars - i dont know that scopes.GLOBAL is the correct scope to be using for this22:56
lazyPowerdo you want every unit from x service to get the same db info? or do you even bother with that as mongodb just hands out ip/port?22:57
cmarslazyPower, that could be better22:57
lazyPowerok, and final question22:58
lazyPoweryou removed the initial state that was in this relation, is anyone currently using interface:mongodb?22:58
lazyPowerif so, you just broke it for all those charms22:58
lazyPoweri ran into this myself :(22:58
lazyPowerso its kind of a fresh papercut to watch for22:58
cmarslazyPower, you mean, the .database.available thing?22:59
lazyPoweryep22:59
lazyPowerthis is where interface layers get tricky, as its expected for them to be and remain stable from inception. Breaking changes mean new interface to supercede the old one.23:00
lazyPoweryou're probably fine to make this change, but i dont know if anyone else is using it23:00
lazyPoweras edsiper is the first i've encountered :)23:00
cmarslazyPower, i can keep the same name -- it's arbitrary for my stuff, but as I don't have any visibility into who might be using it ... and some folks have blogged about it ... i can keep the name the same for continuity23:01
lazyPowerplease do23:01
lazyPowerlets maintain backwords compat and if you need to change it, phase it out w/ a readme update to accmpany the new syntax23:01
lazyPowers/syntax/state23:02
cmarslazyPower, ok, updated23:05
lazyPowercmars: :shipit:23:06
cmarslazyPower, ty23:06
cmarslazyPower, i'll test this before landing in the cloud-green fork23:07
lazyPowerThanks for the work keeping the interface up to date cmars  :)23:07
cmarsnp23:08
lazyPoweredsiper - if you run into any weird issues/questions, cmars here is your man.23:08
lazyPowerhe's got the mongodb interface skillz to pay my billz23:08
edsiperlazyPower, what defines the object (methods, properties) that I receive in my available function ?23:08
lazyPoweredsiper - do you mean that object that gets passed in during a relationship context?23:08
lazyPoweras in23:08
edsiperyep23:09
lazyPowerdef mongodb_has_changed(mongodb): <- the mongodb param?23:09
edsiperyep23:09
lazyPowerah thats an instance of the interface-layer class23:09
lazyPowerso whatever it defines is what you have access to23:09
edsiperI need to know things like hostname, tcp port..23:09
stormmoreOK I ran into my first juju2 problem right out the door23:10
stormmoreroot@10.0.0.1:~# juju init23:10
stormmoreERROR unrecognized command: juju init23:10
lazyPowercmars ^ if you have a second, it would be great to loop ed in on the nuances of the mongodb interface23:10
lazyPowerstormmore - the entire process has changed :)23:11
cmarsedsiper, you'll have access to the methods defined on the MongoDBClient object in your layer. which in this case is just the .connection_string() method23:12
stormmoreapparently and the docs haven’t reflected that23:12
=== lazyPower changed the topic of #juju to: || Welcome to Juju! || Docs: http://jujucharms.com/docs || FAQ: http://goo.gl/MsNu4I || Review Queue: http://review.juju.solutions || Unanswered Questions: http://goo.gl/dNj8CP || Youtube: https://www.youtube.com/c/jujucharms || Juju 2.0 beta2 release notes: https://lists.ubuntu.com/archives/juju/2016-February/006618.html
cmarsedsiper, that will give you a host:port to connect to mongo23:12
lazyPowerstormmore check /topic23:12
stormmoreI suspect that I have another issue23:16
stormmorethe only command to work so far is juju help23:16
lazyPowerjuju help commands23:17
edsipercmars, thanks23:17
edsiperlazyPower, whats the proper way to trigger a message into the logs ?, eg: I want to raise an error23:18
edsiper(error message)23:18
lazyPoweredsiper - is this critical and worthy of feeding back to the user?23:20
lazyPoweryou want one of two methods: charmhelpers.core.hookenv.status_set or charmhelpers.core.hookenv.log23:21
edsiperthanks23:21
edsiperjust informational23:21
edsiperlazyPower, is there a way I can use a local daabase for my charm ?, I need to store some information when relations are joined plus other things23:23
lazyPowerhtats what unitdata.kv is used for23:24
lazyPowercharmhelpers.core.unitdata23:24
edsiperawesome23:24
edsiperlazyPower, I need to expose the user certain operations (like shell commands) that he can trigger for the running charm, what's the way to do it ?23:25
lazyPowerno idea what you're asking me23:26
edsipere.g: juju my-charm get_setup  <- get_setup is a custom def in my reactive23:26
lazyPowerthere's actions... which is intended for things like dumping databases, preparing users that aren't managed by config, generating SOS reports when requesting help23:26
edsiperlazyPower, the scenario is the following, once the user add relations, I need to provide an easy mechanism so he can perform some configuration for the running charm23:26
lazyPowerthat sounds like what you're after23:26
lazyPowergotta run, good luck on your charming adventure ed23:29
edsiperlazyPower, e.g: the user added a mongodb relation to my charm, my charm store certain info into the key value store, now I need to provide the user some way to choose between a couple of choices to override the service configuration based in the key value store parameters23:29
edsiperlazyPower, no prob, thanks in advance :)23:31
edsiperaisrael, ping23:32
edsipercmars, can u give me a hand, I am getting this in my log "server.go:268 database:2: database_relation_joined" (which is OK), but I dont see my @when('out_mongodb.database.available') function be invoked, relation name is "out_mongodb", what can be the error ?23:59

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