/srv/irclogs.ubuntu.com/2014/06/22/#juju.txt

=== CyberJacob is now known as CyberJacob|Away
AzendaleI'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:29
AskUbuntuUpload all release versions of tools with juju's local (lxc) provider? | http://askubuntu.com/q/48654200:47
joseAzendale: I think that is set on your environments.yaml file, lemme double check01:16
joseAzendale: nope, I was wrong, you need to use `--upload-tools precise`01:18
ali1234Azendale: you have to use "default-series: precise"02:40
ali1234otherwise "bad things will happen"02:40
thumperanyone around for charmhelpers help?04:20
josethumper: I know a bit about them but may be able to help, what's up?04:21
thumperjose: I'm looking for a function to ensure that a symlink exists04:21
thumperthat checks source and target04:21
thumperknow of any04:21
thumperor shall I write one04:21
josehmm, maybe that's in python itself?04:21
joseshouldn't that be something like a 'if file exists'?04:21
* thumper shurgs and looks04:22
thumperos.path.islink exists04:23
thumperbut how do I find the source?04:23
josewhat do you mean?04:24
joselike, the source where you need to point the function to check?04:24
josewell, if you're writing a charm then you should know where that one is installed04:25
thumperhmm...04:26
thumperI guess I only need to check that the target exists, and is a link04:26
thumperyes, in a charm04:26
thumperso... should be enough perhpas...04:27
* thumper pokes04:27
thumperjose: ok, so effectively I want something like this:  ensure_symlink('/srv/nginx.conf', '/etc/nginx/sites-enabled/foo.conf')04:28
thumperlooks at the second param to see if the link exists04:28
thumperand if so, make sure it points to the first param04:28
thumperif not, delete it04:28
thumperthen make a link if not there (or just deleted it)04:28
josesorry, /me was looking at another channel04:28
thumperso... given a symlink at /etc/nginx/sites-enabled/foo.conf, how can I check it points at /srv/nginx.conf04:29
* thumper looks at more python docs04:29
joseok, so I wouldn't see a case where it won't point there (if you told the charm to do that)04:29
josethumper: you already got through verifying that the symlink existed, right?04:29
thumpersure, os.path.islink works04:30
joseok04:30
josethumper: os.readlink('/srv/nginx.conf')04:31
josenot sure what's the format in which it's returned, though, you may need to give it a try04:31
thumperawesome04:31
thumperthat's it I think04:31
joseif you find the way it prints it out and do an if, then problem solved :)04:32
* thumper upgrades charm again04:36
josethumper: just so you know, os.readlink('/srv/nginx.conf') should return this "    '/etc/nginx/sites-enabled/foo.conf'    " (remove the spaces and the quotes04:37
joseso it should be just this:04:37
jose'/etc/nginx/sites-enabled/foo.conf'04:37
joseincluding those quotes04:37
thumperjose: with logging: paste.ubuntu.com/7683418/04:44
joselemme check04:44
jose(but gimme a min, I'm finishing deploying a cloud on a cloud)04:44
thumperjose: oh, it works04:48
thumperdon't worry about that :-)04:48
thumperI should get around to submitting some nice utility functions for charmhelpers04:48
thumperperhaps jcastro_ or marcoceppi should poke me about it on a Friday afternoon04:49
thumperI should also extract the nginx code from my app subordinate for python-django charm04:49
josethumper: well, glad I could help :) if you have any questions just go ahead and ask04:49
thumperand make it a generic subordinate04:49
josethat'd be cool, if it deploys good04:49
thumperor alternatively, add nginx to the python-django charm as an option04:49
josethumper: ever played with openstack?04:55
jose(like, deploying)04:55
thumperonly some basics04:56
joseah, nvm, /me missed a letter on the URL :P04:57
thumper:)04:58
AskUbuntuWhat does "LDS" stand for in the openstack reference implementation? | http://askubuntu.com/q/48660906:39
=== CyberJacob|Away is now known as CyberJacob
Simhonquestions about maas installations goes here ?08:39
SimhonI 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....08:40
=== 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

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