/srv/irclogs.ubuntu.com/2015/06/19/#juju.txt

=== kadams54 is now known as kadams54-away
lukasalazyPower: Ping =)08:23
dweaverHaving a problem wit LXC containers in Juju 1.23.3 on trusty with a vivid kernel (3.19.0-21-generic).  We ask Juju to deploy some LXC containers.  The containers start, but get no IP address.  Anyone want to give us any pointers on how to debug further?09:45
dweaverSeems to be a problem with DHCP responses not getting through to the container network namespace.09:52
=== kadams54-away is now known as kadams54
=== anthonyf is now known as Guest97499
lazyPowerlukasa: pong14:23
lukasalazyPower: Mind if I PM?14:32
lazyPowerno go right on ahead14:32
frankbancory_fu: thanks for your review? what do I need to do for the promulgation at this point? just wait?14:48
cory_fuWe need a full charmer (which I am not, quite yet) to do the promulgation.  It would also be good to make sure marcoceppi has reviewed it, since he is the maintainer of the charms it will be supplementing / replacing.14:52
* rick_h_ sends bribes of car parts to marcoceppi 14:52
marcoceppifrankban: rick_h_ it seems fine to me, I recently had Redis Labs look over it, and had a hard time explaining it's structure. I worry it may be slightly more complex a layout for a relatively simple execution14:53
marcoceppibut that's not really a blocker, I'll take a pass at it and a few others later today14:53
frankbanmarcoceppi: thanks! what did you find complex about the charm?14:54
rick_h_marcoceppi: all good, ty. We're tring to help bring up charms we use in prod and get them so we're helping maintain more.14:55
marcoceppifrankban: I had a hard time explaining the logic tree from the services framework, but this is probably ultimately a fail on my part of lack of general understanding of the framework14:56
rick_h_marcoceppi: :( we thought this was the cool new way to write charms these days14:57
rick_h_we try to keep up :P14:57
marcoceppiDon't take my lack of familiarity with a framework as it not being the cool way, I'm not too hip these days ;)14:59
cory_fuThe framework has its upsides, mainly when dealing with multiple dependencies, but it's acknowledged that it does make the simple case harder to follow15:00
khussi'm using Juju charms to install openstack. I also have to make some additional changes in the nova.conf file. However changes seem to be overwritten when I reboot the machine.15:11
khussHow do I make changes in the configuration files so that they are not overwritten by Juju15:11
marcoceppikhuss: you need to embody these changes in either the nova charm, or as a subordiante. The OpenStack charms own those configuration files, so you really can't (and shouldn't) make changes out of band of Juju15:13
marcoceppikhuss: out of curiosity, what are you trying to change in nova.conf?15:13
khussmarcoceppi: changes in the network_api_class. metadata agent configuration etc15:14
khussmarcoceppi: if I use a subordinate charm, do I edit the file directly or use some helper functions? Exactly, how do Juju determine if files need to be overwritten?15:16
khussmarcoceppi: we also have changes in cinder.conf and neturon.conf15:17
jrwrenkhuss: any juju hook might rewrite the file. config-changed and relation add/remove being most likely.15:19
khussjrwren: then there has to be a dependency to make sure that the last charm did the right configuration?15:24
jrwrenkhuss: I am not sure what you mean.15:25
jrwrenkhuss: typically a charm owns a config file.15:25
marcoceppikhuss: juju doesn't manage the config files15:26
marcoceppithe openstack charms do15:26
marcoceppithey just happen to own those files, each charm is different. You either need to modify the openstack charms to do what you want, or in some cases, like cinder and nova, you can build subordinate charms which can communicate with the parent charm (nova, cinder, etc) on what values should be in the configuration file15:27
khussmarcoceppi: yes.. i understand. The nova-compute charm edits the nova.conf file. now If I want to add my changes, I can probably create a subordinate charm which will edit the same config file15:27
jrwrenkhuss: There are some facilities in some charms which can help you go off tested path. e.g. nova-compute charm has a nova-config setting. You could use that to have the charm write to a different config file and then merge with your needs yourself, but you are own your own :)15:27
marcoceppikhuss: no, the subordiante editing teh file won't work, the openstack charms have special relations which allow you to convey a context whcih icnludes the chagnes to configuration files it should include when building teh file15:27
khussmarcoceppi: not sure how the subordinate charms communicate the information with the parent charm.. For example, I want to add "security_group_api=nova" in the nova.conf file15:28
khussmarcoceppi: how would subordinate charm communicate this with parent charm15:29
jrwrenkhuss: it wouldn't. the parent charm would need to be updated to support this.15:31
khussyou mean to say we need to have a custom version of nova-compute to add some changes in the nova.conf file?15:33
jrwrenkhuss: I think so, but I am not sure.15:34
marcoceppiokay15:37
marcoceppikhuss: the openstack charms, a lot of them, have been created with a special relationship that allows ytou to send data, over teh relation wire, to tell it how to write some portions of teh configuration15:37
marcoceppikhuss: this is something that's unique to the openstack charms, it show venders can create "charms" for cinder without having to fork the cinder charm over and over again, etc15:38
marcoceppiI'm not sure it works as well with the nova charm, but cinder definitely has this concept, though it's more geared for cinder backends, the logic is there15:38
marcoceppiDepending on what the changes are, and how many you have to make, will ultimately drive if this should be a subordinate or a fork15:39
marcoceppiif it's one or two changes in nova.conf for general/generic options, having it as a configuration option on the charm is probably teh best way to go, if it's a lot of stuff, or for a custom compute plugin, a subordinate is probably the way to go15:39
khussmarcoceppi: apart from the looking into the code, is there any other way to see what relationships are supported and what type of data can be sent?15:40
marcoceppikhuss: OpenStack charms use this notion of "contexts" which are Python classes that allow you to define the file you want to make changes, the section of that file (if supported), and then the keys/values to set. You then can send that "context" over teh relation15:40
marcoceppithere's not much documentation around this, and only a few charms that (cinder, definitely, neutron to an extent, and nova I think as well)  support it so far15:41
marcoceppiit's best to find a charm that closely resemebles what you're trying to do, there are a few cinder charms, and some neutron charms that touch both their services and nova-compute15:42
khussmarcoceppi: if you have some examples of "sending context over the relation" it would be great15:42
marcoceppikhuss: this is one that I'm familiar with: https://jujucharms.com/u/marcoceppi/cinder-vnx/trusty/415:43
marcoceppibut it's a storage backend for cinder, so it sends a slightly different context. An openstack-charmer could probably give you a better example, mailing juju@lists.ubuntu.com would be a good start to that conversation if none are listening right now :)15:43
khussmarcoceppi: ok  thanks I will take a look at this charm15:48
=== kadams54 is now known as kadams54-away
pmatulishello, re restrictions (juju block|unblock), does an unblock override a restriction set in environments.yaml ?16:54
=== kadams54-away is now known as kadams54
=== natefinch is now known as natefinch-afk
=== bcsaller_ is now known as bcsaller
=== lukasa is now known as lukasa_away
=== lukasa_away is now known as lukasa
=== kadams54 is now known as kadams54-away
moqqso, jujud on both of our environments is sitting at 100% cpu18:42
moqqfor no apparent reason18:42
moqqhas anyone seen this before?18:43
gQuigsmoqq: disk isn't full? (that's the only time I've seen it)18:44
moqqnope18:44
moqqlots of space18:44
moqqi think its talking to mongo a lot because the mongo process is spiking quite a bit too18:44
amcleod-moqq: strace -c?18:47
moqqamcleod-:  95.44    1.453291        4844       300        17 futex18:50
moqqamcleod- https://gist.github.com/tysonmalchow/d77900349832ebea23aa18:51
amcleod-hm right so maybe db or fs?18:52
moqqmongodb is sitting above average too18:52
moqqbut more spikes and less consistent than juju18:53
moqqand if it was waiting on IO shouldn’t that be an interrupt/idle wait? why would that cause cpu to spike18:53
=== lukasa is now known as lukasa_away
amcleod-i dont know if userspace io would be shown that way, is there something like gluster on it?18:54
amcleod-moqq: im just guessing now18:56
moqqno, its an aws block device18:57
amcleod-moqq: maybe just strace the process and see what its doing, probably a lot of futex wait and nothing particularly helpful.18:59
amcleod-..18:59
moqqyeah18:59
moqqthat’s all i’m seeing18:59
moqqmost time spent on futex19:00
moqq95%+19:00
moqqi dont understand what kind of io it could even be concerned with that much when there are no commands and the cluster is otherwise idle??19:00
amcleod-well maybe its not io, maybe its db as you suggested19:01
amcleod-http://stackoverflow.com/questions/17211357/debug-a-futex-lock19:01
amcleod-^also not particularly helpful19:02
amcleod-moqq: maybe check mongo processes? http://docs.mongodb.org/manual/reference/method/db.currentOp/19:13
amcleod-moqq: ....errr.. http://compgroups.net/comp.unix.programmer/futex-high-sys-cpu-utilization/139136019:15
=== kadams54-away is now known as kadams54
moqqseemed so promising but no dice19:32
amcleod-hmm :/19:36
moqqtrying to connect to mongo now but it seems to be failing.. where does the juju mongo db keep its logs?19:37
=== natefinch-afk is now known as natefinch
amcleod-not sure sorry19:40
=== kadams54 is now known as kadams54-away
jrwrensyslog, I thought.20:20
=== natefinch is now known as natefinch-afk
=== kadams54 is now known as kadams54-away
hazmatanyone in town for the docker hackathon?23:08
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away

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