/srv/irclogs.ubuntu.com/2017/02/21/#juju.txt

=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
kklimondacan I define (and later reference) variables in bundles?06:34
kklimondaI have to pass the same gpg key to bunch of services06:34
anrahthat should be a config-option on some layer / charms07:39
anrahIf I understood your question correctly07:40
anrahfor example on layer-apt there is config option install_keys which can be set on bundle-file07:41
kjackalGood morning Juju world!08:15
=== jamespag` is now known as jamespage
SimonKLBanyone know if it's possible to run actions in the virtualenv created by the basic layer?11:42
SimonKLBor perhaps in it's own virtual environment and then with it's own wheelhouse11:42
kjackalSimonKLB: Have a look here: https://github.com/juju-solutions/layer-cwr/blob/master/actions/build-on-commit13:25
kjackalYou need to call activate_env found in the basic layer13:26
SimonKLBkjackal: perfect! thanks13:29
=== rogpeppe1 is now known as rogpeppe
SimonKLBkjackal: do you know how to preserve, for example, sys.argv when activating the venv?13:44
kjackalSimonKLB: I do not know that. For sure you can work around this by storing information in a file.13:46
jacekn_hello. Any idea when juju 2.1 might be out? Is it days/weeks/months away?13:48
=== jacekn_ is now known as jacekn
=== scuttle|afk is now known as scuttlemonkey
lazyPowerAnkammarao_ hello. I dont respond to private messages :)14:06
lazyPowerAnkammarao_ how may I assist you?14:06
Ankammarao_i am getting error while publishing the promulgated charm14:06
SimonKLBkjackal: https://github.com/juju-solutions/layer-basic/pull/9014:07
SimonKLBi think that does it14:07
Ankammarao_getting error like "denied access for the user"14:07
Ankammarao_lazypower: but i am able to push to other channels like edge,beta14:08
lazyPowerAnkammarao_ - You can push to any channel that is not stable when your charm is promulgated. Promulgation means you must submit your charm for review (http://review.jujucharms.com) and a ~charmer can promote your edge,beta channel release to stable14:09
Ankammarao_lazypower : do i need to mention the charm is promulgated when submit for a review14:15
kjackalAnkammarao_: you do not have to but please do14:17
lazyPower^14:18
Ankammarao_kjackal, lazypower : ok, thank you14:18
lazyPowernp14:31
ZiclazyPower: HELP... oh, sorry, all is working actually :)14:33
Zic(hello :p)14:33
lazyPower\o/ YESSSSS14:33
lazyPowerITS HAPPENINGGGG14:33
lazyPowerZic :) I have new goodies for you14:33
ZicJuju tshirts? :p14:34
lazyPowernah thats something jcastro does14:41
lazyPoweri have a new etcd charm14:41
lazyPowerwith new etcd snap stuff14:41
lazyPowerwell its a new old charm :)14:41
lazyPowerZic https://github.com/juju-solutions/layer-etcd/pull/7714:45
catbus1stokachu: Hi, conjure-up imports ubuntu .root.tar.gz images for novakvm, shouldn't it be ubuntu -disk1.img? or is it the lxd image will work on kvm as well?14:50
stokachucatbus1, hmm i dont think so14:50
stokachulemme look at the spells14:51
=== gonzo___ is now known as dgonzo
stokachucatbus1, xenial-server-cloudimg-amd64-disk1.img is the correct one right?14:52
stokachucatbus1, for now you can do juju config nova-compute virt-type=lxd14:53
stokachucatbus1, ill fix the spell so it imports kvm though14:53
ZiclazyPower: oh nice, my apt pinning is living its last days so :)14:54
lazyPowerZic - thats the idea. channels + snaps will make it a fantastic experience14:54
catbus1stokachu: I believe so, that's what the configuration example shows in the openstack-base charm.14:54
stokachucatbus1, ok ill fix that in the spell14:54
lazyPowerZic - if you feel brave, build from that branch, deploy teh current etcd and upgrade to that assembled charm (juju upgrade-charm etcd --path=./etcd)  and you'll see "the magic" at work.14:55
stokachucatbus1, once my tests complete ill push a new version to the --edge channel for you to test14:55
catbus1stokachu: I can launch lxd instances fine, though. what's the difference between lxd image and -disk1.img?14:56
stokachucatbus1, nova-compute supports both so depending on if you want KVM or LXD as your compute nodes14:56
catbus1stokachu: no, I mean, it imports lxd image and I can launch instances with that image on thhe novakvm machines. horizon shows they were launched and running.14:57
stokachucatbus1, and you can access them via ssh?14:58
catbus1stokachu: I couldn't, but I haven't cleared whether that's a network connectivity issueor not.14:58
stokachucatbus1, yea i think horizon may be showing you incorrect info14:59
stokachubut yea lemme know if you figure out if its network or not14:59
catbus1ok.14:59
stokachuthat would be a interesting test to add14:59
stokachuafaik the default compute node type is kvm14:59
stokachuso it shouldnt be able to run lxd containers14:59
catbus1ok.15:00
catbus1in the mean time I can import the kvm images manually.15:00
stokachucatbus1, ok cool, do you need help with that or are you good?15:00
catbus1I am good.15:00
stokachucatbus1, ok cool, ping me with what you find out, i gotta step away for a few hours15:01
catbus1ok15:01
Zicit's not really ontopic but if you have any starting points: do you have any experience of SGBD (MySQL, MariaDB, PostgreSQL) inside a K8s cluster without Vitess?15:16
ZicI'm looking at this currently: https://github.com/bitnami/charts/tree/master/incubator/mariadb-cluster15:17
Zic(but as you see, it's in incubator for now)15:17
lazyPowerZic - i myself tend to use lxd for my stateful workloads15:18
lazyPowerhowever, if you're looking to run a chart in prod, as you've noticed, they are in incubation. I don't think any databases other than crate have really been identified as a production ready process-container database. Thats not to say you cant run PG containers in prod... just that they haven't actively promoted it as an option.15:19
Zicyeah, the only solution I saw is Vitess, but finally, we're on the path to give up this solution15:21
Zicthe pdo-grpc PHP extension for Vitess's client is not mature for production code15:21
Zicwe're falling back to the old php-mysqli connector so15:22
Zic(yeah, my customer is using PHP for his backend :p)15:22
ZicI don't think YouTube is using PHP so I guess it's normal after all15:26
tvansteenburghi need a reality check. anyone know if lxd-in-lxd is *supposed* to work?15:28
tvansteenburghfor example, deploy a machine that's a lxd container, then deploy a lxd container to that machine, then deploy a charm to that container15:29
tvansteenburghmarcoceppi, lazyPower ^15:30
lazyPowertvansteenburgh - i'm pretty sure its going to give you trouble if its expected to be a privledged container15:31
lazyPowertvansteenburgh - however we did find that as of the 2.1 update nested lxd seems to have changed behavior. i dont think it works any longer, no.15:32
tvansteenburghlazyPower: :(15:32
tvansteenburghlazyPower: thanks for the info15:32
SimonKLBis it possible to list all actions that have been run on a unit?16:03
SimonKLBall action ids that is16:03
SimonKLBfor example if i run an action using amulet, how can i see the result later on if its not logged in the test16:05
tvansteenburghSimonKLB: the action uuid is returned from Deployment.action_do(...)16:08
tvansteenburghor UnitSentry.run_action(...)16:09
SimonKLBtvansteenburgh: yea but there is no way to get hold of action ids that have been run before if you dont have any test logs where you printed the ids?16:09
SimonKLBfor example if i want more historical data from actions that have been run the past week or such16:10
tvansteenburghSimonKLB: yeah with amulet that'll be difficult. what's the use case?16:14
SimonKLBtvansteenburgh: right now i just wanted to see the result from an action while debugging my code and i didnt print the action id in the test16:15
SimonKLBso i just got curious if the action ids and/or results where stored anywhere so that they could be retrieved at a later time16:15
tvansteenburghSimonKLB: they're not. we could add something that shells out to `juju show-action-status` or something i guess16:17
SimonKLBim not speaking about amulet specifically, but rather actions as a whole, i assume they are stored somewhere since you're able to fetch the results at a later time as long as you have the IDs16:19
SimonKLBit would be nice to just have a command that could list all actions that have been run on a unit, like `juju action-ids [unit]`16:20
tvansteenburghjuju show-action-status16:20
SimonKLBah :D16:20
SimonKLBnvm then!16:20
SimonKLBtvansteenburgh: btw, have you seen this ? https://github.com/juju/amulet/issues/17116:22
SimonKLBit might be another miss on my part, but from the looks of it there doesnt seem to be a way for a test to both keep the model but also upgrade the charm?16:23
SimonKLBnow the options are, do it all from scratch or run the test on the same charms as before, right?16:25
marcoceppitvansteenburgh: it should work, but you have to have the right profiles, iirc16:27
tvansteenburghmarcoceppi: where can i find info that16:27
marcoceppitvansteenburgh: idk, I've been trying to get my lxd containers setup to support it and #lxcontainers is pretty void16:28
tvansteenburghmarcoceppi: k16:29
tvansteenburghSimonKLB: gimme a few, otp16:29
tvansteenburghSimonKLB: i think you are right though, there's no good way to do that right now16:30
tvansteenburghSimonKLB: i saw your issue when you submitted it, but i haven't had time to do anything with it16:31
SimonKLBtvansteenburgh: okok! it would be nice to have it when youre doing CI on charms - it's not a biggie having to reset, but the tests would run a lot faster if you could just keep it and upgrade the charms that have changed16:31
tvansteenburghSimonKLB: yeah i hear ya16:32
cory_fukjackal: I updated https://github.com/juju-solutions/layer-cwr/pull/92 so the only remaining issue should be the lxd storage16:38
kjackalcory_fu: I guess so, I havent had a full test yet16:38
kjackalcory_fu: should I try it tomorrow?16:39
cory_fukjackal: Yeah.  Though if kwmonroe or petevg want to help out on reviewing it, I'd like to get it in so you guys can stop giving me merge conflicts.  ;)16:39
kjackal:) sounds resonable!16:40
kwmonroei was gonna change the indentation on all the xml jobs real quick.  i'll look at cory_fu's PR after that.16:40
cory_fulol16:40
=== mup_ is now known as mup
zeestratHey juju folks, what's the status of the promulgated nagios charm and its maintenance? Would love to help on https://bugs.launchpad.net/nagios-charm/+bug/1605733 as it's breaking for us (and others), but it's unclear who's involved in the nagios-charmers and how it's maintained.18:37
mupBug #1605733: Nagios charm does not add default host checks to nagios <canonical-bootstack> <family> <nagios> <nrpe> <unknown> <Nagios Charm:New> <nagios (Juju Charms Collection):Won't Fix> <https://launchpad.net/bugs/1605733>18:37
stormmoreo/ Juju world18:39
kjackalhi zeestrat, the metadata.yaml has the maintainers. In addition to contacting them I would suggest you send an email to the juju list stating your intention. The discussions here are a bit ... ephemeral18:43
erlonkwmonroe: hey, have a few seconds?18:43
kwmonroesorry erlon, i'm out the door to go pick up my kid for the next few (like 30) minutes.  ask away though and i'll see the message when i get back..18:46
erlonkwmonroe: hmm, sure ill leave a question around18:47
erlonall: kwmonroe: guys, I have deployed the base-openstack (https://api.jujucharms.com/charmstore/v5/openstack-base/archive/bundle.yaml) charm and some services seem to be very broken (like some services not even configured rabbit or mysql properly), is there a problem with the charm?19:04
kwmonroebeisner: icey ^^.  erlon, can you link to a 'juju status' paste?19:08
erlonhttps://www.irccloud.com/pastebin/o2dkfrUN/19:10
erlonthis is neutro.conf in neutron-gateway https://www.irccloud.com/pastebin/av0fuRhU/neutron.conf19:12
=== frankban is now known as frankban|afk
erlonThis is in nova-cloud-controller https://www.irccloud.com/pastebin/aYIiSWsH/nova.conf19:14
erlon*1 is mitaka the other kilo*19:15
erlonjust for reference a service that seems to be working fine https://www.irccloud.com/pastebin/rWRTvf15/cinder.conf19:17
beisnerhi kwmonroe, erlon - i'd need to see the juju unit logs from the failed units neutron-gateway/0 and nova-cloud-controller/0 in order to advise;  the bundle is known-good, but certain customizations may be needed depending on the metal that it's laid down on.19:27
erlonbeisner: those are kvm VMs, the only thing I changed in the charms was 1 - the name of the network interfaces from eth1 to ens1, 2 - the name of the disk from sdb to vdb19:28
erlonbeisner: its a flat topology, 5 machines coneected to an admin network, and another interface (virtual but bridged to pub) making the public interface19:29
erlonbeisner: how/where do I get that?19:30
beisnererlon, /var/log/juju/unit-* from those two machines/vms19:34
erlonbeisner: didn't find a way to post the full logs, but here is the error19:46
erlonhttps://www.irccloud.com/pastebin/pPfMlade/unit-neutron-gateway-0.log%2019:47
erlonbeisner: it seems its the network configuration, but, now, how will I tell juju to bypass the ens4 to the container?19:50
erlonbeisner: some services it deploys on containers, others in the host VMs, for each of that the neutron interface will be different19:56
erlonhttps://www.irccloud.com/pastebin/7QgsM3tg/unit-nova-cloud-controller-0.log20:04
erlonbeisner: may be the nova error is related to the neutron: 2017-02-20 21:53:00 ERROR juju.worker.dependency engine.go:547 "metric-collect" manifold worker returned unexpected error: failed to read charm from: /var/lib/juju/agents/unit-neutron-gateway-0/charm: stat /var/lib/juju/agents/unit-neutron-gateway-0/charm: no such file or directory20:16
erlonbeisner: this is the first error in unit-nova-cloud-controller-0.log20:16
erlonbeisner: and then after some time those one above20:16
beisnererlon, neutron-gateway shouldn't  be in a container with that bundle.20:20
beisnererlon, the other failure (cloud-compute-relation-changed answers = dns.resolver.query(address, rtype)) indicates that the machines in your lab can't reverse-resolve themselves/peers.20:23
erlonbeisner: that reverse resolving should be done by the DNS server in MaaS doesnt it?20:24
erlonbeisner: hmmm got the neutron gateway error, it is running in a vm with only 1 interface20:26
lazyPowerstokachu o/21:18
lazyPowerer21:18
lazyPowerstormmore \o21:19
stokachulazyPower, \o/21:19
lazyPowerhaha21:19
lazyPowereyyyyy21:19
lazyPowerstokachu - incoming fun here https://github.com/juju-solutions/layer-etcd/pull/7721:20
stokachulazyPower, hah can't wait for that21:21
lazyPowerif you're feeling froggy, i still need to port the actions but i think thats literally it21:21
lazyPowerthen its all snaps all the time21:21
lazyPoweri have verified it works on lxd :D21:21
marcoceppilazyPower: make sure you install squashfuse <321:22
lazyPowermarcoceppi - LAYER-SNAP ALREADY DOES THISSSSS21:22
lazyPowerYASSSSSSS21:22
marcoceppiYAASSSSSS QUEEENNN21:22
lazyPowerikr21:22
stokachulazyPower, made a few comments21:22
marcoceppioh crap, this isn't #eco21:22
lazyPowerstokachu ta21:22
lazyPowerappreciate the wip review21:22
lazyPowerit'll only help when i go to actually land this21:22
stokachu:D21:23
lazyPoweranywho i need to jet, catch a flight in little over an hour21:23
lazyPowercheers21:23
=== jog_ is now known as jog
stokachusafe flight21:23
cory_fupetevg, kwmonroe: All of the issues that kjackal hit in https://github.com/juju-solutions/layer-cwr/pull/92 are resolved, if you guys were up for giving it a review21:59
=== frankban|afk is now known as frankban
kwmonroeexcellent cory_fu.. is this deployed on j.d-i.n?  looks like cwr-52 maybe?22:01
cory_fukwmonroe: Yep.  Port 8081 for Jenkins.22:01
kwmonroecool, i'll check it out22:01
xavpaiceanyone in here working on python-libjuju?22:09
* xavpaice is trying to ppa build a package that needs it, but it's not yet packaged - wondering who to talk to so I can help out with that22:11
=== mup_ is now known as mup
=== mup_ is now known as mup
cory_fuxavpaice: Hey, I've done some work on python-libjuju, as has tvansteenburgh and petevg.  By package you mean a Debian package?22:33
petevgcory_fu, xavpaice: I believe that tvansteenburgh was working on adding it to pypi.python.org, but there's a naming conflict (it's called juju, and so is an older Python lib).22:35
tvansteenburghit's there22:35
cory_fupetevg: That's been resolved.  Pypi is correct now22:35
petevgAwesome! I'm behind the times, apparently.22:35
cory_fu:)22:35
xavpaiceyeah, it's on pypi and can be grabbed via pip, but I want to put something in a PPA that needs it22:35
xavpaiceso would prefer to get a deb22:35
xavpaiceI'm working on putting a source package into a ppa now, just don't want to duplicate someone else's work22:36
tvansteenburghxavpaice: no one else has done it that i know of22:36
cory_fuxavpaice: I don't think a deb is being worked on, and I personally have no experience packaging debs but am happy to help out in any way that I can22:36
xavpaiceawesome - thanks22:37
tvansteenburghcory_fu, petevg: while we're all standing around the water cooler... https://github.com/juju/python-libjuju/pull/5622:37
xavpaicexenial package: https://launchpad.net/~canonical-bootstack/+archive/ubuntu/bootstack-ops/+packages22:46
petevgtvansteenburgh: left comments.22:52
tvansteenburghpetevg: ty22:53
=== frankban is now known as frankban|afk
petevgnp22:53
=== thumper is now known as thumper-dogwalk
cory_futvansteenburgh: I got an error running the add_machines.py: http://pastebin.ubuntu.com/24043000/  I think it's a timing issue but the example probably needs to watch for the container to be fully removed22:58
=== scuttlemonkey is now known as scuttle|afk
tvansteenburghcory_fu: interesting, thanks. i didn't hit that23:18
kwmonroecory_fu: containerization looks great.  i'd really like to get multiple cwr jobs fired off at once.  any idea how to do that with 1 jenkins slave?23:46
cory_fukwmonroe: You just have to increase the number of executors, under Manage Jenkins23:46
cory_fuI'm not sure how we'd do that in the charm.23:46
kwmonroeneat!  what's a good setting?  like 1000?23:47
kwmonroei'll try 2 for now.23:47
cory_fuheh23:47
cory_fuThat should probably be a config option on the Jenkins charm, I think23:47
kwmonroeHOLY CRAP cory_fu.  it's working.  it's really working!23:48
cory_fu:)23:48

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