=== CyberJacob is now known as CyberJacob|Away [00:29] I'm using the local lxc provider on trusty, with the "default-series: trusty" option. Whenever I try to deploy a non-trusty charm, it never finishes (stays in pending state), and the log says "machine-0: 2014-06-22 00:28:59 ERROR juju runner.go:220 worker: exited "environ-provisioner": failed to process updated machines: cannot start machine 9: no matching tools available". How can I upload tools for all versions? [00:47] Upload all release versions of tools with juju's local (lxc) provider? | http://askubuntu.com/q/486542 [01:16] Azendale: I think that is set on your environments.yaml file, lemme double check [01:18] Azendale: nope, I was wrong, you need to use `--upload-tools precise` [02:40] Azendale: you have to use "default-series: precise" [02:40] otherwise "bad things will happen" [04:20] anyone around for charmhelpers help? [04:21] thumper: I know a bit about them but may be able to help, what's up? [04:21] jose: I'm looking for a function to ensure that a symlink exists [04:21] that checks source and target [04:21] know of any [04:21] or shall I write one [04:21] hmm, maybe that's in python itself? [04:21] shouldn't that be something like a 'if file exists'? [04:22] * thumper shurgs and looks [04:23] os.path.islink exists [04:23] but how do I find the source? [04:24] what do you mean? [04:24] like, the source where you need to point the function to check? [04:25] well, if you're writing a charm then you should know where that one is installed [04:26] hmm... [04:26] I guess I only need to check that the target exists, and is a link [04:26] yes, in a charm [04:27] so... should be enough perhpas... [04:27] * thumper pokes [04:28] jose: ok, so effectively I want something like this: ensure_symlink('/srv/nginx.conf', '/etc/nginx/sites-enabled/foo.conf') [04:28] looks at the second param to see if the link exists [04:28] and if so, make sure it points to the first param [04:28] if not, delete it [04:28] then make a link if not there (or just deleted it) [04:28] sorry, /me was looking at another channel [04:29] so... given a symlink at /etc/nginx/sites-enabled/foo.conf, how can I check it points at /srv/nginx.conf [04:29] * thumper looks at more python docs [04:29] ok, so I wouldn't see a case where it won't point there (if you told the charm to do that) [04:29] thumper: you already got through verifying that the symlink existed, right? [04:30] sure, os.path.islink works [04:30] ok [04:31] thumper: os.readlink('/srv/nginx.conf') [04:31] not sure what's the format in which it's returned, though, you may need to give it a try [04:31] awesome [04:31] that's it I think [04:32] if you find the way it prints it out and do an if, then problem solved :) [04:36] * thumper upgrades charm again [04:37] thumper: just so you know, os.readlink('/srv/nginx.conf') should return this " '/etc/nginx/sites-enabled/foo.conf' " (remove the spaces and the quotes [04:37] so it should be just this: [04:37] '/etc/nginx/sites-enabled/foo.conf' [04:37] including those quotes [04:44] jose: with logging: paste.ubuntu.com/7683418/ [04:44] lemme check [04:44] (but gimme a min, I'm finishing deploying a cloud on a cloud) [04:48] jose: oh, it works [04:48] don't worry about that :-) [04:48] I should get around to submitting some nice utility functions for charmhelpers [04:49] perhaps jcastro_ or marcoceppi should poke me about it on a Friday afternoon [04:49] I should also extract the nginx code from my app subordinate for python-django charm [04:49] thumper: well, glad I could help :) if you have any questions just go ahead and ask [04:49] and make it a generic subordinate [04:49] that'd be cool, if it deploys good [04:49] or alternatively, add nginx to the python-django charm as an option [04:55] thumper: ever played with openstack? [04:55] (like, deploying) [04:56] only some basics [04:57] ah, nvm, /me missed a letter on the URL :P [04:58] :) [06:39] What does "LDS" stand for in the openstack reference implementation? | http://askubuntu.com/q/486609 === CyberJacob|Away is now known as CyberJacob [08:39] questions about maas installations goes here ? [08:40] I am installing maas controller from the ubuntu cloud documentation, does the maas should be installed on a desktop or server ubuntu os ? or it does not matter any of the two.... === vladk|offline is now known as vladk === Ursinha is now known as Ursinha-afk === CyberJacob is now known as CyberJacob|Away === scuttle|afk is now known as scuttlemonkey === Ursinha-afk is now known as Ursinha === vladk is now known as vladk|offline === _thumper_ is now known as thumper