Ask Your Question
0

glance-api failed to start up with latest devstack

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

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

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 (9.111.242.65:9292) to start...'
Waiting for g-api (9.111.242.65:9292) to start...
+ timeout 60 sh -c 'while ! http_proxy= wget -q -O- http://9.111.242.65:9292; do sleep 1; done'
+ die 191 'g-api did not start'
+ local exitcode=0
+ set +o xtrace
[ERROR] stack.sh:191 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/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", 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 delete

1 answer

Sort by ยป oldest newest most voted
0

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

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

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 publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

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

Seen: 546 times

Last updated: Aug 10 '13