/srv/irclogs.ubuntu.com/2016/10/07/#juju.txt

lutostagstokachu: that did it. thanks!00:06
stokachulutostag: np00:06
stokachulutostag: it's since been fixed i dont remember what beta release though00:07
=== scuttlemonkey is now known as scuttle|afk
bdxstokachu: generating and configuring the cernts is a great deal of maunual overhaul I go through with almost every app that uses layer-nginx, or has a frontend or endpoint of any kind for that matter00:34
bdxstokach: do you think it would be wise to tls/ssl functionality as as option in layer-nginx?00:35
bdxstokachu:^00:35
stokachubdx: yea00:36
stokachuthink it's a good idea00:36
bdxstokachu: should the target directory to store the crt/key in be specified as a config or option?00:51
bdxI would think option ... bc it is something that isn't going to be modified really ...00:51
bdxpost deploy00:52
stokachubdx: yea should just drop the certs in the normal locations for nginx to look00:52
stokachuyou can make it an option but just default to /etc/ssl/certs00:54
bdxstokachu: like this -> http://paste.ubuntu.com/23287010/ ?01:05
stokachubdx: quick glance looks good01:05
=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
=== frankban|afk is now known as frankban
neiljerramrc3 with GCE: lots of my overnight tests failed because of machines going to 'down' state and never coming back.  Wonder if anyone else is seeing that?  It could be a GCE problem, as much as Juju.09:03
=== rogpeppe1 is now known as rogpeppe
zeestratmarcoceppi: Are you still the maintainer for the Nagios charm? If not, do you know who could look at https://bugs.launchpad.net/charms/+source/nagios/+bug/1605733 ?11:57
mupBug #1605733: Nagios charm does not add default host checks to nagios <family> <nagios> <nrpe> <unknown> <nagios (Juju Charms Collection):New> <https://launchpad.net/bugs/1605733>11:57
herb64Hi all, trying to bootstrap into an openstack environment, but getting "authentication failed" and I found this is because "certificate signed by unknown authority"...12:24
herb64also tried juju --debug  bootstrap --config ssh-hostname-verification=false mycontroller cloudname12:24
herb64any way to disable that certificate check, similar with "--insecure" options in curl .. ?12:25
magicaltroutthe mesos docker integration just mimics docker commands in C13:02
magicaltrouthow hard can it be to do the same with LXC?!13:02
magicaltrout(famous last words)13:02
jrwrenmy mimics, do you mean fork/exec/pipe?13:03
SpauldingHello!13:05
SpauldingIs there any folk that has working charm with xenial + ansible?13:05
Spauldingxenial does not have python2 ... and basically i'm stuck cause i don't know how to run something like "pre-install" hook13:06
magicaltroutjrwren: https://github.com/apache/mesos/blob/master/src/docker/docker.cpp#L143713:07
magicaltrouti'm not a C coder13:07
magicaltroutbut that looks like its just running some commandline stuff13:07
jrwrenmagicaltrout: i agree. subprocess is a giveaway13:08
magicaltroutSpaulding: i dont' know of any, but i know people do do it from time to time. marcoceppi or lazypower should be able to help when they're around13:08
magicaltroutindeed jrwren, so I figure fork, copy, change the commands to run LXC/LXD stuff compile and run LXD on Mesos ;)@13:09
Spauldingcheers magicaltrout !13:09
Spauldingso now i need to wait ;)13:09
magicaltroutSpaulding: a two pronged attack never hurt either, but people dont' do it, dump a question on the juju mailing list as well13:09
magicaltroutas people monitor that and not irc and visa versa13:10
Spauldingmagicaltrout: hmm... i might give a shot, but i also have an option to have direct help from juju dev's13:10
magicaltroutwell they are the people on the mailing list :)13:11
Spauldingthey should i guess :)13:11
jrwrenSpaulding: a common pattern is for hooks/install to be a shell script which installs requirements and calls python2 install.real at the end.13:11
Spauldingok, let's give a try with mailing list :)13:11
Spauldingjrwren: exactly - but basically it's like a common scenario..13:12
Spauldingand i wanted just to use ansible to bootstrap anything i want13:12
Spauldingbut xenial is different (no python2) so basically i need to hack it dirty...13:12
jrwrenSpaulding: sadly, I think all of the charms I knew which were using ansible, moved over to reactive, so I have no good examples. They may never have been updated for xenial when they were ansible.13:17
Spauldinghmm...13:17
Spauldingwe've got really big ansible..13:17
Spauldingand it would be much easier to use it instead repeating whole thing i.e. in bash13:18
Spauldingi also tried to search some projects in google / github13:18
Spauldingso far - no luck...13:18
Spauldingbtw. reactive looks really promising...13:21
Spauldingi think it might be a good idea to use reactive and invoke ansible from it13:22
holocronhey, sorry about the drop off yesterday, and I've since gotten a decent client that'll log the chat for me. Is there an irc chat log somewhere I can review what was said yesterday?13:28
magicaltroutholocron: i have a decent backscroll 2 mins i'll pastebin what I saw13:29
holocronmagicaltrout thanks13:30
magicaltrouthttps://gist.github.com/buggtb/7b96fa7f023aa3749b4c5c3cc67d3e0c13:31
holocronappreciate that13:32
marcoceppiSpaulding: o/13:32
marcoceppiSpaulding: you can install python2 during bootstrap for reactive charms by adding the following to your layer.yaml13:33
marcoceppiSpaulding: https://gist.github.com/marcoceppi/8743453bfce28be97d71d5706bda0ab813:35
marcoceppithe layer.yaml options are evaluated by the reactive framework prior to any reactive code running13:35
marcoceppithis allows you to bootstrap any deps needed for either apt packages or pip packages to run hook code13:36
Spauldinglovely!13:36
magicaltroutnearly as lovely as marcoceppi himself....13:37
Spauldingand then i can tell reactive to run ansible playbooks? right?13:37
magicaltroutyeah you can do stuff like @when{myplaybook.notinstalled}13:37
magicaltroutdef install_the_best_playbookever:13:38
Spauldinggreat!13:38
Spauldingfinally I'm out from the dark hole..13:39
holocronso, it seems that i've run into an odd problem with cs:xenial/rabbitmq-server. It starts up normally after deploy, but at some point the local nodename changes from "ubuntu" to "juju-..." and it starts to fail with "unable to connect to node rabbit@ubuntu: nodedown"13:39
magicaltroutholocron: is that lxc? or something else?13:40
holocronyeah, lxc.. or lxd i suppose13:40
magicaltroutyeah, beisner told me they facilitate a reboot of rabbit-mq to fix that (I think,I was a bit drunk)13:40
magicaltroutalso RC3 supposedly has some hostname fixes that might resolve that issue also holocron13:41
magicaltroutso if you're not on RC3, upgrade if you can13:41
holocroni'm on rc313:41
holocronokay i'll try a reboot13:41
magicaltroutthats supposedly in the charm13:41
holocronjust fyi: the relevant log snippet https://gist.github.com/vmorris/402e946bbf8d82c1e46e1c2123d29c7e13:41
magicaltroutnot some manual interaction13:41
holocronah hrm13:41
magicaltroutdunno, although beisner and some others will do. Although I'm surprised RC3 doesn't resolve it if the change log wasn't lying13:42
magicaltroutadmcleod: you coming to ApacheCon then?13:48
admcleodmagicaltrout: im not sure yet14:09
magicaltroutgive me warning if kjackal is going14:10
magicaltroutneed to pack prozac14:10
beisnerhi magicaltrout - hmm nope no rmq reboots happening here.  but the beer was good :-)14:13
holocronbeisner : are you saying that no reboots are happening in the rmq charm, or in my log snip? I have a clean model with single rabbitmq-server deployed, and it seems to be okay (but so was the one that came in with the openstack-on-lxd bundle)14:18
beisnerholocron, in our CI, not rebooting rmq14:19
holocronokay, any idea what might've gone wrong here? https://gist.github.com/vmorris/402e946bbf8d82c1e46e1c2123d29c7e14:19
holocronbeisner I spoke too soon, simple deploy failed in the same manner, as did a scale of the original unit14:23
holocronhttps://gist.github.com/vmorris/4020f3299134e4e8a287e233e3d18dac14:25
magicaltroutclearly too much beer14:42
holocronmagicaltrout: impossible14:43
magicaltroutwell not "too much beer", but "too much beer... to remember the conversation properly"14:43
holocronlol that's definitely possible14:44
lutostagcory_fu_: with the charm build thing I ran into yesterday... this fixes it for me, https://github.com/lutostag/charm-tools/commit/b41f5a584809f547adfb0db917d5e9a2cc90950014:50
lutostag(trying to run the charm-tools make test, but it keeps falling over, not due to me I believe'14:51
lutostag(although I was abusing the wheelhouse -- for application rather than charm deps, so went ahead and made my own instead)14:52
cory_fu_lutostag: The problem with using 'download' instead of 'install' is that I don't think it's available with the pip version in trusty.15:03
lutostagcory_fu_: ah, ok, I'll keep playing with it then15:04
cory_fu_lutostag: We may just have to put a condition on the series, though.  But I would appreciate seeing that tested on trusty15:04
cory_fu_kwmonroe: https://github.com/apache/bigtop/pull/137 updated15:07
kwmonroethanks cory_fu_!15:07
lutostaganybody know about juju storage (and how to use it in 1.x)?15:56
lutostagfor instance, I have a postgresql charm that theoretically accepts storage, and its already deployed, how would I add storage to it?15:57
lutostags/charm/unit15:57
lutostagrick_h_: ^^ who is storage-knowlegeable?16:01
=== frankban is now known as frankban|afk
bdxlutostag: if/when you find some answers, will you put them on blast?17:01
lutostagbdx: yeah I'll submit an askubuntu.com for sure17:02
cory_fu_kwmonroe, petevg: You guys notice this item in the RC3 announcement?  "* LXD containers now have proper hostnames set"17:13
petevgcory_fu: awesome! I'm gonna fire off a test of the hadoop bundle against localhost :-)17:16
petevgcory_fu: sadly, it looks like our problem might not be fixed. Got a suspicious failure in my logs: http://paste.ubuntu.com/23289933/ (This is from one of the hadoop slaves, when deployed against lxd containers on xenial.)17:42
kwmonroepetevg: what in the heck is unallocated.barefruit.co.uk?  is that really the name you get from running 'hostname' on that container?17:56
petevgkwomonroe: that's what was in the logs ...17:57
kwmonroecory_fu_: remember how yesterday i was giving you grief about the slave unit status message being wrong because of the spec match?  well, that was true, but you were right(er).  when a charm is undergoing a long hook (like install) before -joined, the other side won't know it's .joined yet :(17:57
petevgI tore down the container.  Will try again in a bit, and poke at it some more.17:57
cory_fu_kwmonroe: Yeah, I knew that long-running hooks would block the .joined, but the spec issue has potential to make it inaccurate even longer.  Anyway, we were both right17:59
kwmonroecory_fu_: can you think of a way to detect a unit's relations without relying on the states being set?18:02
cory_fu_kwmonroe: No.  Before the -relation-joined hook fires, I don't think there's any possible way for the charm to know about the relation.  I don't think even relation-ids would work18:03
PCdudehi all :)18:17
PCdudeI have a fresh xenial (16.04, server version) install in a VM18:18
PCdudeI want to try out JUJU (yes never used before) so I followed the following instruction18:18
PCdudehttps://jujucharms.com/docs/devel/getting-started18:18
PCdudewhen I type "groups" it does not show me the LXD in the list18:19
PCdudeand when typing newgrp lxd it gives me "group lxd does not exist"18:19
cory_fu_PCdude: You might have to log out and back in, or try the `newgrp lxd` command to refresh in-place18:20
PCdudecory_fu_: tried both, I restarted and tried the "newgrp lxd"18:20
cory_fu_PCdude: Can you confirm that lxd is installed with, e.g., `dpkg -l lxd`?18:21
cory_fu_It should have been brought in as a dependency of Juju, though18:22
PCdudecory_fu_: it indeed is not installed, and as u said I thought that was automatically installed18:23
PCdudebut apparently not haha18:23
PCdudemanual install?18:23
PCdudesudo apt install lxd?18:23
cory_fu_Yep\18:24
kwmonroePCdude: what does 'juju version' say?18:24
PCdudecory_fu_: lxd is present now lets continue the install and see what JUJU is capable of thanks18:25
PCdudekwmonroe: let me check18:25
PCdude2.0-rc3-xenial-amd6418:25
kwmonroeok - that's good PCdude.  just making sure it was of the 2.0 flavor18:26
PCdudekwmonroe: yeah, I was aware of the 2.0 version. I added the PPA and check with "apt-cache" that the right version was being installed18:26
kwmonroecool PCdude.. strange that it didn't bring lxd in as a dep18:27
PCdudeapart that it is solved now, how can this happen?18:27
holocronI always have to "usermod -aG lxd holocron" and relog to pick up the change18:27
PCdudepersonally, I think its vmware. I had strange problems with ESXI before, maybe something strange happened there18:28
PCdudeI used there preseed option for a change, not gonna do that again...18:28
holocronoh, you didn't have LXD installed, just catching up :D18:29
PCdudeholocron: haha np18:31
PCdudeany amazing cool bundles or charms I have to check out as a newbie? :D18:33
holocronwhat do you want to do?18:34
holocronghost is an okay one to poke at18:34
PCdudewell I have openstack running on ubuntu, but I want to tweak some more. Since it uses JUJU maybe something in that field?18:35
PCdudeholocron: from what I can see is that something similar to wordpress?18:36
holocronyeah, though it's all node.js18:36
holocronPCdude, you might look into the openstack-on-lxd bundle if you're wishing to dig into openstack, juju and lxd18:37
PCdudeah cool, yeah let me check that out18:37
holocronuse these instructions; http://docs.openstack.org/developer/charm-guide/openstack-on-lxd.html18:38
PCdudebtw, I have the strong feeling that the autopilot function (from landscape) just uses the openstack bundle from JUJU. is somebody here that can confirm that?18:39
PCdudeholocron: thanks, will look into that link18:39
holocronthat's the impression i got as well PCdude, though i haven't actually used autopilot myself18:41
PCdudeholocron: well it is quick and painless, but dont start asking questions about changing something then u are stuck in landscape. easy=10 customization=2 , but I think I can go a level lower to JUJU and configure there, but not sure if autopilot and landscape like that very much18:43
PCdudealso for me the 10 licenses are good enough, but for  something bigger u have to pay alot18:44
holocronPCdude I see. I don't use landscape either ^^ You'll find the openstack charms have a wide variety of configuration options, probably most of what you'd want to tune18:47
PCdudeholocron: I was thinking about the following for my openstack install: rn, I have 2 machines which is of course way to little to run good enough for the whole infrastructure,but I was planning on placing it on those 2 and when in the future adding machines slowly moving services from one of those 2 and place it on the new one with JUJU. Until I have say lets say 5-6 servers running without anything virtual. Would that be possible? and I mean moving it live, so18:49
holocroni suppose it's possible PCdude.. having your machines in a MAAS cluster might make it simpler, though I'm no expert in the matter18:52
PCdudeholocron: me neither :) , we will see. where do u use JUJU for?18:53
holocronpcdude: just starting to explore it myself, but specifically i'll be using it for openstack as well, considering moving some of my workload deployment automation to charms18:54
PCdudehaha cool, u have a working install with something else now? or this is going to be ur first try?18:55
holocroni have a few ibm cloud manager with openstack installations but they're rapidly going away18:55
holocrona few custom rolled installations of mitaka being maintained by the team too at the moment18:56
PCdudeso u are moving away from something I guess,  what did u use before?18:57
holocronas i said: ICM18:57
holocronmaybe the server reboot caused the message to get lost, i'll resend18:58
holocroni have a few ibm cloud manager with openstack installations but they're rapidly going away18:58
PCdudeah check I see18:58
PCdudeI got the last one18:58
holocronif you're asking about what i'm using for hypervisor, it's KVM18:58
holocronbut really what i need is a good way to install openstack that's easy and repeatable.. juju is really attractive to me for this purpose18:59
PCdudeyeah, I am using ESXI right now, but wanna use openstack with KVM18:59
holocronand to restate again, i'm interested in migrating some of my workload deployment automation into charms19:00
PCdudeamen... I so agree on that point. When I first opened the docs I thought, how is anyone in this world even capable of doing this onces haha19:00
holocronso that's on the radar19:00
PCdudeholocron: have u looked at something else besides openstack?19:02
PCdudekubernetes maybe19:02
holocronkubernetes doesn't really map across to openstack imo19:03
holocronit's more akin to juju or docker, i have looked at docker for some things (hyperledger specifically)19:04
PCdudeyeah I agree, but there have been some projects that it kind of makes it that way but with containers. I have seen some videos that makes it in the grey area.19:05
PCdudeuhm ok, let me check hyperledger19:05
holocronoh hyperledger is not for workloads ;) it's smart contract stuff19:05
PCdudehaha, I was already reading and thought uhm, that cant be right19:08
PCdudesome servers are seriously restarting here19:10
holocronthey're rolling the whole freenode network19:10
PCdudeyeah, I guess19:11
PCdudeuhm, what is a "model" in JUJU?19:12
roadmrPCdude: A Juju model is an environment associated with a controller19:13
roadmrPCdude: https://jujucharms.com/docs/2.0/models19:13
PCduderoadmr: yeah, I read that too, but it is the place where the charms are fired up?19:13
PCdudeits like a subnet for charms?19:14
PCdudeso when I type "juju list-controllers" I see 1 machine running. is that the controller of the models?19:20
holocronPCdude: generally yep19:21
holocronoh wait, i think i understand your question, you have 1 under "machines" ?19:22
holocrontry "juju status" and "juju show-machine 0" -- assuming that machine 0 is the one machine listed19:23
PCdudeholocron: yeah, I think that is what it is19:27
PCdudedeploying ghost rn19:27
magicalt1outhttps://lists.apache.org/thread.html/7b215705d3b222336d3989782722715e43af31af720f69db7ad19911@%3Cdev.mesos.apache.org%3E i mention juju and lxc and suddenly the thread goes dead19:54
magicalt1outits like they know!19:54
=== zeus is now known as Guest91639
rick_h_magicalt1out: heh, did you cause trouble?19:57
=== Guest91639 is now known as zeus`
=== zeus` is now known as zeus
magicalt1outwell its a bit weird when people ask for the use case, i give it and get crickets19:58
rick_h_you broke some rule of fight-club19:58
magicalt1outsilly people, why do people just want application containers19:58
magicalt1outthis maybe true rick_h_19:58
hmlgood afternoon - i have an juju charm who’s deploy failed because the machine didn’t spin up.  remove-application isn’t working….20:01
hmland it’s causing havoc: ERROR could not filter units: could not filter units: unit "juju-gui/0" has no assigned machine: unit "juju-gui/0" is not assigned to a machine (not assigned)20:01
hmlhow do i get rid of it?  please20:02
=== spammy is now known as Guest28928
rick_h_hml: can you mark it resolved and then remove it?20:03
hmlrick_h_: ERROR unit "juju-gui/0" is not in an error state20:04
rick_h_hml: and when you do remove-application juju-gui it gives ou the filter erro?20:04
hmlhml: no - it gave no error - i got the filter error when trying to do a juju status of a different application.20:05
rick_h_hml: maybe try juju retry-provisioning X where X is the machine that should have come up that failed?20:05
rick_h_hml: and see if you can get the application up20:05
rick_h_hml: and then cleanly remove it20:05
hmlrick_h_: the machine never came up, how do i give the retry-provision a machine?20:06
rick_h_hml: well is there a machine record that would show in status that it tried and is marked with a failure status?20:07
rick_h_hml: how many machines are currently deployed? Maybe try to start with what we think it might be. 0, 1, etc?20:07
rick_h_hml: other idea might be to try to juju add-unit juju-gui20:08
rick_h_hml: and see if you can get it to come up with a unit and help clear up the error space there20:08
hmlrick_h_: i’m at 16 machines…20:08
=== CyberJacob is now known as Guest90146
=== med_ is now known as Guest94967
rick_h_hml: k, might try the juju retry-provisioning 17 and see what it does20:08
=== beisner- is now known as beisner
rick_h_hml: or try the add-unit trick and see if that gets things to a good place20:09
hmlrich_h_: ERROR cannot add unit 1/1 to application "juju-gui": cannot add unit to application "juju-gui": application is not alive20:09
=== Guest94967 is now known as medberry
hmlrick_h_: retry-provisioning on machines 16-21 - machine not found.20:10
rick_h_hml: ok20:10
rick_h_hml: add-unit trick is all I can think of from there then. Will need to file a bug and see if we can repro and make it more resilient20:10
hmlrick_h_: so is there any way around the filtering message?  i need to resolve issues on other charms, this is standing in the way20:12
rick_h_hml: can you do juju status without any filters?20:13
rick_h_hml: assuming that's also not working?20:13
rick_h_hml: maybe juju status --format=yaml and see if it bypasses any of the filter work?20:13
hmlrick_h_: status without filters is working20:13
rick_h_hml: ok, so there's nothing I can think to bypass an error using filters. Just ways around it by using jason output plus a tool like jq to get the filtering done outside of juju20:14
hmlrick_h_: format didnt’ work - i’m looking for more detail since nova-compute/0 machine is having troubles with the open vswitch20:14
rick_h_hml: grep the unit log file and see there? THings like status changes/etc should be in the log20:15
rick_h_hml: so juju ssh nova-compute/0 and then view /var/log/juju/unit-xxxxxx.log20:15
hmlrick_h_: got it20:16
rick_h_where the xxxx is something like nova-computer-020:16
hmlrick_h_: my favorite: “"leadership-tracker" manifold worker returned unexpected error: leadership failure: lease manager stopped”20:17
rick_h_hml: :/20:19
hmlrick_h_: is there a bug for that one, or am i just lucky to keep hitting it?20:21
=== xnox_ is now known as xnox
rick_h_hml: https://bugs.launchpad.net/juju/+bug/1616174 ?20:28
mupBug #1616174: Juju agents cannot start: failed to start "uniter" manifold worker: dependency not available <sts> <juju:Incomplete> <https://launchpad.net/bugs/1616174>20:28
rick_h_hml: has a potential thing to fix it. Sounds like we didn't get a good repro steps though if you have more details to add to the bug that'd be helpful20:29
hmlrick_h_: i’ve seen that bug, i wasn’t sure how to run those steps - i found another solution, but perhaps short term: http://www.astokes.org/juju/2/common-errors20:31
hmlkwmonroe: the units in question are running 2.0rc1 or were created with20:40
kwmonroeoptimism reinstated20:40
kwmonroehey rick_h_, can i specify bundle tags?  i'm pretty sure this result only comes up because 'bigtop' is in the name:  https://jujucharms.com/q/bigtop?type=bundle20:46
kwmonroei'm looking for tags simliar to what you'd do in a charm's metadata.yaml20:46
kwmonroebut i don't see where i'd specify that for a bundle20:46
=== kragniz1 is now known as kragniz
=== Guest28928 is now known as spammy
bdxcmars: I hooked it up -> https://github.com/cmars/juju-charm-mattermost/pull/2/files21:36
holocroni give up https://bugs.launchpad.net/charms/+source/rabbitmq-server/+bug/156327121:41
mupBug #1563271: update-status hook errors when unable to connect <landscape> <openstack> <rabbitmq-server (Juju Charms Collection):Confirmed> <https://launchpad.net/bugs/1563271>21:41
holocroni know i saw in the docs how to update a unit from local charm source, now i'm missing it21:50
holocronany help?21:50
kwmonroeholocron: juju upgrade-charm <foo> --path /path/to/new-charm22:04
kwmonroecory_fu: tvansteenburgh:  is tests.yaml deployment_timeout in seconds or minutes?  juju-deployer -t is seconds (https://github.com/juju-solutions/bundletester/blob/610801149ec214966b80e2766ca8760eb29a6f9e/bundletester/spec.py#L137) but the bundletester readme comment for this option is minutes.22:05
tvansteenburghkwmonroe: seconds22:06
kwmonroethx22:06
holocronkwmonroe thanks22:06
tvansteenburghkwmonroe: i don't see where it says minutes in the readme?22:07
kwmonroetvansteenburgh: https://github.com/juju-solutions/bundletester/commit/c88015b890cfd17fa10e375e3e394e57758b9e7d22:08
kwmonroetvansteenburgh: https://github.com/juju-solutions/bundletester/pull/6222:09
tvansteenburghkwmonroe: thanks22:11
kwmonroenp22:12

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