Hi On 13 September 2012 19:30, Krzysztof Warzecha <kwarzecha7@gmail.com> wrote:
Sorry for delayed response, I had a busy week. Not at all, I appreciate your help regardless
No, keystone-all and keystone-manage will not be available system wide unless you add them to path. I'm not sure if this is good idea. You could try to do something like this:
sudo mkdir /usr/local/virtualenvs/keystone sudo virtualenv2 /usr/local/virtualenvs/keystone (...) sudo ln -s /usr/local/virtualenvs/keystone/bin/keystone-all /usr/local/bin/ sudo ln -s /usr/local/virtualenvs/keystone/bin/keystone-manage /usr/local/bin/
But I'm not sure if it will work. (Beware, you cannot move virtualenv once its installed, see [1]).
Since you want to install keystone system wide, you could also run "sudo python2 setup.py install". It will install all dependencies and stuff (but it can mess with python2-* packages from pacman, see [2]).
I have also attached the full trace I get when I try to run keystone-all when built by myself.
Could you post your keystone config? It seems that paste/deploy/loadwsgi.py tries to load that 'server' module because it found it in local_conf. I'm not sure where contents of local_conf comes from. Aha! The plot, as they say, thickens... See attached file it does mention keystone.server in it. As far as I remember it is either the default file that came with it, or something I copied over out of a walk-through.
You can debug this script futher with pdb:
python2 -m pdb /usr/bin/keystone-all
Type 'help' for help, 'up' / 'down' / 'bt' to move through the stack, 'dir()' to show variables on current frame and 'pp variable' / 'dir(object)' / 'pp object.method()' / 'pp object.field' to inspect variables and objects.
This really helps
[1] http://pypi.python.org/pypi/virtualenv#making-environments-relocatable [2] https://bbs.archlinux.org/viewtopic.php?id=139264
-- Krzysztof Warzecha
Thanks I really appreciate this Andy