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 merge delete

2 answers

Sort by ยป oldest newest most voted
0

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

Resolved this issue By following steps:

./unstack.sh ./clean.sh rm -rf devstack reboot git clone devstack code cd devstack ./stack.sh

edit flag offensive delete link more
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 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]

Get to know Ask OpenStack

Resources for moderators

Question Tools

Follow
1 follower

Stats

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

Seen: 1,155 times

Last updated: Apr 22