/srv/irclogs.ubuntu.com/2016/11/01/#juju.txt

=== mup_ is now known as mup
kjackalGood morning Juju world!08:18
kjackalDoes anyone know if there is  a REST api for Juju?09:55
=== dootniz is now known as kragniz
deanmanHi, is there a way to use `juju scp` to retrieve something from an LXD container and from a path where elevated access is required? I get `Permission denied` errors11:08
jhobbsdeanman: my usual approach is a juju ssh sudo cp and then a juju scp11:14
jhobbsor juju sudo chown or chmod, depending on circumstances11:14
jhobbs*juju ssh sudo chown11:15
deanmanjhobbs: Ok thanks I'll try that11:15
deanmanjhobbs: So first you ssh to that machine, you change owner of the file that you want to copy and then exit and run again juju scp, right?11:17
lutostagI can't seem to get juju plugins working... juju help plugins just says "ERROR unknown command or topic for plugins"11:18
lutostag(I'm not on the juju snap version)11:19
jhobbsdeanman: i use juju ssh to run the sudo command11:20
jhobbsdeanman: or juju run maybe it is :)11:20
jhobbsdeanman: so i'm never at a shell, i just use juju to issues the sudo commands to get permissions right before using juju to scp11:20
deanmanjhobbs: ok and i was wondering why juju help ssh doesn't show that you could run command ;-)11:21
* D4RKS1D3 hi to everyone :)11:34
aisraelo/12:44
skay_hi all, I'm using python-logstash and logstash-formatter and would like to send logs directly vs. going through a file. I've only found logstash-forwarder and filebeat charms. Is the only opion for now to write to a file?13:29
skay_I'm using python-logstash like so, https://github.com/vklochan/python-logstash#using-with-django13:31
bryan_atthi all, help on an issue is appreciated. This was reported by narindergupta for OPNFV - "pkg_resources.DistributionNotFound: The 'pip>=7.1.2' distribution was not found and is required by charm-tools" and is affecting all our deployments for OPNFV. Any ETA on a fix ?13:59
bryan_attThe deploy log is at https://build.opnfv.org/ci/view/joid/job/joid-deploy-baremetal-daily-colorado/502/console and I can also provide similar console logs from my deploys.14:00
aisraelbryan_att: does the machine have external network access?14:00
bryan_attaisrael: yes14:00
bryan_attaisrael: is that a symptom (no net access)? In our cases we have stable net access.14:01
aisraelbryan_att: It can be, but I'm not sure that's the case. Reading through your logs now14:02
aisraelbryan_att: Can you verify if python-pip is installed on that machine?14:08
bryan_atthttps://www.irccloud.com/pastebin/rLUuHLuR/14:08
aisraelOh wow, that's an old version.14:08
aisraelWhat's the OS/version of the machine?14:09
bryan_attUbuntu 14.0414:09
aisraelThat should be fine. Are all the packages up to date?14:10
bryan_attI just installed and updated it a week or so ago.14:11
bryan_attin the case of the OPNFV jumphosts I'm pretty sure they keep them up to date. But I can do a apt-get update / upgrade as a test if needed14:11
bryan_attalso pip install --upgrade pip if needed14:12
bryan_attshould I do that?14:12
aisraelThe later should fix it. It looks like the pip packaged in 14.04 is much older.14:13
aisrael^^ tvansteenburgh cory_fu14:13
bryan_attlater meaning the pip upgrade command?14:14
aisraelbryan_att: Yep14:14
bryan_attOK let me try that and I'll let you know how it goes14:14
deanmanWhere is the proper place to file a potential bug for juju, under github.com or somewhere else?14:16
aisraelbryan_att: One other question: have you added the juju/stable ppa on this machine?14:17
aisraeldeanman: https://bugs.launchpad.net/juju-core14:18
bryan_attaisrael: I believe it's added by the OPNFV JOID installer (MAAS/JuJu) but I can check with narindergupta. How do I check via the shell if it's added?14:18
narinderguptaaisrael, yes we have stable version of juju and we have CI for deployment. And it started breaking today. Till yesterday it was working, so may be charm-ttols got updated yesterday and does not work with old version of pip14:18
tvansteenburghmarcoceppi: ^14:19
aisraelnarindergupta: That does look to be the case. Apologies for the trouble! We're looking into it now.14:21
marcoceppinarinder`: I'm patching now14:57
marcoceppinarinder`: sorry about that14:57
bryan_attaisrael: I did a pip install --upgrade pip after apt-get update/upgrade and it looks like it's getting farther now, but I have no idea why... the pip upgrade ended with the same version installed (1.5.4) and the message "Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS" ???15:11
aisraelbryan_att: It turns out there is an issue with the latest release of charm-tools. It's being patched right now.15:12
bryan_attaisrael: thanks, appreciated!15:13
jcastrohey bdx15:35
jcastrohow's this working? https://github.com/jamesbeedy/charm-datadog-agent15:35
bdx@jcastro it works great16:51
bdxjcastro: I need to build out the integrations functionality ... its a bit daunting though, as there are quite a few of them16:53
bdxjcastro: https://github.com/jamesbeedy/charm-datadog-agent  currently only installs the agent16:53
junaidaliHi everyone, what will 'network-get --primary-address <binding>' return if we haven't deployed the charm with bind options.16:54
junaidaliis private-address is the expected output?16:55
bdxjcastro: I reverse engineered the curl -> sudo bash deal they have going on for their suggested install -> https://s18.postimg.org/t9pp3j6xl/Screen_Shot_2016_11_01_at_9_57_19_AM.png16:56
bdxjcastro: the layer does better ::16:57
bdx:-)16:57
bdxteam: I have a few general questions regarding juju <-> jenkins setup and integration. I'm currently building out the CI pipeline for our juju deployed apps, and was hoping to get some insight on how this might work at a high level17:01
bdxjcastro: possible topic for the summit ^17:02
bdxjuju <-> jenkins integration track17:02
jcastrobdx: yeah marco's been working on a datadog one too, I just got off the phone with him, he's going to sync up with you17:04
bdxjcastro: cool cool17:07
bdxjcastro: is there a platform I should use to make a formal track topic request, or just tell you?17:08
jcastroyou need to cfp as part of config management camp17:10
jcastroand make sure the box is checked for "juju"17:10
jcastrohttps://lists.ubuntu.com/archives/juju/2016-October/008087.html17:11
bdxthx17:14
marcoceppibdx: yo, sorry about that17:19
marcoceppiI use the layer for thesilphroad, but haven't gotten around to finishing is17:20
bdxmarcoceppi: huh, wha?17:25
bdxmarcoceppi: https://thesilphroad.com/ ?17:26
bdxhttps://thesilphroad.com/ is juju deployed?17:27
bdxand you use datadog to monitor it?17:27
bdxand you also have a datadog layer17:27
bdxwhich you use on that deploy?17:28
marcoceppibdx: were you not at the charmer summit :)17:28
marcoceppibdx: https://p.datadoghq.com/sb/a42d80f38-e1f5b6fc5e?tv_mode=true17:28
marcoceppihttp://blog.silph.io/17:28
bdxwtf .... SICK17:28
bdxlol17:29
bdxoh man17:29
jrwrenits my favorite small-software juju story ever. marcoceppi tells a great story.17:30
bdxhow did I miss this?17:30
marcoceppibdx: it was a lightning talk17:30
pragsmikeYou weren't at the charmers summit.17:31
marcoceppibdx: lets chat later this afternoon, I'd like to coordinate, because I can use your help and datadog is interested in giving us a repository up stream17:31
bdxmarcoceppi: I plan on making good use of datadog ... I'd like to get some primary integrations dialed in before I even start deploying it at all17:32
bdxmarcoceppi: sounds good17:33
pragsmikehey can anyone point me to docs about how juju decides which IP addresses to use in MAAS?17:33
marcoceppibdx: yeah, i got some feedback from ilian about how we can make this stupid simple in the charm17:34
bdxmarcoceppi: the integrations?17:34
marcoceppipragsmike: it's kind of a crap shoot, atm, juju 2.1 and 2.2 will make that WAY nicer17:34
marcoceppibdx: totally, instead of writing glue code for every intergration17:34
marcoceppibdx: we just write one method that does all glue code17:34
marcoceppipragsmike: how's it going, btw??17:34
bdxtotally17:34
pragsmikewell, more is working than before :)17:35
bdxmarcoceppi: I unraveled the curl sudo bashing of their install process to be more pragmatic in the layer17:35
bdxI assume you probably did something similar17:36
pragsmikeusing juju 2.0 and maas 2.1, the networking story is much nicer17:36
marcoceppipragsmike: yeah, juju 2.1 (and 2.2) will totally catch up17:38
marcoceppibdx: yeah, that ball of crap was unacceptable :)17:38
bdxright, I love finding those actually17:39
marcoceppibdx: I just used the apt layer: https://github.com/silph-io/layer-datadog/blob/master/reactive/datadog.py and https://github.com/silph-io/layer-datadog/blob/master/config.yaml17:39
pragsmikecurrently trying to understand how storage is supposed to work17:39
bdxmarcoceppi: https://github.com/jamesbeedy/charm-datadog-agent/blob/master/reactive/datadog_agent.py17:40
marcoceppibdx: haha, great minds :)17:41
marcoceppipragsmike: with juju + maas?17:42
pragsmikemarcoceppi: yes17:42
marcoceppipragsmike: for ceph, or another charm?17:42
pragsmikeceph in particular17:43
pragsmikeright now i just list the device names and hope17:43
marcoceppipragsmike: yeah, so there's a config option for device names17:44
marcoceppipragsmike: on clouds, with juju, you can run `juju add-storage`, I don't think that quite works in MAAS yet though17:44
pragsmikeI currently set ceph-osd's osd-devices to list the names it should try, it works for now17:45
marcoceppipragsmike: yeah, but that's a bit flaky17:46
marcoceppiit's a work around17:46
pragsmikebut that's good to know that storage isn't all there yet17:46
jcastrorick_h___: balloons: can confirm 2.0.1 worked awesome this morning for me in us-east-217:46
marcoceppiin the future, you will do like `juju add-storage` for ceph-osd/0, for example, and MAAS will tell that machine, if it has an additional disk, that ceph can consume it now17:46
marcoceppipragsmike: I'd expect seeing that pop up in the next few months17:47
pragsmikenice17:47
marcoceppipragsmike: it might be good to mail the juju mailing list, for more specifics of `juju add-storage` on maas17:47
pragsmikeok17:48
pragsmikei just found mbruzek's message about that in fact17:49
mbruzekpragsmike: What did I do?17:49
pragsmikeheh, i was just asking about juju storage with maas provider17:50
pragsmikehoping to use it for the ceph charm17:50
pragsmikei found https://lists.ubuntu.com/archives/juju/2016-October/008046.html17:50
mbruzekGood find.17:51
balloonsjcastro, :-)17:51
pragsmikethat'll keep me busy for a bit17:51
mbruzekpragsmike: Just checked my email, I got no further information from anyone else on that thread.17:52
pragsmikek, thanks for looking17:53
alexisbjcastro, thank you17:53
pragsmikeI have a workaround, but always looking for a better way17:54
=== scuttle|afk is now known as scuttlemonkey
mbruzekpragsmike: Are you interested in NFS? https://lists.ubuntu.com/archives/maas-devel/2016-October/002312.html17:57
pragsmikembruzek: NFS, not so much18:06
mbruzekI understand18:07
=== zz_CyberJacob is now known as CyberJacob
bdxhow do you guys feel about not hardcoding the charmstore api version into bundletester?20:11
bdxhttps://github.com/juju-solutions/bundletester/blob/master/bundletester/fetchers.py#L22520:11
stokachucan a resource have dynamically generated filename?22:17
stokachulike http://paste.ubuntu.com/23413581/22:19

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