/srv/irclogs.ubuntu.com/2015/03/10/#juju.txt

lazyPowerDocker is a software delivery mechanism. You're effectively creating (arguably...) an immutable container image that you run in production with everything pre-configured. This is just the deployment phase. Nothing in docker-core tells it how to connect to complimentary/required services. Given teh mediawiki example - docker by itself has no notion of a mysql db, now to create credentials in mysql, or how to get that information back to the running00:00
lazyPower docker container. Juju is an orchestration language that can wrap these components and provide that information/expertise to any service that understands how the declarative relationship model works.00:00
lazyPowersebas5384: thats preaching to the choir - but we're prototyping around it.00:00
lazyPowerand you may see some interesting things emerge out of virtual services which will be discussed at our upcoming sprint in malta.00:00
sebas5384ooh great00:01
sebas5384lazyPower: so there is some work to get docker as a provider ?00:01
lazyPowersebas5384: eh, 'as a provider' is a bit of a stretch00:02
sebas5384just specified the docker daemon info00:02
lazyPowerkeep your eyes peeled for mention of virtual services and once the spec is finalized someone may be able to shed more light about it.00:02
lazyPowersebas5384: also that blog post is coming this week - i have a hard cut off date to do a writeup over my docker charm work.00:02
sebas5384lazyPower: yeah, well using juju as a complete workflow tool for devops00:03
sebas5384is not going to happen till we have something more fast like docker to spin up the services, and sharing changes00:04
sebas5384I don't know how to explained better, but I would like to see juju as my only tool for deploying and orchestrating my services00:06
lazyPowersebas5384: everyone has different requirements, and building a tool that wraps everybody's workflow as it stands today (with changes to core) is going to be slow going00:06
sebas5384lazyPower: yeah thats my fear00:07
lazyPowerthis is why virtual services is a compelling option - so dont abandon hope yet00:07
lazyPowerand dont let end users mistake juju for just a "deploymetn" solution. we're doing lifecycle management in charms and scaling - which is more than just "deployment"00:07
sebas5384lazyPower: I really hope that juju uses docker as a provider and protocol to upgrade and deploy their services00:08
lazyPowersebas5384: i just stopped in to check on offlines for the OCP demo - i'm goign to bounce out and finish my swap day. If you have any pressing questions about that feel free to hit up the list and i'll do my best to get back to you shortly :)00:08
sebas5384lazyPower: sure! thanks :)00:09
sebas5384lazyPower: i'll be waiting that article about the future of juju and docker o/00:10
=== kadams54-away is now known as kadams54_
=== kadams54_ is now known as kadams54-away
=== kadams54-away is now known as kadams54_
=== kadams54_ is now known as kadams54-away
=== kadams54-away is now known as kadams54_
=== kadams54_ is now known as kadams54-away
jobot@lazyPower hello06:47
lazyPowerjobot: hi06:48
jobotoh hi, I had discussed a charm with you on the e-mail list earlier, and was wondering if you had any time to discuss it06:48
jobotit was a suitecrm charm. I had trouble getting the database info to automatically populate during installation06:49
Muntanergood morning to everyone!08:33
MuntanerI'm trying to use the load balancer charm HAProxy for my charm. I set up everything, but when I try to access to the public IP of the load balancer, I get a 503 Service Unavailable. How can I diagnose my situation?08:34
Muntanermore info: if I try to connect directly to the units of my charm, the connection hangs08:42
lazyPowerjobot: hey sorry about the *extended* delay in reply08:44
lazyPowerjobot: i'm firefighting for a demo atm - I'd be happy to pick this up tomorrow?08:44
=== rogpeppe3 is now known as rogpeppe1
=== rogpeppe1 is now known as rogpeppe
turicastohi to all! o/09:05
turicastoguys I have some problem with haproxy .. can someone help me?09:07
Muntanermarcoceppi, ping09:37
bloodearnestbradm, heya, seems we are fixing the same issue in rabbit10:31
bloodearnestme: https://code.launchpad.net/~bloodearnest/charms/trusty/rabbitmq-server/add-nagios-service-groups/+merge/25179010:31
bloodearnestyou: https://code.launchpad.net/~brad-marshall/charms/trusty/rabbitmq-server/nagios-fixes-sync-charmhelpers/+merge/25155110:31
bloodearnestbradm, are you gonna be working on it soon?10:32
bloodearnesthmm, I have a simple apache2 charm-helpers sync MP: https://code.launchpad.net/~bloodearnest/charms/trusty/apache2/update-charm-helpers/+merge/25233110:34
bloodearnestcan I trigger an automated test run for it?10:34
Muntanercan anybody help me with HAProxy? I totally dunno what to do10:36
gnuoyMuntaner, what's the problem11:00
gnuoy?11:00
Muntanerhi gnuoy11:00
MuntanerI'm trying to use HAproxy to introduce load-balancing to my charm11:00
MuntanerI'm following the wordpress charm code11:01
Muntanerbut can't get my HAproxy to work, since I get a 503 error11:01
Muntanerand can't find useful logs11:01
Muntanergnuoy, need more infos?11:04
gnuoyMuntaner, what does /etc/haproxy/haproxy.cfg have in it ?11:04
Muntanergnuoy, paste incoming11:04
Muntanergnuoy, http://paste.ubuntu.com/10573891/11:05
gnuoyMuntaner, on the haproxy node what does "nc -zvw2 10.0.0.7 8080" return ?11:07
Muntanergnuoy, just a sec11:10
gnuoyMuntaner, fwiw the haproxy monitoring page is really useful to see the status11:17
Muntanergnuoy, I get  port 8080 (tcp) timed out: Operation now in progress11:17
Muntanergnuoy, how can I reach it11:18
Muntaner?11:18
gnuoyMuntaner, so it sounds like it is not a problem with haproxy. whatever you have attached to the haproxy is not serving content on 808011:18
Muntanergnuoy, that's the motivation of the 503 error?11:20
gnuoyMuntaner, yes, haproxy is saying none of its backends are available11:21
Muntanermh fine, my server is running on the 80 in fact gnuoy11:21
Muntanerhow can I set the correct backend?11:22
gnuoyMuntaner, when your charm joins with haproxy I think it should set a port if I remember correctly11:27
gnuoyMuntaner, the haproxy charm has a README with the details11:27
gnuoyMuntaner, yes, the README shows what to do in the "1. Single-Service Proxying" section11:28
Muntanergnuoy, thanks11:31
Muntanerlooking about it11:31
MuraliHi Jamespage11:37
Muntanergnuoy, seems to work now, thanks! how can I test my configuration to check if HAproxy is correctly working?11:40
AnzWhile trying to deploy the openstack bundle @ https://jujucharms.com/openstack/29  , I am getting the following error http://paste.ubuntu.com/10574023/11:41
gnuoyMuntaner, look at port 8080 on your haproxy node, it has a status page11:41
AnzI had earlier deployed this succesfully in the very same MAAS environment before11:42
Muntanergnuoy, I have nothing at 192.168.0.97:808011:42
gnuoyMuntaner, sorry, I meant port 1000011:43
Muntanergnuoy, I get a 403 Forbidden11:44
MuntanerI need to put a password, I guess11:44
gnuoyMuntaner, look at haproxy.cfg it has the credentials in it11:44
AnzCan someone please tell me what the issue is ?11:45
Muntanergnuoy, how should I give the password to haproxy?11:45
Anz2015-03-10 17:18:16 [ERROR] deployer.deploy: Invalid service placement mysql to lxc:juju-gui=0 2015-03-10 17:18:16 [ERROR] deployer.deploy: Invalid service placement rabbitmq-server to lxc:juju-gui=0 2015-03-10 17:18:16 [ERROR] deployer.deploy: Invalid service placement ceph-osd to juju-gui=0 2015-03-10 17:18:16 [ERROR] deployer.deploy: Invalid service placement neutron-gateway to juju-gui=011:50
philip_stoevmarcoceppi: I have the Galera Cluster charm in my own LP directory. What is the procedure to make it a reviewed/Featured charm?11:52
philip_stoevShould I start by filing a ticket at https://bugs.launchpad.net/charms/+filebug? If yes, then what title/tags should I give it?11:52
Muntanergnuoy, seems working12:01
Muntanergnuoy, my HAproxy is at 192.168.0.97. When I go on this url, it auto-redirects me to 192.168.0.93: is this the expected behaviour?12:01
Muntaner(92 and 93 are the units of my web service)12:02
gnuoyMuntaner, That is not expected and I don't think it's haproxy doing the redirect. It'll be the web service12:03
Muntanergnuoy, so I should use the web service remaining on the proxy IP?12:03
AnzHi Jamespage13:04
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
mwakheya14:07
Muntanerhi guys14:48
MuntanerI have a problem with nova security groups and juju14:48
MuntanerI have 100 security groups available in my project14:48
Muntanerbut Juju only uses 10 of them and then gives me errors if I try to launch new VMs14:48
Muntanerany suggestions?14:56
=== jorge is now known as jcastro
mbruzekMuntaner: that is a question for the OpenStack charmers like jamespage coreycb or beisner15:11
jamespageMuntaner, check your security group rule quota15:11
Muntanerjamespage, it is 10015:12
Muntanerjamespage, you mean in nova?15:12
jamespageMuntaner, well that depends15:12
jamespageMuntaner, are you using neutron security or nova security?15:12
jamespageMuntaner, also security groups and security group rules are separate quota items in neutron15:13
Muntanerjamespage, nova security15:13
jamespageMuntaner, same applies in nova15:13
beisnermay also be worth noting bug 1335885 if doing repetitive deploys (there's a potential for quota consumption there)15:17
mupBug #1335885: destroy-environment reports WARNING cannot delete security group <cloud-installer> <destroy-environment> <landscape> <openstack-provider> <security> <juju-core:Triaged> <https://launchpad.net/bugs/1335885>15:17
jobot lazyPower: np, yeah I went to sleep. Try to catch you later today.15:43
whitto hell with vendoring charmhelpers... when do we get resource streams?15:44
Muntanerhey jujuers16:15
MuntanerI need to set which user the mysql charm is gonna use16:15
Muntanerbecause I need it to be shared between many charms16:15
Muntanercan I do that?16:15
DrewTI've run into an issue when using the openstack-installer (and landscape) where the Ceph charm is trying to use the various removable media devices on the boxes as block storage16:30
DrewTI have submitted bug: https://bugs.launchpad.net/charms/+source/ceph/+bug/142009416:30
mupBug #1420094: Ceph install fails by using removable devices <cloud-install-failure> <cloud-installer> <landscape> <ceph (Juju Charms Collection):Triaged> <https://launchpad.net/bugs/1420094>16:31
DrewTbut, is there any way I can force the ceph charm to only use a specific block device and ignore everything else?16:31
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
* lamont is doing battle with juju-local and losing: chown: invalid user: ‘ubuntu:ubuntu’16:58
lamontanyone wanna help a juju-local noob?16:59
lamont(anyone happen to have a working type:local juju/environments.yaml snippet they can share?17:03
=== kadams54 is now known as kadams54-away
marcoceppilamont: sure, what's up?17:10
lamontmarcoceppi: tossed you a paste with what I'm seeing, and what I have.. clearly, it's not right.17:11
lamontclue would be appreciated17:11
redelmannhi, im having some troubles with juju 1.22-beta417:13
marcoceppilamont: that's weird17:13
redelmannit was working fine17:13
lamontmarcoceppi: verily17:13
marcoceppiredelmann: what are you seeing?17:14
redelmannnow it always say: cannot read info: lock timeout exceeded17:14
marcoceppilamont: can you boostrap with --debug and -v flags?17:14
redelmannfrom one moment to another17:14
marcoceppiredelmann: when trying to do?17:14
lamontah, that might be better than the strace -ff output I just created17:14
redelmanni already try17:14
redelmann2015-03-10 17:14:49 INFO juju.cmd supercommand.go:37 running juju [1.22-beta4-trusty-amd64 gc]17:15
lamontmarcoceppi: would it be signifcant to say that I'm running vivid?17:15
redelmann2015-03-10 17:14:49 INFO juju.utils.fslock fslock.go:146 attempted lock failed "env.lock", reading, currently held: reading17:15
redelmann2015-03-10 17:14:50 ERROR juju.cmd supercommand.go:411 there was an issue examining the environment: cannot read info: lock timeout exceeded17:15
marcoceppilamont: maybe, but it's good to know17:15
redelmannim using lxc on local machine17:15
marcoceppiredelmann: for future multiline pastes it'd be useful to use http://paste.ubuntu.com17:15
redelmannmarcoceppi: ok, sorry17:16
marcoceppiredelmann: there's an issue trying to get a lock on your environment. Is this when trying to bootstrap?17:16
redelmannmarcoceppi: http://paste.ubuntu.com/10575661/17:17
lamonthttp://people.canonical.com/~lamont/bootstrap.debug <-- marcoceppi17:17
redelmannmarcoceppi: no, i was working without any trouble, after deploy one ganglia instance it start to faild17:17
redelmannmarcoceppi: after that i couldn't do anything17:18
marcoceppiredelmann: can you run the following: `sudo apt-get install pastebinit; sudo initctl list | grep juju | pastebinit`17:18
redelmannhttp://paste.ubuntu.com/10575679/17:19
marcoceppilamont: can you (after cleaning up the file) paste ~/.juju/environments/local.jenv ?17:19
marcoceppiredelmann: you already have an environment running, running a bootstrap will fail. Can you run `juju status` ?17:19
lamont"~/.juju/environments/local.jenv" [New File]                                                                                                                                                                0,0-1         All17:20
marcoceppidamn, I thought that was going to be it17:20
redelmannmarcoceppi: http://paste.ubuntu.com/10575695/17:21
lamonthttp://paste.ubuntu.com/10575698/ <-- marcoceppi the actual and for true environments.yaml stanza, albeit redacted17:21
marcoceppiredelmann: did you upgrade your juju client recently after bootstrapping that environment?17:22
marcoceppilamont: you can omit the authorized-keys-path, it's redundant as ~/.ssh/id_rsa.pub will be uploaded as part of Juju's logic17:22
redelmannmarcoceppi: no, i was just testing some local charms17:22
marcoceppimine is just type: local and admin-secret17:22
marcoceppiredelmann: what does `juju version` produce?17:22
redelmannmarcoceppi: 1.22-beta4-trusty-amd6417:23
redelmannmarcoceppi: i cant destroy enviroment too.17:24
marcoceppiredelmann: can you try `juju destroy-environment -y --force local` ?17:24
redelmannmarcoceppi: running with --force: ERROR cannot read environment info for "local": cannot read info: lock timeout exceeded17:24
marcoceppiredelmann: well, we can clean it up manually, this is highly irregular17:25
redelmannmarcoceppi: sound like mongodb problem?17:25
marcoceppiredelmann: possibly, lets see if this helps it recover17:25
marcoceppiredelmann: try `sudo restart juju-db-redelmann-local; sudo restart juju-agent-redelmann-local`17:25
* lamont decides to confirm that openstack environments bootstrap, since this is a reinstalled box, after all17:25
lamontjuju bootstrap -e openvpn17:25
lamontLaunching instance17:25
lamontseems to be17:25
marcoceppilamont: yeah, it's just with your local, and it's trying to chown ubuntu when there's really no need17:26
redelmannmarcoceppi: same problem, unable to connect to enviroment "local"17:26
marcoceppiredelmann: okay, so manual clean up it is. If you want to "destroy" local do the following:17:27
redelmannmarcoceppi: ok, im "listening"17:27
* marcoceppi is typing17:27
marcoceppiactually, just run this17:28
marcoceppihttps://github.com/juju/plugins/blob/master/juju-clean17:28
redelmannmarcoceppi: this is the second time it happend to me, the first time I thought it was a change of ip17:28
redelmannmarcoceppi: im connecting eth0 with lxcbr0, and sometimes dhcp gives me a different ip for lxcbr017:30
marcoceppiinteresting, that shouldn't cause an issue since technically bootstrap node is on localhost17:31
marcoceppibut it might be actually17:31
lamontmarcoceppi: is there a good way to make it stop trying to do that?17:32
marcoceppilamont: I haven't the slightest, this is a first for me17:32
redelmannmarcoceppi: one last quesion: is necessary to run "--upload-tools" in bootstrap?17:34
redelmannmarcoceppi: http://paste.ubuntu.com/10575811/17:38
redelmannmarcoceppi: Still same problem after clean17:38
redelmannmarcoceppi: maybe deleting .juju/enviroments/local.jenv17:38
redelmannmarcoceppi: i solved it17:39
marcoceppiwhat was it?17:39
=== kadams54 is now known as kadams54-away
redelmannmarcoceppi: env.lock direcory inside enviromens17:40
redelmannmarcoceppi: http://paste.ubuntu.com/10575825/17:41
marcoceppiinteresting17:41
redelmannmarcoceppi: think i destroy my enviroment for nothing :P17:41
marcoceppienv.lock is a new direcetory17:41
marcoceppiI'll add it to the juju-clean script17:42
redelmannmarcoceppi: Ok, after that i needed to run juju-clean again17:42
=== kadams54-away is now known as kadams54
redelmannmarcoceppi: thank for the help17:57
lamontmarcoceppi: at what point should I see juju fire up a jujud on my machine?  (I don't have one)18:13
marcoceppilamont: there's a line in the local output that says something to the effect of "starting agent"18:15
hazmatlamont: basically it should be there as soon as cloud init finishes, if not you should check the cloud-init-output.log in /var/log/18:15
hazmatassuming this isn't the bootstrap node18:15
hazmatif it is the bootstrap node.. bootstrap with --debug and you'll see the ssh interaction18:16
lamontsudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? <-- I wonder if that's relevant18:18
lamontoh haha.  strace18:18
=== kadams54 is now known as kadams54-away
lamonthazmat: http://paste.ubuntu.com/10576054/ hazmat: what I see is it getting completely lost looking for tools, and then things get weird18:25
=== kadams54-away is now known as kadams54
hazmatlamont: ic. that just looks a  juju bug with vivid, it looks like default user ubuntu isn't in that cloud image18:26
lamonthazmat: can I trivially force it to only use trusty? or does lxc mean that it must use vivid?18:27
lamontI just want it to bootstrap, man.  well, and then do a bunch of deploys, I guess18:28
hazmatlamont: so try just adding an ubuntu:ubuntu user on the host,18:28
lamontdoes that user need privileges?18:29
hazmatlamont: so your host is vivid? .. it looks like its trying to bootstrap on the host and assuming the 'ubuntu' user is there18:29
hazmatlamont: probably .. password less sudo18:29
lamonthost is vivid, ubuntu user never has been there18:29
hazmatyeah.. that's just broken/buggy imo18:29
hazmatshouldn't assume that for local provider18:29
hazmatonce you get it working you can use any series, normally series gets picked up from the charm unless your doing add-machine in which case you can pass it explicitly18:30
lamonthttp://paste.ubuntu.com/10576080/ <-- I suppose that constitutes "progress"18:31
* hazmat would stalk some juju devs18:31
hazmatlamont: i just pinged folks on #juju-dev hopefully somebody turns up18:33
lamontta18:33
lamontfwiw, no mongo processes running, though juju-mongodb has been installed18:33
jrwrenlamont: its an upstart not found message, could this related to yesterday's move to systemd?18:34
lamontjrwren: quite possibly18:34
ericsnowlamont: juju on vivid has been working fine for a while, but vivid is about to (or just did) switch to booting with systemd18:34
lamontericsnow: 2015-03-09 (yesterday)18:34
lamontif this is a known thing that'll be fixed for vivid sometime soon, I'll just keep using openstack for testing18:35
ericsnowlamont: we are wrapping up adding support for systemd in the next juju release (1.23)18:35
ericsnowlamont: also, there's a know issue where a vivid container (running systemd) won't work on a non-vivid host (trusty and utopic can be made to work though)18:36
ericsnows/know/known18:37
lamontericsnow: does that make the workaround for the meantime "use an utopic schroot"?18:37
* lamont actually wants trusty containers18:37
lamontmaybe I'll just use a trusty box, instead of my vivid box18:37
lamontsometimes, bleeding edge sucks18:38
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
ericsnowlamont: trusty works if you've updated a few packages out of "trusty-updates"18:40
ericsnowlamont: see https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/134702018:40
mupBug #1347020: systemd does not boot in a container <systemd-boot> <lxc (Ubuntu):Fix Released by stgraber> <lxc (Ubuntu Trusty):Triaged by stgraber> <https://launchpad.net/bugs/1347020>18:40
ericsnowlamont: for testing I've been running local provider in a vivid KVM18:41
lamontericsnow: ah, that has potential18:41
lamontericsnow: meaning your "juju-local on vivid" test box is a kvm?18:42
ericsnowlamont: anyway, I'm hoping to land the last patch for systemd-on-vivid support in a little bit18:42
ericsnowlamont: yep18:43
ericsnowlamont: but most of my testing has been limited to just bootstrapping18:43
lamontericsnow: I would be most interested in being a tester for you.18:48
lamontbut first, lunchtime18:49
=== roadmr is now known as roadmr_afk
=== kadams54 is now known as kadams54-away
=== roadmr_afk is now known as roadmr
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
fraterlaetushi21:44
fraterlaetusI just set up a private cloud using canonical/landscape/openstack21:44
fraterlaetusas part of it, it created me a juju endpoint.21:44
fraterlaetusHow do I: A: get credentials for the juju endpoint; B: start playing?21:45
fraterlaetusELI5 please?21:45
fraterlaetusDoes anyone know how to create credentials for juju in openstack?21:56
fraterlaetus^^ ?22:19
=== kadams54-away is now known as kadams54
jobotlazyPower: hello, how's it going?23:02
=== kadams54 is now known as kadams54-away
=== cmagina_ is now known as cmagina
fraterlaetus:(23:46
=== kadams54-away is now known as kadams54

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