openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #21121
Re: Restart devstack errors
On Wed, Feb 20, 2013 at 3:14 PM, Hirendra Rathor
<hirendra.rathor@xxxxxxxxx> wrote:
Hi Hirendra Rathor,
> I was getting same error when I picked up devstack for the first time few
> days ago. I could have tried troubleshooting it but I wasn't particularly
> happy with the fact that I had to launch stack.sh every time on reboot. The
> script updates the source code and then compiles it which means that the
> product behavior could be different after running the script. This is not
> necessarily a problem but I felt less in control.
>
> I, therefore, modified my local copy of stack.sh to _not_ do operations that
> should be required for the first run. Examples of such operations include
> creating user accounts, configuration files, mysql database etc. The result
> was a script that just launches the openstack processes. Running this lean
> script resulted in successful launch of keystone process, so I didn't have
> to troubleshoot the original problem!
>
I am not clear about how you can solve 'keystone did not start'.
Cloud you please attach your modified stack.sh, which solved this problem.
Now, i can get some logs for my 'keystone did not start' like following.
$ screen -S stack -p key -X stuff
$ screen -x stack
jiawei@jiawei:~/workshop1/devstack$ cd /opt/stack/keystone &&
/opt/stack/keystone/bin/keystone-all --config-file
/etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d
--debug || touch "/opt/stack/status/stack/key.failure"
Traceback (most recent call last):
File "/opt/stack/keystone/bin/keystone-all", line 22, in <module>
from paste import deploy
File "/usr/local/lib/python2.7/dist-packages/Paste-1.7.5.1-py2.7.egg/paste/__init__.py",
line 4, in <module>
import pkg_resources
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2727,
in <module>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 700,
in subscribe
callback(dist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2727,
in <lambda>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2227,
in activate
self.insert_on(path)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2334,
in insert_on
self.check_version_conflict()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2373,
in check_version_conflict
for modname in self._get_metadata('top_level.txt'):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2221,
in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1209,
in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1201,
in get_metadata
return self._get(self._fn(self.egg_info,name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1316, in _get
stream = open(path, 'rb')
IOError: [Errno 13] Permission denied:
'/usr/local/lib/python2.7/dist-packages/httplib2-0.7.7-py2.7.egg/EGG-INFO/top_level.txt'
Could anyone give me some suggestions to this problem? Thanks
in advance.
--
Thanks
Harry Wei
Follow ups
References