/srv/irclogs.ubuntu.com/2016/10/18/#juju.txt

=== thumper is now known as thumper-dogwalk\
=== thumper-dogwalk\ is now known as thumper-dogwalk
=== thumper-dogwalk is now known as thumper
kjackal_Good morning Juju world!07:20
Spauldingmorning kjackal_08:07
magicaltrouthttps://jujucharms.com/docs/2.0/reference-releases <- not sure what the state of doc updates is, but that one is out of date08:39
kjackal_Thank you magicaltrout. Just oppented an issue ticket to track this: https://github.com/juju/docs/issues/147509:30
magicaltroutwhat a treat09:37
magicaltroutkjackal_: you going to apachecon?09:38
kjackal_magicaltrout: nope, I do not think so!09:39
magicaltroutthank god09:39
kjackal_magicaltrout: god had nothing to do with it, it was all skill!09:40
magicaltroutlol09:40
cargillhi, 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:22
cargillit's local LXD, is there any way I can clear this up manually?11:23
magicaltroutjust remove the LXD containers via the LXD commands and then remove the controller from ~/.local/share/juju/controllers.yaml11:24
cargillmagicaltrout: what are the lxd commands? man lxd is not much help on this11:24
magicaltroutlxc stop ...11:24
magicaltroutlxc destroy11:25
magicaltroutsorry, lxc list first11:25
cargilloh, lxc tools, sorry11:25
magicaltroutto find the controller id11:25
cargilllooks like it's gone now, thanks11:31
SDB_Stefanohi kjackal, can I ask your help ?12:01
kjackal_SDB_Stefano: hi, sure go ahead12:01
kjackal_SDB_Stefano: whats up?12:02
SDB_StefanoI'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:02
kjackal_Awesome!12:03
SDB_Stefanothe objective is to instanciate  an app/unit and install on it our product.12:03
SDB_Stefanoso I created the unit and than logging into it using 'juju ssh ude/..' I installed manually the product (2 deb pkgs)12:04
SDB_Stefanothe installation went fine, but when I tried the start our engine it failed with the error :12:05
SDB_Stefano2016-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
SDB_Stefano 12:05
SDB_Stefano    ******************************** IO Error *********************************12:05
SDB_Stefano 12:05
SDB_Stefano    * 2016-10-18 10:41:42 File open failed                                    *12:05
SDB_Stefano    * File name: /usr/local/scaledb/data/direct_io_sector_size_data.dat.10127 *12:05
SDB_Stefano    * OS Error: 22 - Invalid argument                                         *12:05
SDB_Stefano    ***************************************************************************12:05
SDB_Stefano2016-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
SDB_Stefano 12:05
SDB_Stefano    ******************************** IO Error *********************************12:05
SDB_Stefano    * 2016-10-18 10:41:42 File open failed                                    *12:05
SDB_Stefano    * File name: /usr/local/scaledb/data/direct_io_sector_size_data.dat.10127 *12:05
SDB_Stefanoso it seems it's not able to write into the fils /usr/local/scaledb/data/direct_io_sector_size_data.dat.1012712:06
SDB_Stefanothe grant are fine12:06
SDB_Stefanoand we use to install in Ubuntu without problems12:06
SDB_Stefanoany suggestions ?12:06
SDB_StefanoI tried uwing Ubuntu 16, I'm trying right now using 14 (just for try a diffeent way12:06
SDB_Stefano)12:06
kjackal_SDB_Stefano: That is a strange error. Never seen it before.12:08
kjackal_SDB_Stefano: Lets see... do you have the charm somewhere so that I can try it myself?12:08
SDB_StefanoI'm testing/developing locally, I could send you a tar file12:10
kjackal_SDB_Stefano: why did you have to login into the unit and issue deb install?12:10
kjackal_SDB_Stefano: is the charm closed source?12:11
kjackal_I would prefer it to be somewhere on github, but if there is no other options I guess a tar would be fine12:12
kjackal_SDB_Stefano: ^12:12
magicaltroutalso is local testing inside LXD? I assume so, if so can you just launch a LXD image and deb install it like usual?12:12
SDB_Stefanoyes, I using a local dev environemnt on a Ubuntu 16 running in Vbox, so I'm using LXD12:14
magicaltroutlooks to me like it might be open file limit or something like that imposed by the underlying OS or container12:14
SDB_Stefanoat logging and doing the manual installation,as :12:15
SDB_Stefano1- 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/install12:15
SDB_Stefano2- I'm using the previous version of our software that requeries an interactive input during the installation12:15
kjackal_SDB_Stefano: I see! Where can I find the installation instructions you are following?12:17
SDB_Stefanoout pkg set the ulimit  during the installation :12:17
SDB_Stefano/etc/security/limits.conf12:17
SDB_Stefanoscaledb soft nofile 6553612:17
SDB_Stefanoscaledb hard nofile 6553612:17
SDB_Stefanoso it is  after the installation :12:18
SDB_Stefanoulimit -n12:18
SDB_Stefano6553612:18
SDB_StefanoI'm going to prepare all the needed, give me some minutes.12:19
kjackal_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 anything12:22
magicaltroutit does not12:22
kjackal_SDB_Stefano: But thats another story, lets see what we can do with the charm first :)12:22
SDB_Stefanook, I will talk about that to my manager, thanks fr the adivce.12:24
rockHi. 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:31
rockFor some juju openstack setups , cinder node already has git service .12:32
magicaltroutyou don't want to add your files as charm resources rock?12:33
magicaltroutanyway, i dunno how you're pulling your stuff but I guess you need to install the git package during the install hook12:35
rockmagicaltrout: Hi. Thanks. I have that option. But apart from that do we have any other option?12:46
neiljerramAfternoon 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
magicaltroutapart from installing git?12:46
rockmagicaltrout: 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:48
magicaltroutI 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:49
rockmagicaltrout: Do we have juju charm for "git"?12:54
magicaltrouthttps://github.com/jamesbeedy/layer-git-deploy.git12:55
magicaltroutthat probably does what you want12:55
magicaltroutand if not, you can install git using layer-apt12:55
magicaltrouthttps://git.launchpad.net/layer-apt12:56
rockmagicaltrout: 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:04
rockThen when we deploy charm it will automatically execute that git package right.13:05
kjackal_SDB_Stefano: there?13:18
kjackal_SDB_Stefano: where do you see the error you reported above?13:18
SDB_Stefanothe deploy is ok - the manual installation should be executed after the deploy13:20
SDB_StefanoI have attached a readme in the email with the steps13:20
SDB_Stefanoat the step : scaledb-one init13:20
SDB_Stefano 13:20
SDB_Stefanoit fails13:20
SDB_Stefanothe log is available : cat /usr/local/scaledb/tmp/cas*13:20
SpauldingHm, how I can set up ports to expose for juju? Is there a variable for that?13:30
kjackal_Spaulding: There is a call you have to do to tell juju what to expose. Just a sec13:33
kjackal_Spaulding: What language? Python?13:34
kjackal_Spaulding: for bash there should be open-port like they do here: https://jujucharms.com/docs/1.25/authors-charm-writing13:35
Spauldingkjackal_: thanks, but I've found that there is a variable provides in metadata.yaml13:36
Spauldingprovides:13:36
Spaulding  website:13:36
Spaulding    interface: http13:36
Spauldingy13:36
Spauldingsomething like that13:36
magicaltroutthats the relations Spaulding13:36
magicaltroutyou wont' expose anything with that13:36
kjackal_Spaulding: https://pythonhosted.org/charmhelpers/api/charmhelpers.core.hookenv.html?highlight=port#charmhelpers.core.hookenv.open_port13:37
Spauldingmagicaltrout: kjackal_ thx13:38
Spauldingwhy Juju docs are so confusing? :/13:38
magicaltroutbetter confusing docs than lack of docs13:39
Spauldingmagicaltrout: sad but true13:39
magicaltroutthe boss of the docs is evilnickveitch have a word with him :)13:39
evilnickveitchSpaulding, I agree that some of the charm developer docs are confusing! But we moved to a completely new way to write charms13:42
SpauldingIs this new way is a good way?13:43
evilnickveitchSpaulding, you should start here: https://jujucharms.com/docs/2.0/developer-getting-started13:43
magicaltroutbetter than the old way! ;)13:43
evilnickveitchwell, it's a better way :)13:43
SpauldingI hope it's not dead end... :)13:44
magicaltroutthe reactive charms are infinetly better than the non reactive charms13:45
magicaltroutbut of course the old stuff still exists, so the docs do as well13:45
Spauldingbtw. Anyone of you guys are going to OS Barcelona?13:45
* magicaltrout isn't hipster enough13:46
Spauldingreactive is for sure more flexible13:46
Andrew_jedihttp://askubuntu.com/questions/777475/ceph-drive-failure-and-replacement-procedure13:47
Andrew_jediAre there any Ceph folks here ?13:47
magicaltroutyou're probably better off in #openstack-carhsm Andrew_jedi13:48
magicaltrouter13:48
magicaltroutopenstack-charms13:48
Andrew_jedimagicaltrout: Thanks :)13:48
=== Guest62846 is now known as med_
cargillis there a way yet to find which charms use a given layer?14:17
Spauldingok, so 1st part of my charm is done...14:20
Spauldingi got lamp+appliance...14:20
Spauldingnow i need to handle mysql relation...14:20
magicaltroutdon't think so cargill you can look up interfaces but I've not seen a layer search14:20
Spauldingto add / fill the db14:20
lazyPowerSpaulding congrats on completion :D14:20
Spauldingany tips how to do it in a good way?14:20
lazyPowerwell, first step completion14:20
SpauldingI'll try to see how it's done on "wordpress" or any other PHP app charm14:21
lazyPowerSpaulding - 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
lazyPowernot sure if you're using laravel or symphony or cake - i know those three have utilities to aid in db migrations.14:21
shruthimahi 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 ahead14:22
lazyPowercargill - you can pull the charm and run `charm layers`14:22
lazyPowercargill if its a reactive charm, it'll read the build manifest and tell you what layers assembled the charm14:22
cargilllazyPower: yes, but I'm looking at the reverse14:22
cargillgiven a layer, ask "what charms use this layer?"14:22
magicaltroutSpaulding: https://github.com/johnsca/juju-relation-mysql14:23
lazyPowercargill - ah, no i dont think we have any graphs of that put together.14:24
cargillmostly 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 server14:24
kwmonroeinteresting 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:25
cargilllazyPower: is there a service that lets you examine the metadata/layer/.. yamls for all charms in the store?14:26
cargillor plans for one?14:26
cargillthat would provide exactly that14:26
lazyPowercargill - 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 functionality14:26
lazyPowerbut you would need to write the glue code to make it as concise as you're outlining.14:26
shruthimakwmonroe: ok if any other way please mail us thank you14:26
lazyPowercargill - 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 API14:27
lazyPowerhttps://api.jujucharms.com/charmstore/v5/~containers/kubernetes-master/archive/metadata.yaml14:27
cargilllazyPower: 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
lazyPowernope14:28
lazyPowerat least not as the api exists today14:28
Spauldingmagicaltrout: wow, that looks nice!14:28
Spauldingthx again!14:28
magicaltroutthats why reactive stuff exists ;)14:29
cargilllazyPower: are there rate limits in the charm store or another reason why setting up a scraper wouldn't be advisable?14:33
lazyPowercargill - 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 roadmap14:33
Spauldingso i just need to add this to includes14:33
Spauldingas "interface:juju-relation-mysql" ?14:33
lazyPowercargill let me poke the store maintainer to see if there's any feedback there, one moment14:33
magicaltroutSpaulding: you include it in layer.yaml14:33
magicaltroutthen use something like the snippet on the readme to get the username/password/url etc14:34
magicaltroutwhen a relation to mysql is joined14:34
SpauldingI'm checking that! :)14:34
magicaltroutat which point its then up to your charm to action on that14:34
magicaltroutso like lazyPower said, you might plumb it into mysql client14:34
magicaltroutyou might write it to a config14:34
magicaltroutyou might do both14:34
lazyPowercargill i'm having some trouble getting a straight answer, so still investigating.15:22
cargilllazyPower: I've sent an email to the mailing list15:23
cargillso you have something to reference as well15:23
lazyPowerok, thats probably for the best in terms of visibility. Thanks15:23
cargill(at least I hope it's reached the list)15:24
cargillit has15:24
=== degville is now known as degville-
=== degville- is now known as degville
skayI'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-pmr15:54
skayI'd like to add the steps to do that to that charm15:54
skayit is possible to set up lxd automatically like I want?15:54
skaythat charm sets it up so that when we merge branches a hook can run that starts a container and runs some tests15:56
skaypreviously people used old lxc. I'd like to use the new lxd stuff instead15:57
skayI've got it working manually on my laptop and want to automate it15:57
skayI want to charmify it15:58
=== redir_ is now known as redir
lazyPowerCynerva ryebot - re: kubectl get pv --all-namespaces, was this 1.4.0 or 1.4.1?   that historically worked on 1.4.0.....17:05
=== TheRealMue is now known as TheMue
=== perrito667 is now known as perrito666
CynervalazyPower: looks like kubectl 1.4.017:53
ryebotmarcoceppi lazyPower standup?18:01
marcoceppiryebot: no18:06
=== 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
Baqaropps sorry for spamming18:14
Baqaropps sorry for spamming18:14
lazyPowerBaqar if its any help, i didn't see any spam from you.18:37
CynervaIs 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:02
marcoceppiCynerva: yes, `juju model-defaults`19:27
marcoceppiCynerva: if you provide key=val to that it'll set the defaults for new models19:27
marcoceppiCynerva: you can also provide defaults when bootstrapping19:27
Cynervamarcoceppi: cool thanks19:29
cory_fupetevg: Correction to running test_prog: You have to actually activate the .tox env, not just run matrix from the bin dir19:41
cory_fuI think19:42
cory_fuHrm.  No, that's not working for me now, either19:42
petevgcory_fu: well, yes. Or build a virtualenv with all the stuff installed. The .tox enviroment is convenient, though.19:42
petevgcory_fu: what error are you getting?19:43
cory_fupetevg: I needed to rebuild my tox env.  Doing that made it work without full activation19:44
cory_fupetevg: Error I was getting was: pkg_resources.DistributionNotFound: The 'matrix' distribution was not found and is required by the application19:44
petevgcory_fu: cool. It works for me, too.19:45
petevg... and errors show up nicely in the log. Yay.19:46
petevgcory_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
cory_fupetevg, bcsaller: It looks like the updated libjuju got dropped during my merge conflict resolution, so the deploy probably isn't working for you19:48
cory_fuha19:48
petevgAha.19:48
cory_fupetevg: Let me update the wheelhouse in master real quick19:49
petevgcory_fu: cool.19:49
cory_fupetevg, bcsaller: Pushed19:50
bcsallerthanks19:50
petevgthx :-)19:51
cory_fubcsaller, petevg: Damnit.  That doesn't seem to have fixed it19:52
petevgcory_fu: huh. I get mysql deployed, but the rest of the mediawiki bundle.19:54
cory_fupetevg: Oh, ok.  I forgot to rebase my branch to the master I just pushed.  >_<19:54
petevgYeah. Rebasing would be important :-)19:54
petevg(I did rebase, but I only see mysql deployed ...)19:55
cory_fuYeah, also seeing that19:55
cory_fuNot sure why19:55
petevgcory_fu: AttributeError: module 'juju.client.connection' has no attribute 'rpc'19:56
petevgWant me to post the rest of the traceback?19:56
cory_fupetevg: This is what I'm seeing: http://pastebin.ubuntu.com/23345387/ (tvansteenburgh)19:56
cory_fupetevg: So, the error you got means the connection didn't get established.  Let me test on master.  One sec19:57
petevgcory_fu: Interesting. That's completely different than what I'm seeing.19:57
petevgcory_fu: http://paste.ubuntu.com/23345392/19:58
petevg(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
cory_fuYeah, like I said, that means the juju_model doesn't have a connection, but I thought I fixed that19:59
cory_fuwth.  I swear this worked yesterday19:59
cory_fuHrm.  And it does on my branch.  Let me see what I changed.20:00
cory_fuUgh.  Nothing relevant20:00
cory_fuAnd, now it's failing on my branch too20:01
petevgExciting!20:01
cory_futvansteenburgh: It looks like even after calling `await model.connect_current()`, `model.connection` is still sometimes None, but not consistently.  Any advice?20:04
cory_fubcsaller: Just to confirm, deploy should never get triggered until `await self.run(context)` is called in `RuleEngine.__call__` right?20:06
tvansteenburghcory_fu: i have never seen that. where's the code that's causing this?20:07
bcsallercory_fu: I don't see how it could20:07
cory_futvansteenburgh: https://github.com/juju-solutions/matrix/blob/master/matrix/rules.py#L30920:07
ryebotWhat 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
cory_futvansteenburgh: After that, during the `await self.run(context)` bit, it attempts to call `context.juju_model.deploy()` and it fails with petevg's stack trace20:08
cory_futvansteenburgh: I just realized that the stacktrace was very similar to the one I was getting when model.connection was None, but not the same20:10
tvansteenburghcory_fu: one sec20:10
tvansteenburghcory_fu, petevg: see how it does now (after pulling latest commit)20:11
cory_fu:)20:12
cory_fuOne sec, rebuilding and trying20:12
cory_futvansteenburgh: Strange that it was inconsistent for me20:13
cory_futvansteenburgh: That fixed that one error, but I'm still getting the KeyError from my pastebin20:14
cory_fupetevg, bcsaller: matrix master updated with new libjuju20:14
cory_futvansteenburgh: It seems to be a timing issue, as it goes away as the services come up20:14
cory_futvansteenburgh: Full log: http://pastebin.ubuntu.com/23345468/20:16
tvansteenburghcory_fu: ah, yeah, that logic is wrong, i'll need to do that a different way20:16
cory_fuOk20:16
cory_fupetevg: With latest master, if you re-run it with the bundle already deployed, it should go w/o error20:18
petevgcory_fu: I'll try it w/ the bundle deployed (I see the KeyError when it isn't.)20:19
tvansteenburghcory_fu, petevg: pushed fix for KeyError20:21
petevgtvansteenburgh: sweet. ty20:21
tvansteenburghit should be done a little differently, but that'll get you unblocked for now20:21
cory_fupetevg, bcsaller: matrix master updated with tvansteenburgh's KeyError fix20:39
cory_futvansteenburgh: Thanks!20:39
petevgcory_fu: cool. thx. :-)20:39
cory_fubcsaller: So, I'm now seeing the health rule stuck in "pending"20:40
cory_fubcsaller: Also, how can I make the log portion of the TUI "window" taller?20:41
cory_funm, found it20:42
bcsallercory_fu: also you can tail -F matrix.log, as well as use -s raw when running matrix20:43
cory_fubcsaller: Yeah, but I like the fancy UI.  :)20:43
bcsallercory_fu: oh, good :)20:44
cory_fuAlso, the task_view is helpful20:44
lazyPowerryebot - i tend to agree with you. I feel thats a good question to ask on the list22:14
ryebotlazyPower: cool, thanks22:15

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