=== thumper is now known as thumper-dogwalk\ === thumper-dogwalk\ is now known as thumper-dogwalk === thumper-dogwalk is now known as thumper [07:20] Good morning Juju world! [08:07] morning kjackal_ [08:39] https://jujucharms.com/docs/2.0/reference-releases <- not sure what the state of doc updates is, but that one is out of date [09:30] Thank you magicaltrout. Just oppented an issue ticket to track this: https://github.com/juju/docs/issues/1475 [09:37] what a treat [09:38] kjackal_: you going to apachecon? [09:39] magicaltrout: nope, I do not think so! [09:39] thank god [09:40] magicaltrout: god had nothing to do with it, it was all skill! [09:40] lol [11:22] hi, I'm trying to destroy an old controller so that I can with a clean 2.0, but destroy-controller --destroy-all-models is just waiting and kill-controller eventually says "unable to retrieve hosted model config: no such request - method Controller(3).HostedModelConfigs is not implemented (not implemented)" [11:23] it's local LXD, is there any way I can clear this up manually? [11:24] just remove the LXD containers via the LXD commands and then remove the controller from ~/.local/share/juju/controllers.yaml [11:24] magicaltrout: what are the lxd commands? man lxd is not much help on this [11:24] lxc stop ... [11:25] lxc destroy [11:25] sorry, lxc list first [11:25] oh, lxc tools, sorry [11:25] to find the controller id [11:31] looks like it's gone now, thanks [12:01] hi kjackal, can I ask your help ? [12:01] SDB_Stefano: hi, sure go ahead [12:02] SDB_Stefano: whats up? [12:02] I'm working for www.scaledb.com and I'm working on the creation of a charm of our product scaledb (same name of the company). [12:03] Awesome! [12:03] the objective is to instanciate an app/unit and install on it our product. [12:04] so I created the unit and than logging into it using 'juju ssh ude/..' I installed manually the product (2 deb pkgs) [12:05] the installation went fine, but when I tried the start our engine it failed with the error : [12:05] 2016-10-18 10:41:42 ScaleDB Message: [Warning] [IO Error] [File open failed] [OS error:] [22] [Invalid argument] [File Name:] [/usr/local/scaledb/data/direct_io_sector_size_data.dat.10127] [12:05] [12:05] ******************************** IO Error ********************************* [12:05] [12:05] * 2016-10-18 10:41:42 File open failed * [12:05] * File name: /usr/local/scaledb/data/direct_io_sector_size_data.dat.10127 * [12:05] * OS Error: 22 - Invalid argument * [12:05] *************************************************************************** [12:05] 2016-10-18 10:41:42 ScaleDB Message: [Warning] [IO Error] [File open failed] [OS error:] [22] [Invalid argument] [File Name:] [/usr/local/scaledb/data/direct_io_sector_size_data.dat.10127] [12:05] [12:05] ******************************** IO Error ********************************* [12:05] * 2016-10-18 10:41:42 File open failed * [12:05] * File name: /usr/local/scaledb/data/direct_io_sector_size_data.dat.10127 * [12:06] so it seems it's not able to write into the fils /usr/local/scaledb/data/direct_io_sector_size_data.dat.10127 [12:06] the grant are fine [12:06] and we use to install in Ubuntu without problems [12:06] any suggestions ? [12:06] I tried uwing Ubuntu 16, I'm trying right now using 14 (just for try a diffeent way [12:06] ) [12:08] SDB_Stefano: That is a strange error. Never seen it before. [12:08] SDB_Stefano: Lets see... do you have the charm somewhere so that I can try it myself? [12:10] I'm testing/developing locally, I could send you a tar file [12:10] SDB_Stefano: why did you have to login into the unit and issue deb install? [12:11] SDB_Stefano: is the charm closed source? [12:12] I would prefer it to be somewhere on github, but if there is no other options I guess a tar would be fine [12:12] SDB_Stefano: ^ [12:12] also is local testing inside LXD? I assume so, if so can you just launch a LXD image and deb install it like usual? [12:14] yes, I using a local dev environemnt on a Ubuntu 16 running in Vbox, so I'm using LXD [12:14] looks to me like it might be open file limit or something like that imposed by the underlying OS or container [12:15] at logging and doing the manual installation,as : [12:15] 1- I'm at the first stage in using JUJu so it's a first step before the automation of all the steps into the hook/install [12:15] 2- I'm using the previous version of our software that requeries an interactive input during the installation [12:17] SDB_Stefano: I see! Where can I find the installation instructions you are following? [12:17] out pkg set the ulimit during the installation : [12:17] /etc/security/limits.conf [12:17] scaledb soft nofile 65536 [12:17] scaledb hard nofile 65536 [12:18] so it is after the installation : [12:18] ulimit -n [12:18] 65536 [12:19] I'm going to prepare all the needed, give me some minutes. [12:22] BTW SDB_Stefano you do not have to fight by yourself. If you sign a partnership http://partners.ubuntu.com/programmes/charm yu will get "Tailored training on Charm creation and best practices", and I do not think it costs anything [12:22] it does not [12:22] SDB_Stefano: But thats another story, lets see what we can do with the charm first :) [12:24] ok, I will talk about that to my manager, thanks fr the adivce. [12:31] Hi. we developed "cinder-storage driver" charm. Our charm dependent on Github. During the execution of the charm it will go and get latest files from Git and it will keep those files in cinder node. We will deploy our charm post deployment of Openstack setup. So during execution of our charm it was giving "git ERROR"[Like git is not there]. [12:32] For some juju openstack setups , cinder node already has git service . [12:33] you don't want to add your files as charm resources rock? [12:35] anyway, i dunno how you're pulling your stuff but I guess you need to install the git package during the install hook [12:46] magicaltrout: Hi. Thanks. I have that option. But apart from that do we have any other option? [12:46] Afternoon all, I have a question about running Juju (2.0) on GCE: is it possible to configure Juju so that it does _not_ allocate a GCE External IP for each machine? [12:46] apart from installing git? [12:48] magicaltrout: Yes. Apart from installing "git" as part of install hook. [If already "git" is there it will not install git otherwise it has to install "Git". [12:49] I don't know what you're asking any more. If you need to use git, you have to install git, in which case you can use layer-apt to install git... or not. [12:54] magicaltrout: Do we have juju charm for "git"? [12:55] https://github.com/jamesbeedy/layer-git-deploy.git [12:55] that probably does what you want [12:55] and if not, you can install git using layer-apt [12:56] https://git.launchpad.net/layer-apt [13:04] magicaltrout: Hi. If I go for "layer git", Just I need to create layer.yaml file and in that I have to mention that "git" under apt: packages : right? [13:05] Then when we deploy charm it will automatically execute that git package right. [13:18] SDB_Stefano: there? [13:18] SDB_Stefano: where do you see the error you reported above? [13:20] the deploy is ok - the manual installation should be executed after the deploy [13:20] I have attached a readme in the email with the steps [13:20] at the step : scaledb-one init [13:20] [13:20] it fails [13:20] the log is available : cat /usr/local/scaledb/tmp/cas* [13:30] Hm, how I can set up ports to expose for juju? Is there a variable for that? [13:33] Spaulding: There is a call you have to do to tell juju what to expose. Just a sec [13:34] Spaulding: What language? Python? [13:35] Spaulding: for bash there should be open-port like they do here: https://jujucharms.com/docs/1.25/authors-charm-writing [13:36] kjackal_: thanks, but I've found that there is a variable provides in metadata.yaml [13:36] provides: [13:36] website: [13:36] interface: http [13:36] y [13:36] something like that [13:36] thats the relations Spaulding [13:36] you wont' expose anything with that [13:37] Spaulding: https://pythonhosted.org/charmhelpers/api/charmhelpers.core.hookenv.html?highlight=port#charmhelpers.core.hookenv.open_port [13:38] magicaltrout: kjackal_ thx [13:38] why Juju docs are so confusing? :/ [13:39] better confusing docs than lack of docs [13:39] magicaltrout: sad but true [13:39] the boss of the docs is evilnickveitch have a word with him :) [13:42] Spaulding, I agree that some of the charm developer docs are confusing! But we moved to a completely new way to write charms [13:43] Is this new way is a good way? [13:43] Spaulding, you should start here: https://jujucharms.com/docs/2.0/developer-getting-started [13:43] better than the old way! ;) [13:43] well, it's a better way :) [13:44] I hope it's not dead end... :) [13:45] the reactive charms are infinetly better than the non reactive charms [13:45] but of course the old stuff still exists, so the docs do as well [13:45] btw. Anyone of you guys are going to OS Barcelona? [13:46] * magicaltrout isn't hipster enough [13:46] reactive is for sure more flexible [13:47] http://askubuntu.com/questions/777475/ceph-drive-failure-and-replacement-procedure [13:47] Are there any Ceph folks here ? [13:48] you're probably better off in #openstack-carhsm Andrew_jedi [13:48] er [13:48] openstack-charms [13:48] magicaltrout: Thanks :) === Guest62846 is now known as med_ [14:17] is there a way yet to find which charms use a given layer? [14:20] ok, so 1st part of my charm is done... [14:20] i got lamp+appliance... [14:20] now i need to handle mysql relation... [14:20] don't think so cargill you can look up interfaces but I've not seen a layer search [14:20] to add / fill the db [14:20] Spaulding congrats on completion :D [14:20] any tips how to do it in a good way? [14:20] well, first step completion [14:21] I'll try to see how it's done on "wordpress" or any other PHP app charm [14:21] Spaulding - there are a few examples. typically you just need the mysql-client package, and then run your migrations or use whatever language tools to run migrations. [14:21] not sure if you're using laravel or symphony or cake - i know those three have utilities to aid in db migrations. [14:22] hi kwmonroe , For IBM-IM charm we have modified with a simple series check code and tried to test it but trusty machine is not getting created on s390x it is going to pending state .. how to go ahead [14:22] cargill - you can pull the charm and run `charm layers` [14:22] cargill if its a reactive charm, it'll read the build manifest and tell you what layers assembled the charm [14:22] lazyPower: yes, but I'm looking at the reverse [14:22] given a layer, ask "what charms use this layer?" [14:23] Spaulding: https://github.com/johnsca/juju-relation-mysql [14:24] cargill - ah, no i dont think we have any graphs of that put together. [14:24] mostly laziness at the moment, trying to find a charm that uses the nginx layer to band up a few http endpoints from the server under for same server [14:25] interesting shruthima, i hadn't considered that the base OS would need to be present before the charm can assert "series / architecture mismatch". i'll need to think about that one a bit more.. [14:26] lazyPower: is there a service that lets you examine the metadata/layer/.. yamls for all charms in the store? [14:26] or plans for one? [14:26] that would provide exactly that [14:26] cargill - the charm store api will give you a file list of whats in the charm, and you can then use the API links to pull the metdata/layer.yaml from the API. the charm store already provides this functionality [14:26] but you would need to write the glue code to make it as concise as you're outlining. [14:26] kwmonroe: ok if any other way please mail us thank you [14:27] cargill - as an example, http://jujucharms.com/u/containers/kubernetes-master -- there's a file list on the right side you can click on and view the contents of that charms files using the API [14:27] https://api.jujucharms.com/charmstore/v5/~containers/kubernetes-master/archive/metadata.yaml [14:28] lazyPower: that's a lot of scraping first, isn't it? as in: you can't ask "show me all layer.yaml's provide keys" without downloading all those files first? [14:28] nope [14:28] at least not as the api exists today [14:28] magicaltrout: wow, that looks nice! [14:28] thx again! [14:29] thats why reactive stuff exists ;) [14:33] lazyPower: are there rate limits in the charm store or another reason why setting up a scraper wouldn't be advisable? [14:33] cargill - it may be prudent to mail the list so we can start that conversation, and filing a bug would be a good start to having that added to teh teams roadmap [14:33] so i just need to add this to includes [14:33] as "interface:juju-relation-mysql" ? [14:33] cargill let me poke the store maintainer to see if there's any feedback there, one moment [14:33] Spaulding: you include it in layer.yaml [14:34] then use something like the snippet on the readme to get the username/password/url etc [14:34] when a relation to mysql is joined [14:34] I'm checking that! :) [14:34] at which point its then up to your charm to action on that [14:34] so like lazyPower said, you might plumb it into mysql client [14:34] you might write it to a config [14:34] you might do both [15:22] cargill i'm having some trouble getting a straight answer, so still investigating. [15:23] lazyPower: I've sent an email to the mailing list [15:23] so you have something to reference as well [15:23] ok, thats probably for the best in terms of visibility. Thanks [15:24] (at least I hope it's reached the list) [15:24] it has === degville is now known as degville- === degville- is now known as degville [15:54] I'd like to have a charm that is able to configure lxd on the machine it creates. https://github.com/checkbox/pmr-configs/tree/master/charms/xenial/cert-pmr [15:54] I'd like to add the steps to do that to that charm [15:54] it is possible to set up lxd automatically like I want? [15:56] that charm sets it up so that when we merge branches a hook can run that starts a container and runs some tests [15:57] previously people used old lxc. I'd like to use the new lxd stuff instead [15:57] I've got it working manually on my laptop and want to automate it [15:58] I want to charmify it === redir_ is now known as redir [17:05] Cynerva ryebot - re: kubectl get pv --all-namespaces, was this 1.4.0 or 1.4.1? that historically worked on 1.4.0..... === TheRealMue is now known as TheMue === perrito667 is now known as perrito666 [17:53] lazyPower: looks like kubectl 1.4.0 [18:01] marcoceppi lazyPower standup? [18:06] ryebot: no === Baqar is now known as bbaqar === bbaqar is now known as Baqar === Baqar is now known as Baqar_ === Baqar_ is now known as Baqar__ === Baqar__ is now known as Baqar [18:14] opps sorry for spamming [18:14] opps sorry for spamming [18:37] Baqar if its any help, i didn't see any spam from you. [19:02] Is there a way to set default model constraints? I see there's a `juju set-model-constraints` command for one model, but I'd like to set a default for newly created models as well. [19:27] Cynerva: yes, `juju model-defaults` [19:27] Cynerva: if you provide key=val to that it'll set the defaults for new models [19:27] Cynerva: you can also provide defaults when bootstrapping [19:29] marcoceppi: cool thanks [19:41] petevg: Correction to running test_prog: You have to actually activate the .tox env, not just run matrix from the bin dir [19:42] I think [19:42] Hrm. No, that's not working for me now, either [19:42] cory_fu: well, yes. Or build a virtualenv with all the stuff installed. The .tox enviroment is convenient, though. [19:43] cory_fu: what error are you getting? [19:44] petevg: I needed to rebuild my tox env. Doing that made it work without full activation [19:44] petevg: Error I was getting was: pkg_resources.DistributionNotFound: The 'matrix' distribution was not found and is required by the application [19:45] cory_fu: cool. It works for me, too. [19:46] ... and errors show up nicely in the log. Yay. [19:48] cory_fu: hrm. Deploy doesn't seem to be actually deploying anything when I run test_prog. Either that, or glitch isn't waiting for it to finish ... [19:48] petevg, bcsaller: It looks like the updated libjuju got dropped during my merge conflict resolution, so the deploy probably isn't working for you [19:48] ha [19:48] Aha. [19:49] petevg: Let me update the wheelhouse in master real quick [19:49] cory_fu: cool. [19:50] petevg, bcsaller: Pushed [19:50] thanks [19:51] thx :-) [19:52] bcsaller, petevg: Damnit. That doesn't seem to have fixed it [19:54] cory_fu: huh. I get mysql deployed, but the rest of the mediawiki bundle. [19:54] petevg: Oh, ok. I forgot to rebase my branch to the master I just pushed. >_< [19:54] Yeah. Rebasing would be important :-) [19:55] (I did rebase, but I only see mysql deployed ...) [19:55] Yeah, also seeing that [19:55] Not sure why [19:56] cory_fu: AttributeError: module 'juju.client.connection' has no attribute 'rpc' [19:56] Want me to post the rest of the traceback? [19:56] petevg: This is what I'm seeing: http://pastebin.ubuntu.com/23345387/ (tvansteenburgh) [19:57] petevg: So, the error you got means the connection didn't get established. Let me test on master. One sec [19:57] cory_fu: Interesting. That's completely different than what I'm seeing. [19:58] cory_fu: http://paste.ubuntu.com/23345392/ [19:59] (I also get errors from glitch about there not being a valid model, which suggests that it's not waiting for deployer to do stuff.) [19:59] Yeah, like I said, that means the juju_model doesn't have a connection, but I thought I fixed that [19:59] wth. I swear this worked yesterday [20:00] Hrm. And it does on my branch. Let me see what I changed. [20:00] Ugh. Nothing relevant [20:01] And, now it's failing on my branch too [20:01] Exciting! [20:04] tvansteenburgh: It looks like even after calling `await model.connect_current()`, `model.connection` is still sometimes None, but not consistently. Any advice? [20:06] bcsaller: Just to confirm, deploy should never get triggered until `await self.run(context)` is called in `RuleEngine.__call__` right? [20:07] cory_fu: i have never seen that. where's the code that's causing this? [20:07] cory_fu: I don't see how it could [20:07] tvansteenburgh: https://github.com/juju-solutions/matrix/blob/master/matrix/rules.py#L309 [20:08] What are best practices for shutting down services when applications are stopped/removed? My concern is that I'll have two or more applications running on the same machine using the same background service - if a charm stops that service on its stop hook, that would conflict with other charms depending on it. [20:08] tvansteenburgh: After that, during the `await self.run(context)` bit, it attempts to call `context.juju_model.deploy()` and it fails with petevg's stack trace [20:10] tvansteenburgh: I just realized that the stacktrace was very similar to the one I was getting when model.connection was None, but not the same [20:10] cory_fu: one sec [20:11] cory_fu, petevg: see how it does now (after pulling latest commit) [20:12] :) [20:12] One sec, rebuilding and trying [20:13] tvansteenburgh: Strange that it was inconsistent for me [20:14] tvansteenburgh: That fixed that one error, but I'm still getting the KeyError from my pastebin [20:14] petevg, bcsaller: matrix master updated with new libjuju [20:14] tvansteenburgh: It seems to be a timing issue, as it goes away as the services come up [20:16] tvansteenburgh: Full log: http://pastebin.ubuntu.com/23345468/ [20:16] cory_fu: ah, yeah, that logic is wrong, i'll need to do that a different way [20:16] Ok [20:18] petevg: With latest master, if you re-run it with the bundle already deployed, it should go w/o error [20:19] cory_fu: I'll try it w/ the bundle deployed (I see the KeyError when it isn't.) [20:21] cory_fu, petevg: pushed fix for KeyError [20:21] tvansteenburgh: sweet. ty [20:21] it should be done a little differently, but that'll get you unblocked for now [20:39] petevg, bcsaller: matrix master updated with tvansteenburgh's KeyError fix [20:39] tvansteenburgh: Thanks! [20:39] cory_fu: cool. thx. :-) [20:40] bcsaller: So, I'm now seeing the health rule stuck in "pending" [20:41] bcsaller: Also, how can I make the log portion of the TUI "window" taller? [20:42] nm, found it [20:43] cory_fu: also you can tail -F matrix.log, as well as use -s raw when running matrix [20:43] bcsaller: Yeah, but I like the fancy UI. :) [20:44] cory_fu: oh, good :) [20:44] Also, the task_view is helpful [22:14] ryebot - i tend to agree with you. I feel thats a good question to ask on the list [22:15] lazyPower: cool, thanks