/srv/irclogs.ubuntu.com/2016/05/12/#juju.txt

=== rodlogic is now known as Guest47582
=== rodlogic is now known as Guest11700
=== rodlogic is now known as Guest493
=== frankban|afk is now known as frankban
gnuoyjamespage, got a sec for https://github.com/openstack-charmers/charm-tempest/pull/5 ? fwiw I've tested it08:13
jamespagegnuoy, +1 merged08:14
gnuoythanks08:15
=== rodlogic is now known as Guest85705
=== thumper is now known as thumper-afk
=== zz_CyberJacob is now known as CyberJacob
=== julenlar is now known as julenl
=== rodlogic is now known as Guest71281
=== rodlogic is now known as Guest50981
=== freyes__ is now known as freyes
=== scuttle|afk is now known as scuttlemonkey
rye_https://gist.githubusercontent.com/anonymous/569083600b2e95057add2d188e8d1687/raw/665602596e56b071ace4d0b79c6a3c48f489cb06/gistfile1.txt14:03
rye_sorry, wrong chat14:03
DavidRamahi foilks, got an issue with juju2.0b6/xenial I can't delete a charm from my status:14:49
DavidRama[Units]14:49
DavidRamaID      WORKLOAD-STATUS JUJU-STATUS VERSION   MACHINE PORTS PUBLIC-ADDRESS MESSAGE14:49
DavidRamamysql/0 error           idle        2.0-beta6 1             10.168.71.15   hook failed: "db-relation-broken" for mediawiki:db14:49
verterokDavidRama: hi, tried marking the unit as resolved? (juju resolved mysql/0)14:51
DavidRamaah yes thanks14:54
DavidRamaAnd is there a way to stop/remove a whole bundle easily ?14:56
lazyPowerDavidRama - not really. Unless you're using the gui you can mark every charm in a single transaction.15:00
lazyPowerbut thats the only easy way i can see to remove an entire bundle in one go.15:00
cory_fukjackal_: https://github.com/juju-solutions/layer-apache-bigtop-base/pull/315:01
cory_fukjackal_: Example changes in namenode: https://github.com/juju-solutions/layer-apache-bigtop-namenode/pull/115:01
cory_fukjackal_: And you'll need this openjdk: https://github.com/juju-solutions/layer-openjdk/pull/215:01
stubcory_fu: Have you had a chance to look at the charms.reactive action branch?15:09
ddellavjamespage or gnuoy can one of you guys take a look at this and land it? lp:~ddellav/+junk/charm-helpers its the change to support neutron 8.1 in mitaka15:20
jamespageddellav, can you propose that as a merge against lp:charm-helpers please15:21
ddellavjamespage sure15:21
jamespageddellav, you might need to rename your branch to lp:~ddellav/charm-helpers/branchname15:21
jamespageotherwise lp might lose its target...15:21
ddellavit's been awhile since i did a launchpad merge15:21
ddellavok, i'll check it out15:21
ddellavjamespage https://code.launchpad.net/~ddellav/charm-helpers/neutron-mitaka-stable/+merge/29452915:24
cory_fustub: Some.  I was discussing it with bcsaller.  I think I'm more inclined to use the state-based version in layer-basic, though we have also realized that auto-removing states like that are not the right way forward long-term, so there's still some discussion15:31
stubcory_fu: yes, I expect people will prefer using the states. I felt the @action decorator was needed though to setup that state if necessary, similar to @hook15:32
stubcory_fu: The basic model works for you though? Jumping into the reactive handlers and they can choose to call action-set, action-fail? And that actions and hooks are sharing the same bag of handlers?15:34
jhobbsjuju's api-port, 17070, is what a remote client like python-jujuclient/juju deployer connect to, right?15:58
rick_h_jhobbs: yes15:59
jhobbsthanks rick_h_15:59
beisnermarcoceppi, cory_fu - i'm needing to determine a reliable way to programmatically determine from the code tree alone whether a charm is to-be-built or already built.  it looks like the layer.yaml + whether or not the .build.manifest file exists is indicative.  do you have any other suggestions along these lines?16:04
cory_fubeisner: I think the .build.manifest would be the most authoritative16:05
beisnercory_fu, right so there's no case you can think of where that file would/should exist in a layer or interface?16:05
cory_fubeisner: Someone might check it in by mistake, but it really should not be16:06
cory_fuIf they did that, we would nack them on review16:06
beisnercory_fu, ack thx sir16:12
beisnercory_fu, is there any case where a built charm or a layer would contain a interface.yaml?16:13
cory_fuIt will if it includes any interface layers, but it wouldn't be at the top level16:14
rye_When my charm is deployed under bundletester, I briefly see a status of "Agent is lost, sorry! ...", but normal deployment goes fine. Is there some common pitfall I might be hitting, here? (juju2)16:56
jhobbsi've seen that with juju2 also rye_, not using bundletester16:59
cory_furye_: Juju always reports "Agent is lost" for a brief period while the unit is bootstrapped.  It just indicates that the unit is up but the agent hasn't checked in with the bootstrap node yet.  It should go away on its own after a second or two17:01
cory_fuSo, now I have a question about subordinates....17:02
cory_fuCan someone tell me if it's possible to "chain" subordinates?  As in, I have the plugin charm that is subordinate to some principal, which is to install Hadoop.  But that requires Java, which is provided by a subordinate charm itself.  So I have openjdk -> plugin -> client where "->" is "subordinate to"17:04
cory_fuJuju seems to accept the relation, but the plugin never gets an openjdk unit17:04
=== frankban is now known as frankban|afk
marcoceppiaisrael: are you going to make 1x1?17:20
rye_cory_fu: good to know, thanks!17:20
aisraelmarcoceppi: I'll be there!17:21
magicaltroutmarcoceppi: can you find a definitive date when you guys will be in Pasadena so I can dump it in my calendar? We discussed it here and would be cool to hook up with you guys and I can combine it with a NASA onsite at the same time.17:22
aisraelNASA?!17:24
magicaltrouter yeah17:27
lazyPowercory_fu - yeah no, you cant build subordinates on top of one another17:27
magicaltrouti moonlight for NASA JPL17:27
lazyPoweryou can use 2 subordinates on the same principal, and exchange the java runtime information that way, but i dont think you can plug in interface:java on your subordinate - unless i completely missed teh question17:28
lazyPowerwhat would happen is you need openjdk => client,  and plugin => client, and you'll have to do some data pass in that chain, either through states, unit data, or plain ol relationship proxy'ing info on the same unit17:29
lazyPoweralso rye_  sorry i missed ya lastnight. it was past EOD for me17:30
lazyPowerrye_ - did you get your charmbox questions sorted in my absence?17:30
cory_fulazyPower: Yeah, you're correct.  You can't chain subordinates currently due to technical / implementation reasons.  However, the modeling of the relations don't work the way you're describing so I'm basically just stuck17:30
lazyPower"modeling of the relations dont work that way" - wut17:30
rye_lazyPower: not yet, started putting out another fire :)17:30
cory_fulazyPower: Juju is a modeling language.  ;)17:30
lazyPowercory_fu no thats fine, but what do you mean "dont work that way"17:30
lazyPoweryou can certainly pass data between layers with unitdata + state combos17:31
lazyPowerooo wait no you cant17:31
lazyPowerthats a different unitdata.db for each sub17:31
lazyPoweryeah, you're going to have to relation-set -r  out of band for any data you need to get from one to the others via the proxy. and thats messy, i did that with old docker-charm code and it ended in tears17:31
cory_fuSo, semantically, the relationship is between the two subordinates.  I don't want to demand that every single charm that might want to use the plugin have to *also* support the java relation and *also* have to implement proxying that relationship across17:31
lazyPowerby tears i mean it was fiddly and always needed attention, and wound up being a big pain to debug and trace that datapass across the charms.17:32
cory_fuSo, when I said "don't work that way" I meant that it's not semantically meaningful to do that17:32
lazyPoweryeah17:32
lazyPoweri agree17:32
lazyPowermake better choices cory_fu17:32
lazyPower<317:33
cory_fulazyPower: The response I got from asking in #juju-dev was resources  are probably a better fit, with which I mostly agree, except that it drastically reduces discoverability and makes ownership a bit of a nightmare.17:34
lazyPowerwell, resources are still a blocking item right now17:34
cory_fuAlso, doesn't work in 1.x17:34
cory_fuYeah, that too17:34
lazyPoweri have a charm thats pending a release because resources coming from the store are currently pooched17:34
lazyPowerit'll be fixed soon enough, but you're right, it locks you into a 2.0+ deployment scenario17:34
lazyPowerand thats not always ideal either17:34
aisraelmagicaltrout: Awesome!17:42
marcoceppimagicaltrout: http://summit.juju.solutions/17:51
marcoceppimagicaltrout: we should be announcing early next week, but it's all but signed at this point17:52
magicaltroutthanks marcoceppi18:03
magicaltroutkwmonroe kept changing his mind on the month18:04
tvansteenburghcory_fu: latest bundletester on pypi has your new feature18:14
cory_fuSweet!18:14
cory_fuThanks18:14
kwmonroemagicaltrout: i feel like you should be teaching a session right now, and not so much chatting about the summit.18:24
cory_fukwmonroe: Deploy looks good on those PRs19:51
kwmonroethx cory_fu19:54
marcoceppiwho has used extra-bindings?19:59
rick_h_marcoceppi: the openstack team20:00
rick_h_marcoceppi: they're the only folks that have updated charms to use it yet20:01
marcoceppibeisner: got an example of a charm with extra-bindings?20:01
* marcoceppi has a need20:01
* rick_h_ starts loading charms from openstack-base20:01
beisnermaybe marcoceppi, sec..20:01
rick_h_marcoceppi: https://api.jujucharms.com/charmstore/v5/xenial/ceph-osd-0/archive/metadata.yaml20:03
beisnermarcoceppi, https://github.com/openstack/charm-cinder/blob/master/metadata.yaml#L1020:03
rick_h_marcoceppi: and https://api.jujucharms.com/charmstore/v5/xenial/ceph-radosgw-0/archive/metadata.yaml20:03
beisnerlolz, yah those20:03
beisnero/ rick_h_ :)20:03
rick_h_:)20:03
marcoceppiso it's just an empty dict?20:03
rick_h_? you mean how you define it?20:04
beisnerusage ex. @ https://github.com/openstack/charm-cinder/blob/master/hooks/charmhelpers/contrib/openstack/ip.py#L11220:04
marcoceppirick_h_: yeah20:04
marcoceppiinteresting.20:05
marcoceppirick_h_: will these create network interfaces?20:06
rick_h_marcoceppi: you can run network-get on those20:06
rick_h_in your hooks20:06
rick_h_and get config/info20:06
marcoceppiright, but does that mean these machines get virtual nics, or what?20:07
beisnermarcoceppi, thedac + jamespage have championed our initial net spaces implementation - i'm not sure how e/n/i ends up first-hand.20:11
marcoceppibeisner: thanks, I'll ping thedac tomorrow about it20:12
thedacI am here20:13
marcoceppioh, hey thedac, extra-bindings, how does that translate to the unit?20:13
thedacmarcoceppi: So  this only works with MAAS for now. The physical machine needs to have an interface defined in a specific network space in MAAS20:14
thedacAnd this just allows the charm to "choose" which interface a relation sends data over20:14
thedacfor the extra bindings part it maps directly to what the OS charms had as a config value os-{pubilc,admin,internal}-network20:16
wolsenmarcoceppi: so for that mongodb charm change that I mentioned last week, you mentioned it was a new review so I believe I followed the docs https://jujucharms.com/docs/stable/authors-charm-store#submitting ...20:16
wolsenmarcoceppi: I ended up not pulling out master/slave because its needed for the amulet tests for sharding, so this only moves stuff out of the upstart/init script modifications to pushing it into the /etc/mongodb.conf --> https://code.launchpad.net/~billy-olsen/charms/xenial/mongodb/trunk20:18
marcoceppithedac: interesting, okay. This is definitely geared towards maas so that's nice20:18
marcoceppiwolsen: that should be it, the old review queue is slowly chugging through things so it should show up by tomorrow morning20:19
wolsenmarcoceppi: ack thanks just wasn't sure - the changes I have are safe for trusty as well fwiw, and I think I'll do a mp for them too20:20
marcoceppiwolsen: sounds good20:20
wolsens/them/trusty20:20
lazyPowerwolsen thank you for adopting some fixes on that charm20:21
lazyPower<320:21
wolsenlazyPower: sure thing20:21
* beisner woots for ppa:juju/daily \o/20:40
beisnerhi thedac, so i randomly chose cinder to convert from juju test, amulet, et al via debs --> to bundletester, amulet and friends purely from venv ... and that's all looking good.  now if i can get cinder itself to work as planned.  i'm seeing that pause/resume in cinder isn't really working.  bug 1581171  curious if you can lend a set of eyes on that?20:52
mupBug #1581171: pause/resume failing <uosci> <cinder (Juju Charms Collection):New> <https://launchpad.net/bugs/1581171>20:52
thedacbeisner: I'll take a look20:56
=== admcleod1 is now known as admcleod
beisnerthedac, muchos.   i'm taking a break from good ole cinder before i push overwrite a blank dir to it lol.20:57
* beisner picks one that passes @master ;-) ...20:57
beisner--> glance.21:02
cmarsmbruzek, lazyPower I'm getting an install hook error in the kubernetes charm. is github.com/kubernetes/kubernetes the right place to open a bug?21:19
cmarsmbruzek, lazyPower https://paste.ubuntu.com/16382142/21:20
mbruzekcmars: Thanks for using our stuff. If you determine the problem is with Kubernetes code itself use that repo. If the bug is in the charm code then please open it here https://github.com/mbruzek/layer-k8s21:21
mbruzekactually cmars that is a bug in the docker layer21:22
mbruzekhttps://github.com/juju-solutions/layer-docker/issues21:22
cmarsmbruzek, thanks, i'll open a bug. do you think it's possibly caused by deploying this on lxd?21:23
mbruzekcmars: Absolutely.21:24
=== rodlogic is now known as Guest53153
cmarsmbruzek, got it :) ok, i'll find a real cloud21:24
mbruzekDocker *can* run  inside lxd, but Juju does not use the docker profile as far as I remember21:24
mbruzekThere is a core bug my bug got duped against for that21:24
mbruzekAs far as I know you can not run kubernetes in lxd  at this time.21:25
mbruzekbecause docker will not run by default inside lxd and I don't think they have fixed that yet.21:25
cmarsmbruzek, ok. we might want to note that on the bundle READMEs, in case anyone tries it21:25
mbruzekcmars: is that how you got this?21:26
mbruzekcmars bundle?21:26
cmarsmbruzek, yes21:26
mbruzekcmars which one?21:26
mbruzekkubernetes-core or observable-kubernetes?21:26
cmarsmbruzek, observable-kubernetes21:26
rick_h_cmars: you need to make the lxd docker profile the one juju uses21:40
rick_h_cmars: why i mentioned gce and such21:40
cmarsmbruzek, what about this one? https://github.com/juju-solutions/layer-etcd/issues/1121:44
mbruzekcmars: sorry for the problem. etcd charm can be reved to 2. This bundle is out of date, hard to keep it in sync for all the charms are in21:48
mbruzekthe bundle21:48
cmarsmbruzek, thanks!21:49
cmarsso in theory.. i could just edit the juju-default lxd profile and add the docker stuff. worth a shot21:51
mbruzekcmars: I really don't think everything will work inside22:01
mbruzeklxd22:01
cmarsmbruzek, it's possible, but i had to set security.privileged=true on the containers22:05
cmarsmbruzek, that got past the install hook, anyway. no idea if it actually works :)22:06
mbruzekcmars: tych0 indicated that some docker containers will not run well inside lxd.  I would suggest saving the bundle and incrementing the charms to the latest revno and deploying this on a real cloud like amazon or azure.22:06
cmarsmbruzek, ok, ok :)22:06
mbruzekcmars: otherwise your mileage may vary.22:06
tych0well, it really depends on what the container is doing22:07
mbruzektych0: These docker containers are go binaries running kubernetes.22:07
tych0yeah, i guess i don't know what kubernetes needs to do :)22:09
lazyPowertych0 - its going to do the same things any other deployment would request. Run a container confined in cgroups (potentially), request network and disk resources, and add iptables rulesets for the proxy22:10
LiftedKilthow does the maas2 feature flag work with conjure-up?22:11
lazyPowercmars - how did you get that?22:11
lazyPowerits failing on setuptools/distutils? thats a new one on me22:12
cmarslazyPower, the etcd one? i deployed observable-kubernetes on lxd (which I've since learned is not really supported)22:14
cmarslazyPower, but the etcd hook error, i think it's fixed in the latest etcd-2?22:15
cmarsabout to try that22:15
lazyPowerok22:20
lazyPowerlmk if its not, i had a bit of a stir looking over the bug+logs22:21
cmarslazyPower, mbruzek etcd-2 fixes my issue. here's a fix for the bundle: https://github.com/juju-solutions/bundle-observable-kubernetes/pull/522:22
lazyPowercmars <333333333 keep em comin22:23
mbruzekThanks cmars22:23
mbruzekI am almost done with the readme fix and elasticsearch charm can also be bumped.22:23
=== rodlogic is now known as Guest13869
mbruzekcmars: if you just want kubernetes to run may I suggest the kubernetes-core bundle?22:24
mbruzekcmars: it does not have the high constraints as the observable one22:25
cmarsmbruzek, good point, thanks22:26
LiftedKiltnevermind on that front - I just took a guess and got it working22:26
LiftedKilthowever autopilot is not yet updated to xenial?22:26
mbruzekcmars: lazyPower: https://github.com/juju-solutions/bundle-observable-kubernetes/pull/622:30
mbruzekcmars: lazyPower: https://github.com/juju-solutions/bundle-kubernetes-core/pull/522:42
mbruzekcmars those should include the updates you asked about today.22:42
cmarsmbruzek, thanks, LGTM22:43
=== thumper-afk is now known as thumper
cmarsmbruzek, hey, i've got kubernetes-core deployed in GCE now, thanks for the help23:05
mbruzekcmars: great23:05
mbruzekcmars: I can publish those bundles here soon I just wanted to test the new YAML as you pointed out in the review23:06
mbruzekSo far deployer seems OK with it23:06
cmarsmbruzek, juju 2.0 likes it just fine, i deployed the bundle from the command line23:07
mbruzekOK. That new YAML was output from my tool that just bumps the revision numbers of all the charms to the latest according to the charmstore. Keeping bundles up-to-date was too manual for me23:07
mbruzekI know why they need to be locked to revision numbers, but that makes it very difficult to maintain large bundles.23:08

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