[Openstack] Restart devstack errors

Chris Behrens cbehrens at codestud.com
Thu Feb 21 04:14:34 UTC 2013


[Removed the dev list -- no need to cross-post.]

It looks like you have broken permissions on '/usr/local/lib/python2.7/dist-packages/httplib2-0.7.7-py2.7.egg' and/or subdirectories.  Make sure everything is world readable.

- Chris


On Feb 20, 2013, at 7:48 PM, harryxiyou <harryxiyou at gmail.com> wrote:

> On Wed, Feb 20, 2013 at 3:14 PM, Hirendra Rathor
> <hirendra.rathor at gmail.com> 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 at 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
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp





More information about the Openstack mailing list