/srv/irclogs.ubuntu.com/2018/04/25/#juju.txt

jammanadart: just making some coffee will be a couple min late08:29
manadartjam: Ack.08:29
jammanadart: any chance you could look at https://github.com/juju/juju/pull/865409:21
jamit handles the Addresses() being empty09:21
manadartjam: Yep.09:22
manadartjam: LGTM'd09:26
jamstickupkid: I confirmed your change on 8655, do you want to $$merge$$ your first PR?13:10
stickupkidsure :D13:12
jamstickupkid: I like your GH profile picture13:12
jamstickupkid: can you set up a pic for Trello as well? It can be the same pic, just nice to have something than SR13:14
stickupkidjam: yeah of course13:14
jamhml: you also still just have your "HL" in trello.13:19
jammanadart: there was always "if it compiles, ship it", now we also have "if it bootstraps, ship it" :)13:30
manadartjam: Words to live by :)13:31
manadartSome thing to go on the next Juju shirt/sticker/flair.13:33
=== petevg_ is now known as petevg
=== Lukewh_ is now known as Lukewh
=== lonroth_scania_ is now known as lonroth_scania
rick_h_bdx: cory_fu_ kwmonroe hml magicaltrout zeestrat and folks juju show in an hour. Party time!16:50
rick_h_getting the hangout setup17:51
rick_h_if you want to watch the stream hit up https://www.youtube.com/watch?v=cxAsJpmwDFE17:51
rick_h_https://hangouts.google.com/hangouts/_/qmpic4iiazfmffm7to5kw7ohq4e if you want to chat on the call17:53
rick_h_zeestrat: bdx coreycb kwmonroe hml and anyone else interested ^17:53
balloonsrick_h_, bionic release hype! Folks should use 2.3.7 or 2.4-beta1 client to be ready for it :-)18:03
=== Guest62751 is now known as zeus
rick_h_thanks zeestrat, appreciate you joining in!18:30
rick_h_third time you join you have to show something cool, no pressure :P18:30
rick_h_first two are free lol18:30
zeestratrick_h_: That's how they get you!18:30
zeestratrick_h_: Yeah, I had a small blog post about some juju upgrade woes a couple of weeks ago, but I need to up my game to match stub's posts. Just got a large shipment of supermicro boxes that we're going to expand our juju deployed ceph cluster with. Been hitting (and fixing) the ceph-osd charm a bit to make that smooth so might write up something there.18:33
rick_h_zeestrat: love it, and saw your upgrade post. Thanks for that. Was solid.18:33
rick_h_well, sucked you hit the bugs there, but good stuff that folks helped out and you pushed through and got things rocking18:33
zeestratrick_h_: Yupp, things got sorted in the end and it seems the guys will be focusing more on testing which is great. Not to mention having dedicated staging setups has saved our butts more than once.18:36
rick_h_Yea, good practices are good practices for sure.18:37
zeestratrick_h_: Can't promise a live upgrade of our prod cluster, but let me see if I can cobble together something fun.18:38
thumpermorning team20:10
balloonsthumper, good morning20:31
veebersMorning o/20:34
TheAbsentOneAs it is almost midnight for me I will be offline soon but are there expert charm writers online right now by any chance?21:55
magicaltroutwhats broken TheAbsentOne ?21:55
TheAbsentOnenothing is (yet) but I want huge insights and opinions :D21:56
magicaltroutha21:56
TheAbsentOneis it okay to post dropbox url (pdf) here magicaltrout ?21:56
magicaltroutsure21:56
TheAbsentOnehttps://www.dropbox.com/s/adiyp4qqkx4wg3i/Charm%20prototypingv0.pdf?dl=021:56
magicaltroutah this badboy21:57
TheAbsentOneI created a document to illustrate what I want to create and I want some tips and help from the real experts ^^21:57
TheAbsentOnehehe sorry man!21:57
TheAbsentOneI added the link to a github repo where everybody can leave a response as well (if I would be offline). I'll ask it tomorrow again though no worries. You guys will be mad at me soon enough x)21:59
magicaltrouti do like this idea TheAbsentOne. So in simple terms its an SQL dump for a bunch of different databases, and depending on which you connect to it will install the correct database and provide connection details?22:01
TheAbsentOnemagicaltrout: so yeah you can actually see it even bigger and add nosql technologies to the stack as well22:02
magicaltroutyeah i used sql as the common example22:02
magicaltroutbut json dump or whatever22:02
TheAbsentOneyeah exactly and the generic-database charm handles all complex material if the requirements are not clear. And if let's say the using charm knows it's stuff it will just act as a proxy22:03
magicaltrouti have a few questions off the top of my head22:03
TheAbsentOnesure shoot!22:04
magicaltrouta) why not ship the schema with the application, and import the database at relation connection time to the app? rather than the proxy charm22:04
magicaltroutb) if developer a updates the webapp but the schema differs from v1 to v2 and someone then deploys the 2 charms it'll die horribly, how is that mitigated?22:05
TheAbsentOnea) We really want a charm that represents a database (and not a service). The major use would be to have the ability to have multiple charms to "easily" connect to the same database.22:06
TheAbsentOneAnd I kinda think that also answers the b question. If a developer updates the webapp, the database itself is not changed whatsoever22:06
magicaltroutah yeah the multiple charm thing, i did read that!22:07
magicaltroutin answer to your questions, i think you're right in keeping the mid layer simple that way it can be leveraged by more projects22:08
magicaltroutand22:08
TheAbsentOneMy whole conceptual idea of my research comes down to modeling things in juju that are not services and in my specific case it's about databases. But the same use case could be mapped to load balancers, message brokers, topics, caches22:08
magicaltroutyou can't delete relations to my knowledge, but you could block up th eothers so if they end up being used you could publish a status message saying "We're serving on database x, your database y connection will have no effect"22:09
magicaltroutor something of that nature22:09
TheAbsentOneRight, that would be a good solution. The only thing that kinda feels awkward right now is that I assume relations are made between the providing technology charms (the charms from the charm store) and my generic-database. So this means that for every non-used database technology a useless database will be created because that is default behaviour right now, right?22:11
TheAbsentOneA second step (if I get this generic-database charm to work) would be to use libjuju to dynamically deploy the services on the fly, resolving this issue. But I'm a bit scared to use libjuju right now (as I'm a still a complete beginner/noob)22:12
magicaltroutpretty much22:12
TheAbsentOneThat isn't the end of the world though in this proof of concept ^^22:13
TheAbsentOneSo do you thing the structure of the charm is somewhat okay? Do you think it's feasible magicaltrout?22:14
magicaltrouti think its perfectly viable TheAbsentOne i like the idea. For example I'm working on a bunch of data viz and SQL tooling22:14
magicaltroutso in using that, I'd get connectivity to your app in Apache Drill or something with zeroconf22:15
magicaltroutat which point I can then expose the schema to the data viz tools who know about it automatically22:15
TheAbsentOneThat's really cool to hear. I have no experience with drill or zeroconf so I'm not completely following but it would be cool if it could help others too!22:16
magicaltroutwell i deal in the data analysis sector22:16
magicaltroutso if I can tap into your "webshop" without knowing anything about it to provide more reports etc22:16
TheAbsentOneGreat I will start on setting up a repo asap and hopefully I get somewhere22:16
magicaltroutthats a good thing22:16
TheAbsentOneyes exactly!22:16
TheAbsentOnethat's exactly the goal actually22:17
magicaltroutwell then22:17
magicaltroutmake it so!22:17
TheAbsentOnehehe I will do my best. But first some sleep. Talk to you later and thanks for looking into it!22:17
magicaltroutno probs22:18
magicaltrouthave a good night22:18
veeberscould I get a quick review for this please? https://github.com/juju/juju/pull/8658 adds a file that should have been added in my original PR.22:51
veeberscurrently looking at updating the merge/check jobs to catch stuff like this.22:52
thumperveebers: why is this check-merge failing? https://github.com/juju/juju/pull/865122:53
thumperI can't work it out22:54
* veebers looks22:54
veebersthumper: odd, probably related to a change I made this morning so the checkout failed on error (instead of ignoring it). I'll get it sorted now22:55
thumperveebers: thanks, I was just confused22:55
veebersthumper: fixed now, the script was doing "git config core.sparseCheckout" instead of "git config core.sparseCheckout true" so was exiting non-zero (with no error message)22:59
thumperah22:59
thumperwhat is the sparse checkout option?22:59
veebersthumper: here it's intended to reduce the amount of work when pulling, checking out and merging a PR. Although the fact that it's never actually been properly set makes me question it's worth. Perhaps I should remove it. Although I'll see how the fixed run goes23:02
veeberskelvinliu: Do you have your lint fixes in a separate PR? If not I might do a quick fix now as I'm adding checks to the merge/check job :-)23:13
thumperveebers: it passed the check this time23:16
veebersthumper: ack, the issue was an error in the checkout script, I added -eux to catch merge errors early etc. seems it was glossing over that issue earlier23:17
kelvinliuveebers, not yet. yeah, you can do. appreciate for that. ^^23:20
veeberskelvinliu: ack, sounds good.23:21
thumperwallyworld: got 5 minutes?23:26
wallyworldthumper: after standup, sure, give me 1523:26
thumperwallyworld: I'm trying to recall how we gracefully degrade in commands when facades don't define the methods we want23:26
anastasiamacthumper: we call the previous call version of any... for example - https://github.com/juju/juju/blob/develop/cmd/juju/application/config.go#L27223:28
anastasiamacthumper: or just err out if no equivalent existed - https://github.com/juju/juju/blob/develop/cmd/juju/application/addunit.go#L20123:29
thumperthat has the client explicitly checking api version23:31
thumperwhich I guess I could do23:31
thumperrather than making the api call itself23:31
thumperprobably better that way23:31
thumperthere was an error returned from the facades if the method wasn't there but I can't seem to find a reference23:32
anastasiamacha, dunno of any specialised errors coming from there except for NotFound and NotImplemented..23:37
wallyworldthumper: free now, just finished standup23:38
wallyworldwe do use BestVersion()23:38
wallyworldto check up front23:38
thumperwallyworld: yeah, that's what I'm doing now23:38
wallyworldrather than making the call23:38
thumperwallyworld: so we don't need to chat23:38
wallyworldok23:38
anastasiamacthumper: wallyworld: well, if u r after a totally complete answer... we do actually check bestapi version at api layer too but mostly if we change args to call between facade versions, for e.g. https://github.com/juju/juju/blob/develop/api/applicationoffers/client.go#L29323:40
anastasiamaci do not recall that we actually do that for any calls per se23:40

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