/srv/irclogs.ubuntu.com/2015/07/13/#juju.txt

Hueheyy06:01
Huei want to be a ubuntu user, teach me to setup!06:02
Odd_Blokemarcoceppi: I'm catching up on email from Friday; I have submitted a MP for the charm-helpers changes in https://code.launchpad.net/~daniel-thewatkins/charms/trusty/ubuntu-repository-cache/handle_mounted_ephemeral_disk/+merge/26135609:14
Odd_Blokemarcoceppi: You can find that MP at https://code.launchpad.net/~daniel-thewatkins/charm-helpers/lp1370053/+merge/26086409:14
Odd_Blokemarcoceppi: But I wasn't seeing any movement on that, so I was carrying the patch locally until it landed.09:15
marcoceppiOdd_Bloke: awesome, thanks, I'll talk a look today!09:28
Odd_Blokemarcoceppi: Thanks!09:28
Odd_Blokemarcoceppi: (Up early, or in a different TZ?)09:28
marcoceppiOdd_Bloke: up early, I've got a flight to catch09:28
Odd_BlokeEarly flights. D:09:28
bloodearnestDoes anyone know how to configure storage/block-storage-broker to work with local provider?10:25
bloodearnestI can set provider to be local on storage, block-storage-broker just doesn't like deploying on local at all afaics10:26
lazyPowerbloodearnest: its only confirmed working on AWS and OpenStack10:26
bloodearnestlazyPower, right, I don't want to actually use it - I just want to have my services/relations work unchanged on local10:27
bloodearnestsounds like I need to conditionally add broker + relation if I detect we're using openstack10:28
lazyPowerthat or file a bug so BSB can determine if its running locally and noop10:28
lazyPowerwith the storage support juju has grown, i wonder how much shelf life of BSB will retain.10:29
bloodearnestlazyPower, indeed, but it will be a good while before we can use 1.24 in prod, and I need it *now*, so... :(10:30
lazyPowerah10:30
lazyPowerfair counter point10:30
bloodearnesthence why I am not that motivated to fix the charm, too10:30
bloodearnestas its on life support10:30
bloodearnestlazyPower, so, about these docker juju images10:31
lazyPowerthat, i know something about ;)10:31
lazyPowerwhats up?10:31
bloodearnestI think this might be useful for the devs on our team, who have had bad experiences trying to get mojo/juju setup to run reliably and fast on local provider10:32
lazyPowercharmbox does work with local provider, but it requires dancing of the jig to get it to work10:32
lazyPoweryou have to bootstrap the local provider, then fire up the docker image. its a bit of a strategic process, and can sometimes yield odd behavior10:32
lazyPowera lot of that should go away if we ever get a LXD based local provider.10:33
bloodearnestlazyPower, so does it do nested lxc's? Or deploy to local provider on the host?10:33
lazyPoweryou're in an isolated sandbox for dependencies, and leveraging juju-client effectively.  The local provider exists on the host10:33
lazyPowerits not as native of an experience as the vagrant image provides, but its faster and lighter weight10:34
bloodearnestlazyPower, thumper said he was working on lxc provider as friday project, dunno if he's made progress10:34
bloodearnestlazyPower, so you still need juju on the host?10:34
lazyPowerto leverage local provider, yes10:34
bloodearnestright10:34
lazyPowerthe AppArmor/CGROUP schenanigans in docker are wonky to say the least.10:34
bloodearnestindeed10:34
lazyPoweri have yet to find the right brew to get a local provider running in the docker image10:34
lazyPowercory_fu is the one that actually pioneered that front and found success10:35
lazyPowerbloodearnest: the instructions for running local provider w/ the docker image are outlined in the charmbox readme10:35
bloodearnestmy attempts to find a usage that works with both dev and prod have been blocked by that issue. lxc's apparmor profiles are much simpler10:35
bloodearnestlazyPower, thanks, I will try it out10:35
lazyPowerwell, we're using it in Jenkins10:35
lazyPowerany of the juju-ci results you see have been run through these images. That was our primary testing grounds for the images before pushing them out into the wild, getting them stable enough to run our CI Env10:36
bloodearnestlazyPower, to deploy production services?10:36
lazyPowerhttp://juju-ci.vapour.ws/view/Juju%20Ecosystem/job/charm-bundle-test-aws/181/console10:37
lazyPowerfor example10:37
lazyPoweras well as my Drone setup that's achieving the same results: http://drone.dasroot.net/github.com/chuckbutler/docker-charm/drone-juju-integration/4ce159d936f4a42ac910aa3ec7f4d498d209dcdb10:38
bloodearnestright10:38
bloodearnestso, I'm talking about using docker to deploy app payloads in a charm10:39
lazyPowerThat's completely do-able too, whats the application stack you're trying to deploy?10:40
bloodearnestmany, but lets pick ubuntu sso, a django app10:41
lazyPowerbloodearnest: actually, this may be of some interest to you. We built a docker/juju based ad-hoc PAAS for dockercon.10:41
lazyPowerin the interest of saving time, i wrote a single compose charm that clones a git repo, and runs docker-compose pull && docker-compose up10:42
bloodearnestthe thing is, I want to dev on the code base locally, using the charm deployed on local provider as the dev env10:42
lazyPowerah, that's going to be tricky10:42
bloodearnestbut docker build doesn't work in an lxc10:42
lazyPowerdocker in lxc is notoriously painful10:42
bloodearnestright10:42
lazyPowerI have a MAAS box sitting behind me i use for that10:42
lazyPoweror i shell out the clams for cloud time10:42
* bloodearnest think lxd is likely gonna work better for us than docker10:43
lazyPowerthats entirely possible10:45
lazyPowerif only the rest of the community felt that way, we wouldn't be investing as much effort in bridging the gap :)10:45
g3narowhats difference of lxd vs docker ?11:13
g3naroor got a good link to article on this11:14
lazyPowerg3naro: http://www.zdnet.com/article/ubuntu-lxd-not-a-docker-replacement-a-docker-enhancement/11:19
lazyPowerg3naro: to put it in my own words - LX[D|C] is focused on full OS containers, a very flexible solution that still gives you the full surroundings of your os, like an init system, multiple processes in the container. Its a lighter weight alternative to KVM without hardware layer isolation. Docker is intended to be immutable process containers, where you deliver a single application thread per container. Such as strictly a web serever, or11:21
lazyPowermiddleware, or a worker process, while LXC can handle the full stack in  a single container. There are some key differences such as the backend technology - docker moved to libcontainer in 2014, while LXC is still based on the LXC/Cgroups code being cranked out by stgrabers team.11:21
g3naroahhh11:24
g3narook, yeah i have been u sing lxc and seems like a better solution to running a kvm machine11:24
g3naroi guess could you just build a cluster of boxes with MAAS and then lxc containers,, vs openstack+kvm ?11:24
lazyPowerwe actually have some openstack deployments that leverage lXC for density on a small number of machines11:25
lazyPowerit co-locates services using LXC isolation to condense the requirement down for a devstack to ~ 2 machines.11:25
g3narobut what would you need to have lxc ontop of openstack then ?11:25
lazyPowerbasically run everything on one machine, then fire up nova-compute on a secondary machine dedicated to providing the vm images.11:25
g3narointeresting11:25
lazyPowerThere's a nova-lxd driver charm, which will allow you to consume LXD as your hypervisor.11:25
g3naroahh11:26
g3naroso you're juju'ing it on there anyways11:26
lazyPowerwe're all over that stack with containers :)11:26
lazyPowerhattip @ jamespage and company for exploring that11:26
g3narointerestng concepts11:26
g3naroso lxd is the hypervisor12:16
g3narohttps://linuxcontainers.org/lxd/introduction/12:17
coreycbgnuoy, jamespage: hello, can I get a review of this from one of you?  https://code.launchpad.net/~corey.bryant/charm-helpers/install-warning/+merge/26434012:17
jamey-ukI'm trying to deploy my Rails apps using the Rails charm but it fails when it comes to building the json Gem: https://gist.github.com/anonymous/8271efd25a30732e12c4. This application has been deployed locally and to production Ubuntu servers with no issue. Does anyone know what could be causing this?13:55
coreycbniedbalski, would you be able to review this by any chance?  https://code.launchpad.net/~corey.bryant/charm-helpers/install-warning/+merge/26434014:55
beisnerhi gnuoy, coreycb - this lil race is becoming more noticeable.  it's always been a bit racey, but it's pretty consistent with a few of the charms.  input on getting away from an arbitrary wait on this one?   bug 147403015:07
mupBug #1474030: amulet _get_proc_start_time has a race which causes service restart checks to fail <amulet> <openstack> <uosci> <Charm Helpers:New> <neutron-api (Juju15:07
mupCharms Collection):New> <neutron-gateway (Juju Charms Collection):New> <openstack-dashboard (Juju Charms Collection):New> <https://launchpad.net/bugs/1474030>15:07
coreycbbeisner, basically it just expects the pid to change since the service is restarted so maybe the code could get the pid ahead of time then make the config change, then watch the pid until it changes15:09
beisnercoreycb, yeah i think that would simplify things too.  check pid before.  change something.  watch with a timeout, to see if pid changes.15:10
coreycbbeisner, sounds good15:13
beisnercoreycb, gnuoy -  on a different race topic  :-/   the mojo-os approach of using  juju run on all units to determine if hooks and relation data have settled ... appears to no longer be reliable.15:14
gnuoybeisner, I think one of the charms has a fix15:14
beisnercoreycb, it's baaaack - even with a double juju run check.  unexpected relation data in cinder cinder-ceph storage-backend - key 'broker_rsp' does not exist15:14
beisnergnuoy, coreycb - ^  juju-deployer says a-ok, ready.   the juju run x 2 against all units says a-ok.   yet a bit of relation data isn't always present.   if i run it manually, then wait who-knows-how-long, that relation data eventually arrives.  cannot for the life of me figure out how to know when.15:15
beisnergnuoy, re: pid race, do you know which?  i see a few variants on the pid check in c-h.15:16
gnuoybeisner, sorry, otp15:27
beisnernp gnuoy15:27
beisnergnuoy, coreycb - i'm dealing with 2 separate races.  2 bugs to track:15:27
beisnerbug 147403615:27
mupBug #1474036: amulet openstack tests have race - some tests start before relations/hooks have settled <amulet> <openstack> <uosci> <Charm Helpers:New> <cinder-ceph (Juju Charms Collection):New> <https://launchpad.net/bugs/1474036>15:27
beisnerbug 147403015:28
mupBug #1474030: amulet _get_proc_start_time has a race which causes service restart checks to fail <amulet> <openstack> <uosci> <Charm Helpers:New> <neutron-api (Juju15:28
mupCharms Collection):New> <neutron-gateway (Juju Charms Collection):New> <openstack-dashboard (Juju Charms Collection):New> <https://launchpad.net/bugs/1474030>15:28
=== scuttle|afk is now known as scuttlemonkey
=== ming is now known as Guest86022
=== ericsnow is now known as ericsnow_afk
=== lukasa is now known as lukasa_away
=== liam_ is now known as Guest62504
mbruzekmarcoceppi: I need to run a grep in a set -e bash script that might fail, but I need the result of the grep 0 or 1.  I forget how to do that without exiting the script.  Can you enlighten me?17:43
=== lukasa_away is now known as lukasa
lazyPowermbruzek: set +e17:43
lazyPowerthen check $?17:44
mbruzeklazyPower: Yeah I guess I can do that, but this is a charm script so the best practice is to use set -e17:44
lazyPowermbruzek: temporarily disable error checking then re-enable17:44
lazyPowerthats acceptable in a charm17:44
thedacgrep $SEARCH || true  also works IIRC17:44
mbruzeklazyPower: I know I can change it just for that command. ..17:44
mbruzekthanks to you both!17:45
=== ericsnow_afk is now known as ericsnow
pmatulisdoes a configuration change to environments.yaml always require a bootstrap, and thus the current env needs to be destroyed first?21:51
thumperpmatulis: changing something in environments.yaml does not impact any running environments22:02
thumperpmatulis: if you want to change a setting on a running environment, use 'juju set-env'22:02
pmatulisthumper: so i need to do everything run-time (juju set ...) right?22:02
thumperpmatulis: bootstrap uses the values in environments.yaml, but if you have a running environment that you are trying to change, then yes,22:03
thumperset-env22:03
thumperset is for service config22:03
pmatulisthumper: so easy to lose track of configuration changes i suppose?22:04
pmatulisok re 'set-env vs set'22:04
pmatulisthumper: any idea -> http://paste.ubuntu.com/11874729/22:16
thumperpmatulis: yeah, some environment attributes are immutable after an environment has started22:46
pmatulisthumper: ok, time to restart. thanks22:48

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