/srv/irclogs.ubuntu.com/2013/11/03/#juju.txt

=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
rick_h_hm, so my charm installs build-essential but failing today with #1247299 so wondering if others hit this and wondering if this then makes it a juju issue since lxc doesn't consider it one?02:07
_mup_Bug #1247299: apparmor blocks cgroup-lite from mounting <cgroup-lite (Ubuntu):Invalid> <https://launchpad.net/bugs/1247299>02:07
=== paulczar is now known as zz_paulczar
=== freeflying is now known as freeflying_away
=== zz_paulczar is now known as paulczar
=== paulczar is now known as zz_paulczar
=== zz_paulczar is now known as paulczar
=== paulczar is now known as zz_paulczar
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
AzendaleSo, I'm trying to "juju ssh" to a LXC container, but it is just trying to connect to the host computer (which doesn't have the ubuntu user, and therefore the key is rejected). Is there a way around this problem?05:13
Azendalejuju version is 1.16.2-saucy-amd6405:15
=== CyberJacob|Away is now known as CyberJacob
=== freeflying_away is now known as freeflying
Azendalehttps://bugs.launchpad.net/charms/+bug/1247636 would someone be able to look at this bug and tell me if my fix to it is a good/bad idea? Should that function even be being called?20:50
_mup_Bug #1247636: etherpad lite fails to deploy, install hook running get relation <Juju Charms Collection:New> <https://launchpad.net/bugs/1247636>20:50
=== zz_paulczar is now known as paulczar
=== freeflying is now known as freeflying_away
marcoceppiAzendale: you can use juju ssh <unit> btw, juju ssh <machine> doesn't work with LXC22:52
marcoceppiAzendale: also, charmhelpers is part of lp:charmhelpers so you might want to consider patching that there instead22:53
Azendalemarcoceppi: Thanks. (I'm trying to remember what I asked, but I think I was having trouble with getting LXC machines to start. But I got LXC to work eventually, and it was really nice. Fast, too, compared to installing an OS in a VM).22:54
Azendalemarcoceppi: The change I made on the bug I filed was just to get it to work. But I'm really new to charm stuff (but used to python), so I don't know exactly what is the bug.22:55
marcoceppiAzendale: well, you can't (and shouldn't) be able to call relation-get from install hook22:55
Azendalemarcoceppi: I'm not sure if that function should not be called in the first place in an install hook, or if the function should just return None22:56
marcoceppiso it seems the charm is doing something wrong22:56
marcoceppiAzendale: but there's nothing wrong with building in guards. So charmhelpers is a set of scripts designed to solve common problems that charm authors have. One problem is making writing charms in python easier. So that's why you have decorators and methods in python that streamline communication to juju commands22:57
Azendalemarcoceppi: So, you're saying maybe fix the bug in two places, and then it's less likely to come up again in some other charm22:57
marcoceppiAzendale: the real problem is in the install hook, it shouldn't be calling that, and if it is, it needs to guard when results aren't available22:59
marcoceppiAzendale: the change to charmhelpers is a nice addition, not really a bug fix per se22:59
marcoceppiAzendale: but still22:59
marcoceppiAzendale: actually, having it fail like this when a relation_id isn't found is probably a good thing. Silently continuing when the method is called out of place could lead to weird results23:01
Azendalemarcoceppi: ok, thanks for the advice. I'll probably see what I can find as far as a proper fix then (sorry I'm so non-committal, I'm just not sure when/if I'll have time to try to understand the charm hook and see where to disable getting the relation)23:02
=== paulczar is now known as zz_paulczar
marcoceppiAzendale: that's fine, I'm happy to help get you on the path to committing!23:04
Azendalemarcoceppi: Thanks, I appreciate it23:15
=== zz_paulczar is now known as paulczar
=== freeflying_away is now known as freeflying

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