Ask Your Question

glance-api failed to start up with latest devstack

asked 2013-08-07 10:46:06 -0600

jay-lau-513 gravatar image

updated 2013-08-09 17:18:56 -0600

smaffulli gravatar image

Hi, I installed OpenStack with latest devstack and found that install failed.

+ screen -S stack -p g-api -X stuff 'cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf || touch "/opt/stack/status/stack'g-api.failure"
+ echo 'Waiting for g-api ( to start...'
Waiting for g-api ( to start...
+ timeout 60 sh -c 'while ! http_proxy= wget -q -O-; do sleep 1; done'
+ die 191 'g-api did not start'
+ local exitcode=0
+ set +o xtrace
[ERROR] g-api did not start

Then I try to manually start up glance-api and get the following error:

root@ubuntu:~# glance-api 
Traceback (most recent call last):
  File "/usr/local/bin/glance-api", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/local/lib/python2.7/dist-packages/", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: jsonschema>=1.3.0,!=1.4.0

Can anyone give some hep? Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2015-04-22 10:27:59 -0600

ramu-mallagundla gravatar image

Resolved this issue By following steps:

./ ./ rm -rf devstack reboot git clone devstack code cd devstack ./

edit flag offensive delete link more

answered 2013-08-10 01:30:52 -0600

Jobin gravatar image

updated 2013-08-10 01:35:17 -0600

It seems like jsonschema is not present in your python libraries(/usr/local/lib/python2.7/dist-packages/ for python 2.7).

Are you behind a proxy? If yes, please set the proxy parameters in your .bashrc file and also set the proxy for git. For help settig proxy for git, refer to this question on SO:

If not, there seems to be some network connectivity problem downloading jsonschema, you can manually download the file from here:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-08-07 10:46:06 -0600

Seen: 5,867 times

Last updated: Apr 22 '15