/srv/irclogs.ubuntu.com/2016/12/22/#juju.txt

CarlFKI want to test a dnsmasq config: server in one container, dhcp client in a 2nd, how do I ... do that?01:06
CarlFKmacgreagoir:  here is how I am driving the ubuntu minimal:   one container for each host: https://github.com/xfxf/video-scripts/blob/master/carl/ansible-misc/slurp-hosts.py01:11
CarlFK        print('juju deploy {charm} {host}'.format(charm=charm, host=h))01:12
CarlFK        print('juju config {host} hostname={host}'.format(host=h))01:12
CarlFKand once they area all ready (about4 ;min)          cmd=['ssh', 'ubuntu@{host}'...."sudo", "cp", ".ssh/authorized_keys", "/root/.ssh"]01:13
CarlFKhttps://github.com/xfxf/video-scripts/blob/master/carl/ansible-misc/mk-hosts.py#L7201:14
CarlFKIs there a better way I should be doing that?01:14
hyglhi, i have installed a local kubernetes cluster using these instructions https://github.com/castrojo/kubernetes.github.io/blob/ubuntu-lifecycle-revisions/docs/getting-started-guides/ubuntu/local.md . How do I uninstall or stop it, if I do not need it anymore?04:33
macgreagoirCarlFK: You might be trying to configure the machine, where `config` means the application https://jujucharms.com/docs/2.0/charms-config.08:15
macgreagoirFor ssh, this might help: https://jujucharms.com/docs/2.0/charms-working-with-units08:15
macgreagoirCarlFK: I'm not sure if bundles will help you, but be aware with scripts that Juju returns asynchronously, so you need to give the application time to deploy before you'll see the status you might expect.08:17
CarlFKmacgreagoir: yeah, takes about 5 min for all the instances? to get an IP.  I just manually watch juju status and check every min or so08:23
macgreagoirCarlFK: I see a new release announcement for https://pythonhosted.org/juju/ on the juju list. I'm not sure it this could be interesting to you.08:36
anrahquick question about actions: Is it so that actions are not part of hookenv? I mean that if I want to use resources as part of action download etc. it seems like the get-resource command does not work10:37
anrahI wouldn't want the juju attach command straigthly to do stuff with update-config hook that but make separate action to apply the changes on nodes10:39
stubanrah: To my understanding, actions run in the same sort of context as hooks and the resource commands should work fine.11:24
stubanrah: You should even be able to test the resource commands using 'juju run --unit=foo "get-resource ..."', as that also uses the same context11:26
anrahI tried to run my command through debug-hooks11:29
anrahand that went fine11:29
anrahbut when running the action through juju run-action <action> etc. results failed11:29
petevgbcsaller, cory_fu: I updated the crashdump PR with a small tweak (checking "is None" for env, just in case somebody wants to pass a blank dict in). Unfortunately, I also came across a bug: crashdump works fine in my isolated "test_crashdump.matrix", but it seems to be breaking in the context of the full default test :-/13:48
petevgWill dig into it after I finish doing morning routine stuff ...13:48
stubanrah: I'd need to see the error message from your logs to guess what is going on.13:51
petevgbcsaller, cory_fu: I figured out the problem. It's not fun :-( Basically, "juju ssh" doesn't work from the command line in the models that we've created. I've noticed that when manually troubleshooting. I wasn't running into the problem in my standalone test, because I was running crashdump right away, before machines had come up, rather than waiting for14:30
petevgthings to deploy (that's what I get for writing tests that run fast to help meet deadlines ...).14:30
petevgbcsaller, cory_fu: it looks like "juju ssh" doesn't have the right credentials; I'm assuming that, when we create the model inside of python-libjuju, we're not handing something essential back to the system env ...14:32
petevgcory_fu, bcsaller: make a ticket (https://github.com/juju-solutions/matrix/issues/59).15:02
cory_fupetevg: Have you noticed that Matrix doesn't work on Juju 2.0.2 (current stable) because Controller.connect_current() doesn't work (though it does on the latest beta)?15:31
cory_fupetevg: Although, I just realized that might be due to me bootstrapping with 2.1-beta3 and then trying to interact with the 2.0.2 client.  I'm actually surprised it worked at all now15:38
petevgcory_fu: I hadn't noticed, though I am on the beta, with a controller created by the beta.15:44
anrahstub: got it working apparently i forgot to add the +x bit for the script before the build15:58
cory_fupetevg: You were asking yesterday about finding the name of the current controller with libjuju.  There's juju.client.connection.JujuData().current_controller(), but I should note that it doesn't seem to work with registered shared controllers16:28
petevgcory_fu: still useful, though. Thank you.16:28
cory_fuBecause it seems that `juju show-controller` doesn't give any info if you've registered a shared controller16:28
petevgInteresting.16:28
cory_fupetevg: Oh!  show-controller requires admin perms16:32
petevgOf course it does :-)16:32
petevgit makes sense that it does, too.16:32
cory_fupetevg: https://github.com/juju/python-libjuju/pull/3916:45
cory_fupetevg: It doesn't make sense that it doesn't say anything and just returns an empty dict.  It could at least return as much info as list-controllers, or just complain that you're not a superuser16:46
petevgcory_fu: raising a sensible error in python-libjuju makes sense to me. +1 on that PR, based on code readthrough.16:47
petevgcory_fu, bcsaller: after some finagling, I think that https://github.com/juju-solutions/matrix/pull/56 is good to merge (it deliberately skips running juju-crashdump, because that is blocked by the bug with juju ssh, but it does successfully zip up the matrix logs, so that the CI can get at them).17:12
=== CyberJacob is now known as zz_CyberJacob
=== scuttlemonkey is now known as scuttle|afk

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